Browse Source

sneak in an explicit test of the new file utils timestamp comparison stuff

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276753 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 21 years ago
parent
commit
45a286b046
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/testcases/org/apache/tools/ant/util/FileUtilsTest.java

+ 2
- 0
src/testcases/org/apache/tools/ant/util/FileUtilsTest.java View File

@@ -83,6 +83,8 @@ public class FileUtilsTest extends TestCase {
long secondModTime = removeThis.lastModified();
assertTrue(secondModTime > modTime);

//check that the isUpToDate logic works
assertFalse(fu.isUpToDate(modTime,secondModTime));

// number of milliseconds in a day
final int millisperday=24 * 3600 * 1000;


Loading…
Cancel
Save