use of tech.aroma.thrift.exceptions.ApplicationDoesNotExistException in project aroma-data-operations by RedRoma.
the class MeasuredApplicationRepositoryTest method testDeleteApplicationWhenThrows.
@DontRepeat
@Test
public void testDeleteApplicationWhenThrows() throws Exception {
doThrow(new ApplicationDoesNotExistException()).when(delegate).deleteApplication(appId);
assertThrows(() -> instance.deleteApplication(appId)).isInstanceOf(ApplicationDoesNotExistException.class);
verify(delegate).deleteApplication(appId);
}
Aggregations