use of tech.sirwellington.alchemy.test.junit.runners.DontRepeat in project aroma-data-operations by RedRoma.
the class MeasuredApplicationRepositoryTest method testGetApplicationsOwnedByWhenThrows.
@DontRepeat
@Test
public void testGetApplicationsOwnedByWhenThrows() throws Exception {
when(delegate.getApplicationsOwnedBy(userId)).thenThrow(new UserDoesNotExistException());
assertThrows(() -> instance.getApplicationsOwnedBy(userId)).isInstanceOf(UserDoesNotExistException.class);
verify(delegate).getApplicationsOwnedBy(userId);
}
Aggregations