Search in sources :

Example 11 with AuthTokenService

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();
}
Also used : AuthTokenService(org.summerb.microservices.users.api.AuthTokenService) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)11 AuthTokenService (org.summerb.microservices.users.api.AuthTokenService)11 AuthToken (org.summerb.microservices.users.api.dto.AuthToken)1