@Test public void DeleteExtruderNoSuchFileTest() { DeleteExtruderConfigurationCommand delete = new DeleteExtruderConfigurationCommand("DeleteExceptionTest"); delete.execute(); assertFalse((Boolean) delete.getResult()); }
/** Test of execute method, of class DeleteExtruderConfigurationCommand. */ @Test public void DeleteExtruderValidFileTest() { file = new File(name); try { file.createNewFile(); } catch (IOException ex) { fail("Could not create File to delete"); Logger.getLogger(DeleteExtruderConfigurationCommandTest.class.getName()) .log(Level.SEVERE, null, ex); } DeleteExtruderConfigurationCommand delete = new DeleteExtruderConfigurationCommand("DeleteTest"); delete.execute(); assertTrue((Boolean) delete.getResult()); }