db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r800646 - /db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java
Date Tue, 04 Aug 2009 01:12:41 GMT
Author: myrnavl
Date: Tue Aug  4 01:12:41 2009
New Revision: 800646

URL: http://svn.apache.org/viewvc?rev=800646&view=rev
Log:
DERBY-3814 - Failure in testAssertFailureThreadDump
  backport revision 793848 from trunk 

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

Modified: db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java?rev=800646&r1=800645&r2=800646&view=diff
==============================================================================
--- db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java
(original)
+++ db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/unitTests/junit/AssertFailureTest.java
Tue Aug  4 01:12:41 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