Skip to content

Commit

Permalink
Merge pull request #6524 from eclipse/jetty-10.0.x-classpathpatternte…
Browse files Browse the repository at this point in the history
…st-prepend-not-needed

Issue #6515 - Adding Test to ensure that ClasspathPattern doesn't need prepend anymore.
  • Loading branch information
joakime committed Jul 27, 2021
2 parents d781ec3 + 94d1a67 commit 5344717
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ public void testMatchAll()
assertTrue(_pattern.match("org.example.Anything$Else"));
}

@Test
public void testMatchFundamentalExcludeSpecific()
{
_pattern.clear();
_pattern.add("javax.");
_pattern.add("-javax.ws.rs.", "-javax.inject.");
assertFalse(_pattern.match("org.example.Anything"));
assertTrue(_pattern.match("javax.servlet.HttpServlet"));
assertFalse(_pattern.match("javax.ws.rs.ProcessingException"));
}

@SuppressWarnings("restriction")
@Test
public void testIncludedLocations() throws Exception
Expand Down

0 comments on commit 5344717

Please sign in to comment.