Search in sources :

Example 11 with AuthTokenService

use of org.summerb.users.api.AuthTokenService in project summerb by skarpushin.

the class AuthTokenServiceDbImplTest method testCreateAuthToken_defensive_passwordNull.

@Test(expected = IllegalArgumentException.class)
public void testCreateAuthToken_defensive_passwordNull() throws Exception {
    AuthTokenService fixture = AuthTokenServiceDbImplFactory.createAuthTokenServiceDbImpl();
    fixture.authenticate("", null, "");
    fail();
}
Also used : AuthTokenService(org.summerb.users.api.AuthTokenService) Test(org.junit.Test)

Aggregations

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