@DemoTest public class CockpitCollectionServiceTest extends ServicelayerTransactionalTest
importServicejaloSession| Constructor and Description |
|---|
CockpitCollectionServiceTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
getElements()
Demonstrates how to get elements from a Cockpit special collection
|
void |
setUp()
prepares some test data, before execution of every test:
- the test principalModel will be created and saved |
void |
testAddToCollection()
Demonstrates how to add another item to the Cockpit collection
- Retrieve the "testA" collection - Add a new ProductModel "testProduct4" to this collection - Verify the ProductModel was successfully added |
void |
testCloneCollection()
Demonstrates how to create a deep copy of a cockpit collection
|
void |
testGetCollections()
Demonstrates various ways to retrieve cockpit collections:
- Retrieves Cockpit collections for a given user - Retrieves Cockpit special collections for a given user - Retrieves Cockpit special collections for a given user and collection type |
void |
testHasReadCollectionRight()
Demonstrates how to check read access for a given cockpit collection.
The impex file testCollections.csv contains the test data permissions. |
void |
testHasWriteCollectionRight()
Demonstrates how to check write access for a given cockpit collection.
The impex file testCollections.csv contains the test data permissions. |
void |
testRemoveFromCollection()
Demonstrates how to remove an element from the cockpit collection:
- Retrieve the "testA" collection - Attempt to remove a non-existent element in the collection - Attempt to remove an existing element in the collection |
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void testCloneCollection()
public void testHasReadCollectionRight()
public void testHasWriteCollectionRight()
public void testGetCollections()
public void getElements()
public void testAddToCollection()
public void testRemoveFromCollection()
Copyright © 2018 SAP SE. All Rights Reserved.