commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1683041 - /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java
Date Tue, 02 Jun 2015 04:59:59 GMT
Author: tn
Date: Tue Jun  2 04:59:59 2015
New Revision: 1683041

URL: http://svn.apache.org/r1683041
Log:
Catch correct exception.

Modified:
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java?rev=1683041&r1=1683040&r2=1683041&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java
(original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/multimap/UnmodifiableMultiValuedMapTest.java
Tue Jun  2 04:59:59 2015
@@ -79,8 +79,9 @@ public class UnmodifiableMultiValuedMapT
     public void testDecoratorFactoryNullMap() {
         try {
             UnmodifiableMultiValuedMap.unmodifiableMultiValuedMap(null);
-            fail();
-        } catch (IllegalArgumentException e) {
+            fail("map must not be null");
+        } catch (NullPointerException e) {
+            // expected
         }
     }
 



Mime
View raw message