Skip to content

Commit fea1da4

Browse files
BinaryEncoderAbstractTest#testEncodeNull: fail if expected exception is not thrown
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1812883 13f79535-47bb-0310-9956-ffa450edef68
1 parent 19d7034 commit fea1da4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/test/java/org/apache/commons/codec/BinaryEncoderAbstractTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818
package org.apache.commons.codec;
1919

20+
import static org.junit.Assert.fail;
21+
2022
import org.junit.Test;
2123

2224
/**
@@ -37,6 +39,7 @@ public void testEncodeNull() throws Exception {
3739
final BinaryEncoder encoder = makeEncoder();
3840
try {
3941
encoder.encode(null);
42+
fail("EncoderException exptected");
4043
} catch (final EncoderException ee) {
4144
// An exception should be thrown
4245
}

0 commit comments

Comments
 (0)