PdfFileSourceListAdapter { public List<PdfFileSource> getFileSourceList() { fileSourceList.addAll(parserFactory.createSource(file).getInputFiles(file)); if (fileSourceList.isEmpty()) { throw new ConversionException("No input files specified in '" + file.getPath() + "'"); } return fileSourceList; } PdfFileSourceListAdapter(String filePath); PdfFileSourceListAdapter filter(String filterRegExp); List<PdfFileSource> getFileSourceList();  }
@Test public void testPositive() { PdfFileSourceListAdapter victim = new PdfFileSourceListAdapter(path.getAbsolutePath()); List<PdfFileSource> list = victim.getFileSourceList(); assertEquals(5, list.size()); assertEquals("1 Hello world.pdf", list.get(0).getName()); assertEquals("2 test_file.pdf", list.get(1).getName()); assertEquals("3 test_file.pdf", list.get(2).getName()); assertEquals("10 Blablabla.pdf", list.get(3).getName()); assertEquals("11 test_file.pdf", list.get(4).getName()); }