Home
last modified time | relevance | path

Searched refs:testFile2 (Results 1 – 3 of 3) sorted by relevance

/external/apache-commons-io/src/test/java/org/apache/commons/io/
DFileUtilsFileNewerTest.java48 private File testFile2; field in FileUtilsFileNewerTest
53 testFile2 = new File(temporaryFolder, "file2-test.txt"); in setUp()
60 if (!testFile2.getParentFile().exists()) { in setUp()
61 …throw new IOException("Cannot create file " + testFile2 + " as the parent directory does not exist… in setUp()
63 …try (BufferedOutputStream output = new BufferedOutputStream(Files.newOutputStream(testFile2.toPath… in setUp()
114 final File temporaryFile = testFile2; in testIsFileNewer()
136 …er("imaginary file can be newer", imaginaryFile, FileUtils.lastModifiedFileTime(testFile2), false); in testIsFileNewerImaginaryFile()
DFileUtilsTest.java177 private File testFile2; field in FileUtilsTest
334 testFile2 = new File(tempDirFile, "file1a-test.txt");
337 testFile2Size = testFile2.length();
346 if (!testFile2.getParentFile().exists()) {
347 fail("Cannot create file " + testFile2
351 new BufferedOutputStream(Files.newOutputStream(testFile2.toPath()))) {
364 if (!testFile2.getParentFile().exists()) {
365 fail("Cannot create file " + testFile2
369 new BufferedOutputStream(Files.newOutputStream(testFile2.toPath()))) {
903 if (!testFile2.getParentFile().exists()) {
[all …]
DFilenameUtilsTest.java55 private Path testFile2; field in FilenameUtilsTest
63 testFile2 = Files.createTempFile(temporaryFolder, "test", "2"); in setUp()
66 testFile2Size = (int) Files.size(testFile2); in setUp()
75 if (!Files.exists(testFile2.getParent())) { in setUp()
76 throw new IOException("Cannot create file " + testFile2 in setUp()
80 new BufferedOutputStream(Files.newOutputStream(testFile2))) { in setUp()
91 if (!Files.exists(testFile2.getParent())) { in setUp()
92 throw new IOException("Cannot create file " + testFile2 in setUp()
96 new BufferedOutputStream(Files.newOutputStream(testFile2))) { in setUp()