db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r793848 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java
Date Tue, 14 Jul 2009 10:51:29 GMT
Author: myrnavl
Date: Tue Jul 14 10:51:29 2009
New Revision: 793848

URL: http://svn.apache.org/viewvc?rev=793848&view=rev
Log:
DERBY-3814: failure in testAssertFailureThreadDump with weme 6.1 / JSR 169
  fixed by making the check on a trimmed string.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java?rev=793848&r1=793847&r2=793848&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java
Tue Jul 14 10:51:29 2009
@@ -97,9 +97,9 @@
 
         } else {
             String expected = "(Skipping thread dump because it is not " +
-            		"supported on JVM 1.4)\n";
+            		"supported on JVM 1.4)";
 
-            assertEquals("String not correct.", expected, s);
+            assertEquals("String not correct.", expected, s.trim());
         }
     }
 
@@ -125,9 +125,9 @@
 
         } else {
             String expected = "(Skipping thread dump because it is not " +
-                "supported on JVM 1.4)\n";
+                "supported on JVM 1.4)";
 
-            assertEquals("String not correct.", expected, s);
+            assertEquals("String not correct.", expected, s.trim());
         }
     }
 }



Mime
View raw message