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:
parent
b24330cd37
commit
8c4baca0e2
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue