You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/08/07 18:13:21 UTC

[commons-io] 01/02: Better test method name.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git

commit 14d9f7b0499db24b6f4c0c80e25a6be8fe2e63b3
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 7 14:08:24 2020 -0400

    Better test method name.
---
 src/test/java/org/apache/commons/io/FileUtilsTestCase.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/commons/io/FileUtilsTestCase.java b/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
index 8ae6ba3..4b35131 100644
--- a/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
+++ b/src/test/java/org/apache/commons/io/FileUtilsTestCase.java
@@ -1154,7 +1154,7 @@ public class FileUtilsTestCase {
     public void testCopyFile1() throws Exception {
         final File destination = new File(temporaryFolder, "copy1.txt");
 
-        backDateFile(testFile1); // set test file back 10 minutes
+        backDateFile10Minutes(testFile1); // set test file back 10 minutes
 
         FileUtils.copyFile(testFile1, destination);
         assertTrue(destination.exists(), "Check Exist");
@@ -1202,7 +1202,7 @@ public class FileUtilsTestCase {
     public void testCopyFile2() throws Exception {
         final File destination = new File(temporaryFolder, "copy2.txt");
 
-        backDateFile(testFile1); // set test file back 10 minutes
+        backDateFile10Minutes(testFile1); // set test file back 10 minutes
 
         FileUtils.copyFile(testFile1, destination);
         assertTrue(destination.exists(), "Check Exist");
@@ -1228,7 +1228,7 @@ public class FileUtilsTestCase {
     public void testCopyFile2WithoutFileDatePreservation() throws Exception {
         final File destFile = new File(temporaryFolder, "copy2.txt");
 
-        backDateFile(testFile1); // set test file back 10 minutes
+        backDateFile10Minutes(testFile1); // set test file back 10 minutes
 
         // destination file time should not be less than this (allowing for granularity)
         final long now = new Date().getTime() - 1000L;
@@ -3094,7 +3094,7 @@ public class FileUtilsTestCase {
         }
     }
 
-    private void backDateFile(File testFile) throws IOException {
+    private void backDateFile10Minutes(File testFile) throws IOException {
         final long mins10 = 1000 * 60 * 10;
         final long lastModified1 = getLastModifiedMillis(testFile);
         setLastModifiedMillis(testFile, lastModified1 - mins10);