commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pascalschumac...@apache.org
Subject svn commit: r1812883 - /commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/BinaryEncoderAbstractTest.java
Date Sun, 22 Oct 2017 08:01:06 GMT
Author: pascalschumacher
Date: Sun Oct 22 08:01:06 2017
New Revision: 1812883

URL: http://svn.apache.org/viewvc?rev=1812883&view=rev
Log:
BinaryEncoderAbstractTest#testEncodeNull: fail if expected exception is not thrown

Modified:
    commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/BinaryEncoderAbstractTest.java

Modified: commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/BinaryEncoderAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/BinaryEncoderAbstractTest.java?rev=1812883&r1=1812882&r2=1812883&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/BinaryEncoderAbstractTest.java
(original)
+++ commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/BinaryEncoderAbstractTest.java
Sun Oct 22 08:01:06 2017
@@ -17,6 +17,8 @@
 
 package org.apache.commons.codec;
 
+import static org.junit.Assert.fail;
+
 import org.junit.Test;
 
 /**
@@ -37,6 +39,7 @@ public abstract class BinaryEncoderAbstr
         final BinaryEncoder encoder = makeEncoder();
         try {
             encoder.encode(null);
+            fail("EncoderException exptected");
         } catch (final EncoderException ee) {
             // An exception should be thrown
         }



Mime
View raw message