Ejemplo n.º 1
0
 @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());
 }
Ejemplo n.º 2
0
  @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);
  }