diff --git a/xmppserver/src/test/java/org/jivesoftware/openfire/nio/XMLLightweightParserTest.java b/xmppserver/src/test/java/org/jivesoftware/openfire/nio/XMLLightweightParserTest.java index 440d52a9d9..53e7c762d5 100644 --- a/xmppserver/src/test/java/org/jivesoftware/openfire/nio/XMLLightweightParserTest.java +++ b/xmppserver/src/test/java/org/jivesoftware/openfire/nio/XMLLightweightParserTest.java @@ -20,7 +20,8 @@ import java.nio.charset.StandardCharsets; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; /** * Unit tests that verify the functionality as implemented in {@link XMLLightweightParser} @@ -184,32 +185,4 @@ public void testOF2329SelfTerminatingWithNewline() throws Exception assertNotNull( result ); assertEquals(1, result.length ); } - - @Test - public void testHasIllegalCharacterReferencesFindsIllegalDecimalChars() throws Exception - { - final String input = "test A test"; - assertFalse(XMLLightweightParser.hasIllegalCharacterReferences(input)); - } - - @Test - public void testHasIllegalCharacterReferencesFindsLegalDecimalChars() throws Exception - { - final String input = "test  test"; - assertTrue(XMLLightweightParser.hasIllegalCharacterReferences(input)); - } - - @Test - public void testHasIllegalCharacterReferencesFindsIllegalHexChars() throws Exception - { - final String input = "test A test"; - assertFalse(XMLLightweightParser.hasIllegalCharacterReferences(input)); - } - - @Test - public void testHasIllegalCharacterReferencesFindsLegalHexChars() throws Exception - { - final String input = "test  test"; - assertTrue(XMLLightweightParser.hasIllegalCharacterReferences(input)); - } }