Package de.hybris.platform.test
Class UserIsAdminTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.test.UserIsAdminTest
-
- All Implemented Interfaces:
JaloSessionHolder
@PerformanceTest public class UserIsAdminTest extends HybrisJUnit4Test
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description UserIsAdminTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
clearCustomerAsAdminCache()
protected java.util.List<PK>
generateCustomers(int amount)
protected java.lang.String
setCustomerAsAdmin(boolean allow)
void
setup()
void
testAdminIsAdmin()
void
testAnonymousIsAdmin()
void
testCorrectAdminCacheInvalidation()
protected void
testCustomerIsAdmin(boolean allowCustomerAsAdmin)
void
testCustomerIsAdminNotOptimized()
void
testCustomerIsAdminOptimized()
protected long
testIsAdmin(boolean withGroups, java.util.List<PK> userPKs)
protected long
testIsAdmin(boolean withGroups, java.util.List<PK> userPKs, boolean createNewCustomers)
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
setup
public void setup() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCorrectAdminCacheInvalidation
public void testCorrectAdminCacheInvalidation() throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
testAnonymousIsAdmin
public void testAnonymousIsAdmin() throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
testAdminIsAdmin
public void testAdminIsAdmin() throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
testCustomerIsAdminNotOptimized
public void testCustomerIsAdminNotOptimized() throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
testCustomerIsAdminOptimized
public void testCustomerIsAdminOptimized() throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
testCustomerIsAdmin
protected void testCustomerIsAdmin(boolean allowCustomerAsAdmin) throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
setCustomerAsAdmin
protected java.lang.String setCustomerAsAdmin(boolean allow)
-
clearCustomerAsAdminCache
protected void clearCustomerAsAdminCache()
-
generateCustomers
protected java.util.List<PK> generateCustomers(int amount) throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
testIsAdmin
protected long testIsAdmin(boolean withGroups, java.util.List<PK> userPKs)
-
testIsAdmin
protected long testIsAdmin(boolean withGroups, java.util.List<PK> userPKs, boolean createNewCustomers)
-
-