commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1203312 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
Date Thu, 17 Nov 2011 18:26:55 GMT
Author: mbenson
Date: Thu Nov 17 18:26:55 2011
New Revision: 1203312

URL: http://svn.apache.org/viewvc?rev=1203312&view=rev
Log:
original tests contained one message WRONG which seems to indicate a problem area in the code;
elaborating message

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java?rev=1203312&r1=1203311&r2=1203312&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/reflect/TypeUtilsTest.java
Thu Nov 17 18:26:55 2011
@@ -341,7 +341,8 @@ public class TypeUtilsTest<B> {
         dis = uhder;
         Assert.assertTrue(TypeUtils.isAssignable(uhderType, disType));
         dis = ding;
-        Assert.assertTrue("WRONG!", TypeUtils.isAssignable(dingType, disType));
+        Assert.assertTrue(String.format("type %s not assignable to %s!", dingType, disType),
+                TypeUtils.isAssignable(dingType, disType));
         dis = tester;
         Assert.assertTrue(TypeUtils.isAssignable(testerType, disType));
         // dis = tester2;



Mime
View raw message