Skip to content

Commit eab7b6b

Browse files
author
Gary Gregory
committed
Sort members.
1 parent 3a88ce3 commit eab7b6b

2 files changed

Lines changed: 19 additions & 19 deletions

File tree

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,21 @@ private void consumeRemaining(final Iterator<File> iterator) {
184184
}
185185
}
186186

187+
private void createCircularOsSymLink(final String linkName, final String targetName) throws IOException {
188+
if (FilenameUtils.isSystemWindows()) {
189+
// Windows
190+
try {
191+
Runtime.getRuntime().exec("mklink /D " + linkName + " " + targetName);
192+
} catch (final IOException ioe) {
193+
// So that tests run in FAT filesystems don't fail
194+
ioe.printStackTrace();
195+
}
196+
} else {
197+
// Not Windows, assume Linux
198+
Runtime.getRuntime().exec("ln -s " + targetName + " " + linkName);
199+
}
200+
}
201+
187202
/**
188203
* May throw java.nio.file.FileSystemException: C:\Users\...\FileUtilsTestCase\cycle: A required privilege is not held
189204
* by the client. On Windows, you are fine if you run a terminal with admin karma.
@@ -209,21 +224,6 @@ private void createCircularSymLink(final File file) throws IOException {
209224
assertTrue(Files.isSymbolicLink(linkPath), () -> "Expected a sym link here: " + linkName);
210225
}
211226

212-
private void createCircularOsSymLink(final String linkName, final String targetName) throws IOException {
213-
if (FilenameUtils.isSystemWindows()) {
214-
// Windows
215-
try {
216-
Runtime.getRuntime().exec("mklink /D " + linkName + " " + targetName);
217-
} catch (final IOException ioe) {
218-
// So that tests run in FAT filesystems don't fail
219-
ioe.printStackTrace();
220-
}
221-
} else {
222-
// Not Windows, assume Linux
223-
Runtime.getRuntime().exec("ln -s " + targetName + " " + linkName);
224-
}
225-
}
226-
227227
private void createFilesForTestCopyDirectory(final File grandParentDir, final File parentDir, final File childDir) throws Exception {
228228
final File childDir2 = new File(parentDir, "child2");
229229
final File grandChildDir = new File(childDir, "grandChild");

src/test/java/org/apache/commons/io/input/TailerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@
6060
*/
6161
public class TailerTest {
6262

63-
private static final int TEST_BUFFER_SIZE = 1024;
64-
65-
private static final int TEST_DELAY_MILLIS = 1500;
66-
6763
private static class NonStandardTailable implements Tailer.Tailable {
6864

6965
private final File file;
@@ -188,6 +184,10 @@ public void init(final Tailer tailer) {
188184
}
189185
}
190186

187+
private static final int TEST_BUFFER_SIZE = 1024;
188+
189+
private static final int TEST_DELAY_MILLIS = 1500;
190+
191191
@TempDir
192192
public static File temporaryFolder;
193193

0 commit comments

Comments
 (0)