Skip to content

Commit 0746643

Browse files
committed
Replace Guava with JRE call.
1 parent df770de commit 0746643

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import java.nio.file.StandardOpenOption;
3939
import java.nio.file.attribute.FileTime;
4040
import java.util.ArrayList;
41+
import java.util.Arrays;
4142
import java.util.Collections;
4243
import java.util.List;
4344
import java.util.concurrent.CountDownLatch;
@@ -53,8 +54,6 @@
5354
import org.junit.jupiter.api.Test;
5455
import org.junit.jupiter.api.io.TempDir;
5556

56-
import com.google.common.collect.Lists;
57-
5857
/**
5958
* Test for {@link Tailer}.
6059
*/
@@ -704,7 +703,7 @@ private void validateTailer(final TestTailerListener listener, final File file)
704703
final int timeout = 30;
705704
final TimeUnit timeoutUnit = TimeUnit.SECONDS;
706705
assertTrue(listener.awaitExpectedLines(timeout, timeoutUnit), () -> String.format("await timed out after %s %s", timeout, timeoutUnit));
707-
assertEquals(listener.getLines(), Lists.newArrayList("foo"), "lines");
706+
assertEquals(listener.getLines(), Arrays.asList("foo"), "lines");
708707
}
709708

710709
/** Appends lines to a file */

0 commit comments

Comments
 (0)