Package de.hybris.platform.jalo.user
Class UserManagerIntegrationTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.jalo.user.UserManagerIntegrationTest
- All Implemented Interfaces:
JaloSessionHolder
-
Field Summary
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
UserManagerIntegrationTest
public UserManagerIntegrationTest()
-
-
Method Details
-
setUp
public void setUp() -
tearDown
public void tearDown() -
shouldGetUserWithNoDecoratedUserId
- Throws:
ConsistencyCheckException
-
shouldGetCustomerWithNoDecoratedUserId
- Throws:
ConsistencyCheckException
-
shouldNotGetUserAndThrowExceptionWhenProvidingIncorrectUserId
public void shouldNotGetUserAndThrowExceptionWhenProvidingIncorrectUserId() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldGetUserWithDecoratedUserId
- Throws:
ConsistencyCheckException
-
shouldNotGetUserWithDecoratedUserIdAndThrowExceptionIfThereIsNoConfiguredUserIdDecorationStrategy
public void shouldNotGetUserWithDecoratedUserIdAndThrowExceptionIfThereIsNoConfiguredUserIdDecorationStrategy() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldGetCustomerWithDecoratedUserId
- Throws:
ConsistencyCheckException
-
shouldNotGetUserAndThrowExceptionIfFoundUserIsNoEmployeeType
public void shouldNotGetUserAndThrowExceptionIfFoundUserIsNoEmployeeType() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldUseAllUserIdDecorationStrategiesToGetTheUser
- Throws:
ConsistencyCheckException
-
shouldUseOnlyBarAndBazUserIdDecorationStrategiesToGetUserWhenTheFirstOneIsDisabled
public void shouldUseOnlyBarAndBazUserIdDecorationStrategiesToGetUserWhenTheFirstOneIsDisabled() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldUseOnlyTheLastUserIdDecorationStrategyToGetUserWhenThePreviousAreDisabled
public void shouldUseOnlyTheLastUserIdDecorationStrategyToGetUserWhenThePreviousAreDisabled() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldNotGetAnyUserAndThrowExceptionIfAllStrategiesAreDisabled
public void shouldNotGetAnyUserAndThrowExceptionIfAllStrategiesAreDisabled() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldGetUserWithNoDecoratedUserIdIfAllStrategiesAreDisabled
public void shouldGetUserWithNoDecoratedUserIdIfAllStrategiesAreDisabled() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldAddPrefixAndSuffixWhenDecoratingInOrderToGetUserWithDecoratedUserId
public void shouldAddPrefixAndSuffixWhenDecoratingInOrderToGetUserWithDecoratedUserId() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldAddPrefixAndSuffixesWhenDecoratingInOrderToGetUserWithDecoratedUserId
public void shouldAddPrefixAndSuffixesWhenDecoratingInOrderToGetUserWithDecoratedUserId() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldAddPrefixesAndSuffixesWhenDecoratingInOrderToGetUserWithDecoratedUserId
public void shouldAddPrefixesAndSuffixesWhenDecoratingInOrderToGetUserWithDecoratedUserId() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldNotThrowExceptionAndNotDecorateUserIdIfStrategyReturnsNull
public void shouldNotThrowExceptionAndNotDecorateUserIdIfStrategyReturnsNull() throws ConsistencyCheckException- Throws:
ConsistencyCheckException
-
shouldNotDecorateUserIdWhenGettingAdminByGetUserByLoginMethod
public void shouldNotDecorateUserIdWhenGettingAdminByGetUserByLoginMethod() -
shouldNotDecorateUserIdWhenGettingAnonymousByGetUserByLoginMethod
public void shouldNotDecorateUserIdWhenGettingAnonymousByGetUserByLoginMethod() -
withDecorationUserUndecorated
- Throws:
ConsistencyCheckException
-
withDecorationUserDecorated
- Throws:
ConsistencyCheckException
-
withDecorationEmployeeUndecorated
- Throws:
ConsistencyCheckException
-
withDecorationEmployeeDecorated
- Throws:
ConsistencyCheckException
-
withDecorationEmployeeAsUserUndecorated
- Throws:
ConsistencyCheckException
-
withDecorationCustomerUndecorated
- Throws:
ConsistencyCheckException
-
withDecorationCustomerDecorated
- Throws:
ConsistencyCheckException
-
withDecorationCustomerAsUserUndecorated
- Throws:
ConsistencyCheckException
-
withDecorationCustomerAsUserDecorated
- Throws:
ConsistencyCheckException
-
withDecorationCustomerDecoratedAndUser
- Throws:
ConsistencyCheckException
-
withDecorationNotExistingUser
public void withDecorationNotExistingUser() -
withoutDecorationUserUndecorated
- Throws:
ConsistencyCheckException
-
withoutDecorationUserDecorated
- Throws:
ConsistencyCheckException
-
withoutDecorationEmployeeUndecorated
- Throws:
ConsistencyCheckException
-
withoutDecorationEmployeeAsUserUndecorated
- Throws:
ConsistencyCheckException
-
withoutDecorationCustomerUndecorated
- Throws:
ConsistencyCheckException
-
withoutDecorationCustomerDecorated
- Throws:
ConsistencyCheckException
-
withoutDecorationCustomerAsUserUndecorated
- Throws:
ConsistencyCheckException
-
withoutDecorationCustomerAsUserDecorated
- Throws:
ConsistencyCheckException
-
withoutDecorationNotExistingUser
public void withoutDecorationNotExistingUser()
-