@Test public void testSelectedFilenames() { MassImportForm massImportForm = new MassImportForm(); assertNotNull(massImportForm); List<String> filenames = new ArrayList<>(); filenames.add("test"); massImportForm.setSelectedFilenames(filenames); assertSame(filenames, massImportForm.getSelectedFilenames()); }
@Test public void testConvertFail() throws FileNotFoundException { MassImportForm massImportForm = new MassImportForm(); assertNotNull(massImportForm); massImportForm.setTemplate(template); List<String> list = new ArrayList<>(); list.add("junit"); massImportForm.setSelectedFilenames(list); massImportForm.setCurrentPlugin("JunitImportPluginError"); String fixture = massImportForm.convertData(); assertEquals("", fixture); }