Skip to content

Commit ec99507

Browse files
committed
Update asserts
1 parent ee922dc commit ec99507

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/owasp/esapi/reference/EncoderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ public void testGetDefaultCanonicalizationCodecs() {
10161016
} catch( IntrusionException iex) {
10171017
caughtExpected = true;
10181018
}
1019-
assertEquals( true, caughtExpected ); // Verify it threw an IntrusionException
1019+
assertTrue( caughtExpected ); // Verify it threw an IntrusionException
10201020

10211021
// Now set up a case where (via the Encoder.DefaultCodecList property)
10221022
// where "UnixCodec" is added on to the standard list of 3 normal codecs
@@ -1050,7 +1050,7 @@ public void testGetDefaultCanonicalizationCodecs() {
10501050
caughtExpected = true;
10511051
}
10521052

1053-
assertEquals( true, caughtExpected ); // Verify it threw an IntrusionException
1053+
assertTrue( caughtExpected ); // Verify it threw an IntrusionException
10541054
}
10551055

10561056
/**

0 commit comments

Comments
 (0)