@PerformanceTest public class UserIsAdminTest extends HybrisJUnit4Test
jaloSession| Constructor and Description |
|---|
UserIsAdminTest() |
| Modifier and Type | Method and 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) |
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setup()
throws java.lang.Exception
java.lang.Exceptionpublic void testCorrectAdminCacheInvalidation()
throws ConsistencyCheckException
ConsistencyCheckExceptionpublic void testAnonymousIsAdmin()
throws ConsistencyCheckException
ConsistencyCheckExceptionpublic void testAdminIsAdmin()
throws ConsistencyCheckException
ConsistencyCheckExceptionpublic void testCustomerIsAdminNotOptimized()
throws ConsistencyCheckException
ConsistencyCheckExceptionpublic void testCustomerIsAdminOptimized()
throws ConsistencyCheckException
ConsistencyCheckExceptionprotected void testCustomerIsAdmin(boolean allowCustomerAsAdmin)
throws ConsistencyCheckException
ConsistencyCheckExceptionprotected java.lang.String setCustomerAsAdmin(boolean allow)
protected void clearCustomerAsAdminCache()
protected java.util.List<PK> generateCustomers(int amount) throws ConsistencyCheckException
ConsistencyCheckExceptionprotected long testIsAdmin(boolean withGroups,
java.util.List<PK> userPKs)
protected long testIsAdmin(boolean withGroups,
java.util.List<PK> userPKs,
boolean createNewCustomers)
Copyright © 2018 SAP SE. All Rights Reserved.