DirectoryDataPool extends DataPoolConfiguration { public void setFolder(DynamicValue<String> folder) { this.folder = folder; } DirectoryDataPool(); DynamicValue<String> getFolder(); void setFolder(DynamicValue<String> folder);  }
@Test public void testEmpty() { File fileEmpty = FileHelper.getClassLoaderResourceAsFile(this.getClass().getClassLoader(), "emptyFolder"); DirectoryDataPool conf = new DirectoryDataPool(); conf.setFolder(new DynamicValue<String>(fileEmpty.getAbsolutePath())); DataSet<?> poolEmpty = DataPoolFactory.getDataPool("folder", conf, newExecutionContext()); poolEmpty.init(); DataPoolRow next = poolEmpty.next(); Assert.assertTrue(next==null || ((FileDataPoolImpl.ExtendedFile)next.getValue()).getName().equals(".gitignore")); poolEmpty.close(); }