Add missing AccumulatorPathVisitor test
MODIFY
src/test/java/org/apache/commons/io/file/AccumulatorPathVisitorTest.java
src/test/java/org/apache/commons/io/file/AccumulatorPathVisitorTest.java
import org.apache.commons.io.filefilter.EmptyFileFilter;
import org.apache.commons.io.filefilter.PathVisitorFileFilter;
import org.apache.commons.io.function.IOBiFunction;
+import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
@TempDir
Path tempDirPath;
+ @Test
+ public void test0ArgConstructor() throws IOException {
+ final AccumulatorPathVisitor accPathVisitor = new AccumulatorPathVisitor();
+ final PathVisitorFileFilter countingFileFilter = new PathVisitorFileFilter(accPathVisitor);
+ Files.walkFileTree(tempDirPath, new AndFileFilter(countingFileFilter, DirectoryFileFilter.INSTANCE, EmptyFileFilter.EMPTY));
+ assertCounts(0, 0, 0, accPathVisitor.getPathCounters());
+ assertEquals(1, accPathVisitor.getDirList().size());
+ assertTrue(accPathVisitor.getFileList().isEmpty());
+ }
+
/**
* Tests an empty folder.
*/

Add missing AccumulatorPathVisitor test