Ensure fail message gives reason

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1297019 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2012-03-05 12:06:27 +00:00
parent b24330cd37
commit 8c4baca0e2
1 changed files with 3 additions and 5 deletions

View File

@ -21,6 +21,7 @@ import static org.junit.Assert.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map;
import org.junit.Test; import org.junit.Test;
@ -625,11 +626,8 @@ public class ToStringBuilderTest {
} }
void validateNullToStringStyleRegistry() { void validateNullToStringStyleRegistry() {
if (ToStringStyle.getRegistry() != null) { final Map<Object, Object> registry = ToStringStyle.getRegistry();
System.out.println(ToStringStyle.getRegistry()); assertNull("Expected null, actual: "+registry, registry);
}
assertNull(ToStringStyle.getRegistry());
} }
// End: Reflection cycle tests // End: Reflection cycle tests