Skip to content

Commit 79efcff

Browse files
committed
Update JUnit assertion messages to be clearer on use of symbolic links
1 parent 8662f89 commit 79efcff

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void testDeleteDirWithASymbolicLinkDir2() throws Exception {
6969
assertEquals(1, top.list().length);
7070

7171
// ensure that the contents of the symlink were NOT removed.
72-
assertEquals(1, randomDirectory.list().length, "Contents of sym link should not have been removed");
72+
assertEquals(1, randomDirectory.list().length, "Contents of symbolic link should not have been removed");
7373
}
7474

7575
@Test
@@ -100,7 +100,7 @@ public void testDeleteDirWithASymlinkDir() throws Exception {
100100
assertEquals(1, top.list().length);
101101

102102
// ensure that the contents of the symlink were NOT removed.
103-
assertEquals(1, randomDirectory.list().length, "Contents of sym link should not have been removed");
103+
assertEquals(1, randomDirectory.list().length, "Contents of symbolic link should not have been removed");
104104
}
105105

106106
@Test
@@ -187,7 +187,7 @@ public void testDeleteParentSymbolicLink2() throws Exception {
187187
assertEquals(2, top.list().length);
188188

189189
// ensure that the contents of the symlink were NOT removed.
190-
assertEquals(1, randomDirectory.list().length, "Contents of sym link should not have been removed");
190+
assertEquals(1, randomDirectory.list().length, "Contents of symbolic link should not have been removed");
191191
}
192192

193193
@Test
@@ -220,7 +220,7 @@ public void testDeleteParentSymlink() throws Exception {
220220
assertEquals(2, top.list().length);
221221

222222
// ensure that the contents of the symlink were NOT removed.
223-
assertEquals(1, randomDirectory.list().length, "Contents of sym link should not have been removed");
223+
assertEquals(1, randomDirectory.list().length, "Contents of symbolic link should not have been removed");
224224
}
225225

226226
@Test

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void testCleanDirWithASymlinkDir() throws Exception {
8585
assertEquals(0, realOuter.list().length);
8686

8787
// ensure that the contents of the symlink were NOT removed.
88-
assertEquals(1, randomDirectory.list().length, "Contents of sym link should not have been removed");
88+
assertEquals(1, randomDirectory.list().length, "Contents of symbolic link should not have been removed");
8989
}
9090

9191
@Test
@@ -125,7 +125,7 @@ public void testCleanDirWithParentSymlinks() throws Exception {
125125
assertEquals(0, realParent.list().length);
126126

127127
// ensure that the contents of the symlink were NOT removed.
128-
assertEquals(1, randomDirectory.list().length, "Contents of sym link should not have been removed");
128+
assertEquals(1, randomDirectory.list().length, "Contents of symbolic link should not have been removed");
129129
}
130130

131131
@Test

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ private void createCircularSymbolicLink(final File file) throws IOException {
221221
createCircularOsSymbolicLink(linkName, targetName);
222222
}
223223
// Sanity check:
224-
assertTrue(Files.isSymbolicLink(linkPath), () -> "Expected a sym link here: " + linkName);
224+
assertTrue(Files.isSymbolicLink(linkPath), () -> "Expected a symbolic link here: " + linkName);
225225
}
226226

227227
private void createFilesForTestCopyDirectory(final File grandParentDir, final File parentDir, final File childDir) throws IOException {

0 commit comments

Comments
 (0)