Search in sources :

Example 21 with DontRepeat

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

Aggregations

DontRepeat (tech.sirwellington.alchemy.test.junit.runners.DontRepeat)21 Test (org.junit.Test)20 OperationFailedException (tech.aroma.thrift.exceptions.OperationFailedException)6 Message (tech.aroma.thrift.Message)4 User (tech.aroma.thrift.User)4 UserDoesNotExistException (tech.aroma.thrift.exceptions.UserDoesNotExistException)3 Application (tech.aroma.thrift.Application)2 Organization (tech.aroma.thrift.Organization)2 UUID.fromString (java.util.UUID.fromString)1 Image (tech.aroma.thrift.Image)1 ApplicationDoesNotExistException (tech.aroma.thrift.exceptions.ApplicationDoesNotExistException)1 IntegrationTest (tech.sirwellington.alchemy.annotations.testing.IntegrationTest)1 TimeSensitive (tech.sirwellington.alchemy.annotations.testing.TimeSensitive)1 StringGenerators.alphabeticString (tech.sirwellington.alchemy.generator.StringGenerators.alphabeticString)1 GenerateString (tech.sirwellington.alchemy.test.junit.runners.GenerateString)1