Home
last modified time | relevance | path

Searched refs:getLastModifiedMillis (Results 1 – 2 of 2) sorted by relevance

/external/apache-commons-io/src/test/java/org/apache/commons/io/
DFileUtilsTest.java194 final long lastModified1 = getLastModifiedMillis(testFile); in backDateFile10Minutes()
197 …assertNotEquals(getLastModifiedMillis(testFile), lastModified1, "Should have changed source date"); in backDateFile10Minutes()
274 private long getLastModifiedMillis(final File file) throws IOException {
846 assertNotEquals(DATE1, getLastModifiedMillis(target));
847 assertNotEquals(DATE2, getLastModifiedMillis(targetDirectory));
849 assertNotEquals(DATE3, getLastModifiedMillis(targetFile));
855 assertEquals(DATE1, getLastModifiedMillis(target));
856 assertEquals(DATE2, getLastModifiedMillis(targetDirectory));
857 assertEquals(DATE3, getLastModifiedMillis(targetFile));
863 assertEquals(DATE1, getLastModifiedMillis(target));
[all …]
/external/apache-commons-io/src/test/java/org/apache/commons/io/file/
DPathUtilsTest.java100 private Long getLastModifiedMillis(final Path file) throws IOException { in getLastModifiedMillis() method in PathUtilsTest
490 … assertEquals(y2k, getLastModifiedMillis(file), "Bad test: set lastModified set incorrect value"); in testTouch()
494 assertNotEquals(y2k, getLastModifiedMillis(file), "FileUtils.touch() changed lastModified"); in testTouch()
496 …assertTrue(getLastModifiedMillis(file) >= nowMillis - delta, "FileUtils.touch() changed lastModifi… in testTouch()
497 …assertTrue(getLastModifiedMillis(file) <= nowMillis + delta, "FileUtils.touch() changed lastModifi… in testTouch()