Skip to content

Commit

Permalink
Revert "OF-2628: Add unit tests"
Browse files Browse the repository at this point in the history
This reverts commit dc11312.
  • Loading branch information
Fishbowler committed Jul 25, 2023
1 parent dc11312 commit 1763634
Showing 1 changed file with 2 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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));
}
}

0 comments on commit 1763634

Please sign in to comment.