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 2024/01/30 03:17:34 UTC
(commons-io) branch master updated: Fix whitespace
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
The following commit(s) were added to refs/heads/master by this push:
new 5c304f9fb Fix whitespace
5c304f9fb is described below
commit 5c304f9fbe5abe12ecfc9382f35099dbf07ea4e6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jan 29 22:17:29 2024 -0500
Fix whitespace
---
.../io/monitor/FileAlterationObserverTest.java | 31 +++++++++++++---------
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/src/test/java/org/apache/commons/io/monitor/FileAlterationObserverTest.java b/src/test/java/org/apache/commons/io/monitor/FileAlterationObserverTest.java
index faae878a4..b51ffcd1e 100644
--- a/src/test/java/org/apache/commons/io/monitor/FileAlterationObserverTest.java
+++ b/src/test/java/org/apache/commons/io/monitor/FileAlterationObserverTest.java
@@ -76,6 +76,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
/**
* Test checkAndNotify() method
+ *
* @throws Exception
*/
@Test
@@ -135,6 +136,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
/**
* Test checkAndNotify() creating
+ *
* @throws IOException if an I/O error occurs.
*/
@Test
@@ -143,13 +145,13 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
checkCollectionsEmpty("A");
File testDirA = new File(testDir, "test-dir-A");
testDirA.mkdir();
- testDir = touch(testDir);
+ testDir = touch(testDir);
testDirA = touch(testDirA);
- File testDirAFile1 = new File(testDirA, "A-file1.java");
+ File testDirAFile1 = new File(testDirA, "A-file1.java");
final File testDirAFile2 = touch(new File(testDirA, "A-file2.java"));
- File testDirAFile3 = new File(testDirA, "A-file3.java");
+ File testDirAFile3 = new File(testDirA, "A-file3.java");
final File testDirAFile4 = touch(new File(testDirA, "A-file4.java"));
- File testDirAFile5 = new File(testDirA, "A-file5.java");
+ File testDirAFile5 = new File(testDirA, "A-file5.java");
checkAndNotify();
checkCollectionSizes("B", 1, 0, 0, 2, 0, 0);
@@ -170,7 +172,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
// Create file with name < first entry
testDirAFile1 = touch(testDirAFile1);
- testDirA = touch(testDirA);
+ testDirA = touch(testDirA);
checkAndNotify();
checkCollectionSizes("D", 0, 1, 0, 1, 0, 0);
assertTrue(testDirAFile1.exists(), "D testDirAFile1 exists");
@@ -178,7 +180,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
// Create file with name between 2 entries
testDirAFile3 = touch(testDirAFile3);
- testDirA = touch(testDirA);
+ testDirA = touch(testDirA);
checkAndNotify();
checkCollectionSizes("E", 0, 1, 0, 1, 0, 0);
assertTrue(testDirAFile3.exists(), "E testDirAFile3 exists");
@@ -186,7 +188,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
// Create file with name > last entry
testDirAFile5 = touch(testDirAFile5);
- testDirA = touch(testDirA);
+ testDirA = touch(testDirA);
checkAndNotify();
checkCollectionSizes("F", 0, 1, 0, 1, 0, 0);
assertTrue(testDirAFile5.exists(), "F testDirAFile5 exists");
@@ -195,6 +197,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
/**
* Test checkAndNotify() deleting
+ *
* @throws IOException if an I/O error occurs.
*/
@Test
@@ -203,7 +206,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
checkCollectionsEmpty("A");
File testDirA = new File(testDir, "test-dir-A");
testDirA.mkdir();
- testDir = touch(testDir);
+ testDir = touch(testDir);
testDirA = touch(testDirA);
final File testDirAFile1 = touch(new File(testDirA, "A-file1.java"));
final File testDirAFile2 = touch(new File(testDirA, "A-file2.java"));
@@ -255,6 +258,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
/**
* Test checkAndNotify() creating
+ *
* @throws IOException if an I/O error occurs.
*/
@Test
@@ -263,7 +267,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
checkCollectionsEmpty("A");
File testDirA = new File(testDir, "test-dir-A");
testDirA.mkdir();
- testDir = touch(testDir);
+ testDir = touch(testDir);
testDirA = touch(testDirA);
File testDirAFile1 = touch(new File(testDirA, "A-file1.java"));
final File testDirAFile2 = touch(new File(testDirA, "A-file2.java"));
@@ -290,21 +294,21 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
// Update first entry
testDirAFile1 = touch(testDirAFile1);
- testDirA = touch(testDirA);
+ testDirA = touch(testDirA);
checkAndNotify();
checkCollectionSizes("D", 0, 1, 0, 0, 1, 0);
assertTrue(listener.getChangedFiles().contains(testDirAFile1), "D testDirAFile1");
// Update file with name between 2 entries
testDirAFile3 = touch(testDirAFile3);
- testDirA = touch(testDirA);
+ testDirA = touch(testDirA);
checkAndNotify();
checkCollectionSizes("E", 0, 1, 0, 0, 1, 0);
assertTrue(listener.getChangedFiles().contains(testDirAFile3), "E testDirAFile3");
// Update last entry
testDirAFile5 = touch(testDirAFile5);
- testDirA = touch(testDirA);
+ testDirA = touch(testDirA);
checkAndNotify();
checkCollectionSizes("F", 0, 1, 0, 0, 1, 0);
assertTrue(listener.getChangedFiles().contains(testDirAFile5), "F testDirAFile5");
@@ -312,6 +316,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
/**
* Test checkAndNotify() method
+ *
* @throws IOException if an I/O error occurs.
*/
@Test
@@ -328,7 +333,7 @@ public class FileAlterationObserverTest extends AbstractMonitorTest {
// Create
testDirAFile1 = touch(testDirAFile1);
- File testDirAFile2 = touch(new File(testDirA, "A-file2.txt")); /* filter should ignore */
+ File testDirAFile2 = touch(new File(testDirA, "A-file2.txt")); /* filter should ignore */
File testDirAFile3 = touch(new File(testDirA, "A-file3.java")); /* filter should ignore */
assertTrue(testDirAFile1.exists(), "B testDirAFile1 exists");
assertTrue(testDirAFile2.exists(), "B testDirAFile2 exists");