Package de.hybris.platform.cockpit
Class CockpitConfigurationServiceTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.servicelayer.ServicelayerTransactionalTest
-
- de.hybris.platform.cockpit.CockpitConfigurationServiceTest
-
- All Implemented Interfaces:
JaloSessionHolder
@DemoTest public class CockpitConfigurationServiceTest extends ServicelayerTransactionalTest
Demonstrates usage of the CockpitConfigurationService
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description CockpitConfigurationServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
prepares some test data, before execution of every test:
- the test principalModel will be created and savedvoid
testGetCockpitConfigurations()
Demonstrates two ways to retrieve cockpit configurations given a principal:
- Retrieves all component configurations based on the given principal
- Retrieve a specific configuration based on principal, object template code, and code.void
testGetRoleNamesForPrincipal()
Demonstrates how to retrieve roles names for a given principal-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
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
prepares some test data, before execution of every test:
- the test principalModel will be created and saved- Throws:
java.lang.Exception
-
testGetCockpitConfigurations
public void testGetCockpitConfigurations()
Demonstrates two ways to retrieve cockpit configurations given a principal:
- Retrieves all component configurations based on the given principal
- Retrieve a specific configuration based on principal, object template code, and code.
-
testGetRoleNamesForPrincipal
public void testGetRoleNamesForPrincipal()
Demonstrates how to retrieve roles names for a given principal
-
-