use of org.summerb.microservices.users.api.AuthTokenService in project summerb by skarpushin.
the class AuthTokenServiceDbImplTest method testFindUserAuthTokens_whitebox_expectUserNotFoundExceptionForNonExistentUser.
@Test(expected = UserNotFoundException.class)
public void testFindUserAuthTokens_whitebox_expectUserNotFoundExceptionForNonExistentUser() throws Exception {
AuthTokenService fixture = AuthTokenServiceDbImplFactory.createAuthTokenServiceDbImpl();
fixture.findUserAuthTokens(UserFactory.NON_EXISTENT_USER);
fail();
}
Aggregations