[jboss-cvs] JBossAS SVN: r87273 - projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 14 07:27:44 EDT 2009
Author: alesj
Date: 2009-04-14 07:27:44 -0400 (Tue, 14 Apr 2009)
New Revision: 87273
Modified:
projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/MetaDataStructureModificationTestCase.java
projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java
Log:
Make sure the files are seen as modified; add 1sec+.
Modified: projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/MetaDataStructureModificationTestCase.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/MetaDataStructureModificationTestCase.java 2009-04-14 11:20:31 UTC (rev 87272)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/MetaDataStructureModificationTestCase.java 2009-04-14 11:27:44 UTC (rev 87273)
@@ -155,9 +155,9 @@
assertFalse(checker.hasStructureBeenModified(root));
File f1 = new File(url1.toURI());
- assertTrue(f1.setLastModified(System.currentTimeMillis()));
+ assertTrue(f1.setLastModified(System.currentTimeMillis() + 1500l));
File f2 = new File(url2.toURI());
- assertTrue(f2.setLastModified(System.currentTimeMillis()));
+ assertTrue(f2.setLastModified(System.currentTimeMillis() + 1500l));
assertTrue(checker.hasStructureBeenModified(root));
assertFalse(checker.hasStructureBeenModified(root));
Modified: projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java 2009-04-14 11:20:31 UTC (rev 87272)
+++ projects/jboss-deployers/trunk/deployers-vfs/src/test/java/org/jboss/test/deployers/vfs/structure/modified/test/SynchModificationTestCase.java 2009-04-14 11:27:44 UTC (rev 87273)
@@ -112,7 +112,7 @@
// update some file
File updateFile = new File(rootFile, "test.jsp");
assertTrue(updateFile.exists());
- assertTrue(updateFile.setLastModified(System.currentTimeMillis()));
+ assertTrue(updateFile.setLastModified(System.currentTimeMillis() + 1500l));
@SuppressWarnings("deprecation")
VirtualFile testJsp = tempRoot.findChild("test.jsp");
long tempTimestamp = testJsp.getLastModified();
@@ -126,7 +126,7 @@
assertNotNull(someProps);
updateFile = new File(VFSUtils.getRealURL(someProps).toURI());
assertTrue(updateFile.exists());
- assertTrue(updateFile.setLastModified(System.currentTimeMillis()));
+ assertTrue(updateFile.setLastModified(System.currentTimeMillis() + 1500l));
@SuppressWarnings("deprecation")
VirtualFile tempProps = tempRoot.findChild("WEB-INF/classes/some.properties");
tempTimestamp = tempProps.getLastModified();
More information about the jboss-cvs-commits
mailing list