Search in sources :

Example 1 with ApplicationDoesNotExistException

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);
}
Also used : ApplicationDoesNotExistException(tech.aroma.thrift.exceptions.ApplicationDoesNotExistException) Test(org.junit.Test) DontRepeat(tech.sirwellington.alchemy.test.junit.runners.DontRepeat)

Aggregations

Test (org.junit.Test)1 ApplicationDoesNotExistException (tech.aroma.thrift.exceptions.ApplicationDoesNotExistException)1 DontRepeat (tech.sirwellington.alchemy.test.junit.runners.DontRepeat)1