ConverterSwingWorker extends ProgressMonitorSwingWorker<List<Exception>, File> { static String createInputPathWildcards(File sourceDirectory) { final StringBuilder sourcePath = new StringBuilder(); final String absolutePath = sourceDirectory.getAbsolutePath(); sourcePath.append(absolutePath); sourcePath.append(File.separator); sourcePath.append("*.zip,"); sourcePath.append(absolutePath); sourcePath.append(File.separator); sourcePath.append("*.dbl"); return sourcePath.toString(); } ConverterSwingWorker(AppContext appContext, ExportParameter exportParameter);   }
@Test public void testCreateInputPathWildcards() { final File inputDir = new File("data"); final String pathWildcards = ConverterSwingWorker.createInputPathWildcards(inputDir); final String absolutePath = inputDir.getAbsolutePath(); assertEquals(absolutePath + File.separator + "*.zip," + absolutePath + File.separator + "*.dbl", pathWildcards); }