@Override public void deleteApplication(String applicationId) throws ControlServiceException { applicationService.removeAppById(applicationId); }
@Test public void removeAppByIdTest() { ApplicationDto application = generateApplicationDto(); ApplicationDto foundApp = applicationService.findAppById(application.getId()); Assert.assertNotNull(foundApp); Assert.assertEquals(application.getId(), foundApp.getId()); applicationService.removeAppById(application.getId()); foundApp = applicationService.findAppById(application.getId()); Assert.assertNull(foundApp); }