This commit is contained in:
Erik C. Thauvin 2019-05-06 03:09:05 -07:00
parent 14cb07ef0d
commit 4dbc2bbc08

View file

@ -46,15 +46,15 @@ import static org.testng.Assert.assertEquals;
* @created 2015-12-03 * @created 2015-12-03
* @since 1.0 * @since 1.0
*/ */
@SuppressWarnings("unused")
public class UtilsTest { public class UtilsTest {
@Test @Test
public void testEscapeXml() public void testEscapeXml() {
throws Exception { assertEquals(Utils.escapeXml(
Assert.assertEquals( "This is a test. We wan't to make sure that everything is <encoded> according the \"encoding\" parameter "
"This is a test. We wan&#039;t to make sure that everything is &lt;encoded&gt; according the &#034;encoding&#034; parameter &amp; value.", + "& value."), "This is a test. We wan&#039;t to make sure that everything is &lt;encoded&gt; according "
Utils.escapeXml( + "the &#034;encoding&#034; parameter &amp; value.");
"This is a test. We wan't to make sure that everything is <encoded> according the \"encoding\" parameter & value.")); }
@SuppressWarnings("PMD.AvoidDuplicateLiterals") @SuppressWarnings("PMD.AvoidDuplicateLiterals")
@Test @Test
public void testOutWrite() throws IOException { public void testOutWrite() throws IOException {