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.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