Class AuthenticationProviderTest
- java.lang.Object
-
- com.xebialabs.deployit.security.authentication.AuthenticationProviderTest
-
public abstract class AuthenticationProviderTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringADMIN_PASSWORDprotected static java.lang.StringADMIN_USERNAMEprotected static java.lang.StringANONYMOUS_USERNAMEprotected static java.lang.StringREGULAR_PASSWORDprotected static java.lang.StringREGULAR_USERNAME
-
Constructor Summary
Constructors Constructor Description AuthenticationProviderTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidadminUserShouldAuthenticateWithCorrectPassword()voidadminUserShouldNotAuthenticateWithIncorrectPassword()voidanonymousUserShouldNotAuthenticateWithAnyPassword()protected abstract com.xebialabs.deployit.security.UserServicegetUserService()voidregularUserShouldAuthenticateWithCorrectPassword()voidregularUserShouldNotAuthenticateWithIncorrectPassword()voidsetupAuthenticationProvider()voidshouldNotAuthenticateWithWrongUsername()
-
-
-
Field Detail
-
ANONYMOUS_USERNAME
protected static final java.lang.String ANONYMOUS_USERNAME
- See Also:
- Constant Field Values
-
ADMIN_USERNAME
protected static final java.lang.String ADMIN_USERNAME
- See Also:
- Constant Field Values
-
ADMIN_PASSWORD
protected static final java.lang.String ADMIN_PASSWORD
- See Also:
- Constant Field Values
-
REGULAR_USERNAME
protected static final java.lang.String REGULAR_USERNAME
- See Also:
- Constant Field Values
-
REGULAR_PASSWORD
protected static final java.lang.String REGULAR_PASSWORD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserService
protected abstract com.xebialabs.deployit.security.UserService getUserService()
-
setupAuthenticationProvider
public void setupAuthenticationProvider()
-
anonymousUserShouldNotAuthenticateWithAnyPassword
public void anonymousUserShouldNotAuthenticateWithAnyPassword()
-
adminUserShouldAuthenticateWithCorrectPassword
public void adminUserShouldAuthenticateWithCorrectPassword()
-
adminUserShouldNotAuthenticateWithIncorrectPassword
public void adminUserShouldNotAuthenticateWithIncorrectPassword()
-
regularUserShouldAuthenticateWithCorrectPassword
public void regularUserShouldAuthenticateWithCorrectPassword()
-
regularUserShouldNotAuthenticateWithIncorrectPassword
public void regularUserShouldNotAuthenticateWithIncorrectPassword()
-
shouldNotAuthenticateWithWrongUsername
public void shouldNotAuthenticateWithWrongUsername()
-
-