tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gred...@apache.org
Subject svn commit: r547976 - /tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/internal/util/URLChangeTrackerTest.java
Date Sat, 16 Jun 2007 20:31:00 GMT
Author: gredler
Date: Sat Jun 16 13:30:59 2007
New Revision: 547976

URL: http://svn.apache.org/viewvc?view=rev&rev=547976
Log:
Fix unit test which was assuming it wouldn't run near the end of a second.

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/internal/util/URLChangeTrackerTest.java

Modified: tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/internal/util/URLChangeTrackerTest.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/internal/util/URLChangeTrackerTest.java?view=diff&rev=547976&r1=547975&r2=547976
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/internal/util/URLChangeTrackerTest.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/test/java/org/apache/tapestry/internal/util/URLChangeTrackerTest.java
Sat Jun 16 13:30:59 2007
@@ -133,20 +133,15 @@
         URL url = f.toURL();
 
         touch(f);
-        long timestamp = t.add(url);
-        assertEquals(0, timestamp % 1000);
-        assertFalse(t.containsChanges());
-
-        touch(f);
-        timestamp = t.add(url);
-        assertEquals(0, timestamp % 1000);
+        long timestamp1 = t.add(url);
+        assertEquals(0, timestamp1 % 1000);
         assertFalse(t.containsChanges());
 
         Thread.sleep(1500);
 
         touch(f);
-        timestamp = t.add(url);
-        assertEquals(0, timestamp % 1000);
+        long timestamp2 = t.add(url);
+        assertEquals(0, timestamp2 % 1000);
         assertTrue(t.containsChanges());
     }
 



Mime
View raw message