Skip to content

Commit 14d9f7b

Browse files
author
Gary Gregory
committed
Better test method name.
1 parent 3d17107 commit 14d9f7b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/test/java/org/apache/commons/io/FileUtilsTestCase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ public void testIsFileNewerOlder() throws Exception {
11541154
public void testCopyFile1() throws Exception {
11551155
final File destination = new File(temporaryFolder, "copy1.txt");
11561156

1157-
backDateFile(testFile1); // set test file back 10 minutes
1157+
backDateFile10Minutes(testFile1); // set test file back 10 minutes
11581158

11591159
FileUtils.copyFile(testFile1, destination);
11601160
assertTrue(destination.exists(), "Check Exist");
@@ -1202,7 +1202,7 @@ public void testCopyFileLarge() throws Exception {
12021202
public void testCopyFile2() throws Exception {
12031203
final File destination = new File(temporaryFolder, "copy2.txt");
12041204

1205-
backDateFile(testFile1); // set test file back 10 minutes
1205+
backDateFile10Minutes(testFile1); // set test file back 10 minutes
12061206

12071207
FileUtils.copyFile(testFile1, destination);
12081208
assertTrue(destination.exists(), "Check Exist");
@@ -1228,7 +1228,7 @@ public void testCopyToSelf() throws Exception {
12281228
public void testCopyFile2WithoutFileDatePreservation() throws Exception {
12291229
final File destFile = new File(temporaryFolder, "copy2.txt");
12301230

1231-
backDateFile(testFile1); // set test file back 10 minutes
1231+
backDateFile10Minutes(testFile1); // set test file back 10 minutes
12321232

12331233
// destination file time should not be less than this (allowing for granularity)
12341234
final long now = new Date().getTime() - 1000L;
@@ -3094,7 +3094,7 @@ public void testIncorrectOutputSize() throws Exception {
30943094
}
30953095
}
30963096

3097-
private void backDateFile(File testFile) throws IOException {
3097+
private void backDateFile10Minutes(File testFile) throws IOException {
30983098
final long mins10 = 1000 * 60 * 10;
30993099
final long lastModified1 = getLastModifiedMillis(testFile);
31003100
setLastModifiedMillis(testFile, lastModified1 - mins10);

0 commit comments

Comments
 (0)