Updating test for javax -> jakarta

This commit is contained in:
Joakim Erdfelt 2021-07-27 07:43:38 -05:00
parent 0a7890bd49
commit 1235fff196
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 4 additions and 6 deletions

View File

@ -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")