You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2020/08/07 16:23:57 UTC
[commons-io] branch master updated: Better test
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new b344731 Better test
b344731 is described below
commit b3447316b5c586312f26e3df431f926e82d7a283
Author: Sebb <se...@apache.org>
AuthorDate: Fri Aug 7 17:23:47 2020 +0100
Better test
---
src/test/java/org/apache/commons/io/FileUtilsTestCase.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/java/org/apache/commons/io/FileUtilsTestCase.java b/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
index bdbc20d..0a5620c 100644
--- a/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
+++ b/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
@@ -1408,9 +1408,9 @@ public class FileUtilsTestCase {
// Test with preserveFileDate disabled
FileUtils.copyDirectory(source, target, false);
- assertTrue(DATE1 != getLastModifiedMillis(target));
- assertTrue(DATE2 != getLastModifiedMillis(targetDirectory));
- assertTrue(DATE3 != getLastModifiedMillis(targetFile));
+ assertNotEquals(DATE1, target.lastModified());
+ assertNotEquals(DATE2, targetDirectory.lastModified());
+ assertNotEquals(DATE3, targetFile.lastModified());
FileUtils.deleteDirectory(target);
// Test with preserveFileDate enabled