commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1222673 - /commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
Date Fri, 23 Dec 2011 13:24:33 GMT
Author: ggregory
Date: Fri Dec 23 13:24:33 2011
New Revision: 1222673

URL: http://svn.apache.org/viewvc?rev=1222673&view=rev
Log:
Add messages to JUnit asserts to better see what Gump fails on now.

Modified:
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java?rev=1222673&r1=1222672&r2=1222673&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/LastModifiedTests.java
Fri Dec 23 13:24:33 2011
@@ -69,14 +69,14 @@ public class LastModifiedTests
             file.getContent().setLastModifiedTime(now);
             try
             {
-                assertEquals(now, file.getContent().getLastModifiedTime(), file.getFileSystem().getLastModTimeAccuracy());
+                assertEquals("Check 1", now, file.getContent().getLastModifiedTime(), file.getFileSystem().getLastModTimeAccuracy());
             }
             catch (AssertionFailedError e)
             {
                 // on linux ext3 the above check is not necessarily true
                 if (file.getFileSystem().getLastModTimeAccuracy() < 1000L)
                 {
-                    assertEquals(now, file.getContent().getLastModifiedTime(), 1000L);
+                    assertEquals("Check 2", now, file.getContent().getLastModifiedTime(),
1000L);
                 }
                 else
                 {
@@ -92,14 +92,14 @@ public class LastModifiedTests
             folder.getContent().setLastModifiedTime(now);
             try
             {
-                assertEquals(now, folder.getContent().getLastModifiedTime(), folder.getFileSystem().getLastModTimeAccuracy());
+                assertEquals("Check 3", now, folder.getContent().getLastModifiedTime(), folder.getFileSystem().getLastModTimeAccuracy());
             }
             catch (AssertionFailedError e)
             {
                 // on linux ext3 the above check is not necessarily true
                 if (folder.getFileSystem().getLastModTimeAccuracy() < 1000L)
                 {
-                    assertEquals(now, folder.getContent().getLastModifiedTime(), 1000L);
+                    assertEquals("Check 4", now, folder.getContent().getLastModifiedTime(),
1000L);
                 }
                 else
                 {



Mime
View raw message