Updating test for javax -> jakarta
This commit is contained in:
parent
0a7890bd49
commit
1235fff196
|
@ -25,8 +25,6 @@ import org.eclipse.jetty.webapp.ClassMatcher.Entry;
|
|||
import org.hamcrest.Matchers;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledOnJre;
|
||||
import org.junit.jupiter.api.condition.JRE;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
@ -125,11 +123,11 @@ public class ClassMatcherTest
|
|||
public void testMatchFundamentalExcludeSpecific()
|
||||
{
|
||||
_pattern.clear();
|
||||
_pattern.add("javax.");
|
||||
_pattern.add("-javax.ws.rs.", "-javax.inject.");
|
||||
_pattern.add("jakarta.");
|
||||
_pattern.add("-jakarta.ws.rs.", "-jakarta.inject.");
|
||||
assertFalse(_pattern.match("org.example.Anything"));
|
||||
assertTrue(_pattern.match("javax.servlet.HttpServlet"));
|
||||
assertFalse(_pattern.match("javax.ws.rs.ProcessingException"));
|
||||
assertTrue(_pattern.match("jakarta.servlet.HttpServlet"));
|
||||
assertFalse(_pattern.match("jakarta.ws.rs.ProcessingException"));
|
||||
}
|
||||
|
||||
@SuppressWarnings("restriction")
|
||||
|
|
Loading…
Reference in New Issue