commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1297019 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java
Date Mon, 05 Mar 2012 12:06:27 GMT
Author: sebb
Date: Mon Mar  5 12:06:27 2012
New Revision: 1297019

URL: http://svn.apache.org/viewvc?rev=1297019&view=rev
Log:
Ensure fail message gives reason

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java?rev=1297019&r1=1297018&r2=1297019&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java
Mon Mar  5 12:06:27 2012
@@ -21,6 +21,7 @@ import static org.junit.Assert.*;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 
 import org.junit.Test;
 
@@ -625,11 +626,8 @@ public class ToStringBuilderTest {
     }
 
     void validateNullToStringStyleRegistry() {
-       if (ToStringStyle.getRegistry() != null) {
-           System.out.println(ToStringStyle.getRegistry());
-       }
-
-        assertNull(ToStringStyle.getRegistry());
+        final Map<Object, Object> registry = ToStringStyle.getRegistry();
+        assertNull("Expected null, actual: "+registry, registry);
     }
     //  End: Reflection cycle tests
 



Mime
View raw message