Class SavedQueryServiceTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.cockpit.jalo.CockpitTest
de.hybris.platform.cockpit.services.query.SavedQueryServiceTest
- All Implemented Interfaces:
JaloSessionHolder
Demonstrates usage of the SavedQueryService
-
Field Summary
Fields inherited from class de.hybris.platform.cockpit.jalo.CockpitTest
applicationContextFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetUp()prepares some test data, before execution of every testvoidDemonstrates how to create, save, and rename saved queries:
- Builds theCockpitSavedQueryModelfor 2 queries
- Publish the saved queries
- Retrieve all saved queriesvoidDemonstrates how to create, save, and rename saved query:
- Builds theCockpitSavedQueryModelfor 1 query
- Publish the saved queries
- Retrieve all saved queries
- Take the saved query, rename it, then save the changesMethods inherited from class de.hybris.platform.cockpit.jalo.CockpitTest
destroyApplicationContext, getSpringConfigurationLocations, initApplicationContextMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
SavedQueryServiceTest
public SavedQueryServiceTest()
-
-
Method Details
-
setUp
prepares some test data, before execution of every test- Throws:
Exception
-
testManageSavedQueries
public void testManageSavedQueries()Demonstrates how to create, save, and rename saved queries:
- Builds theCockpitSavedQueryModelfor 2 queries
- Publish the saved queries
- Retrieve all saved queries -
testRenameSavedQuery
public void testRenameSavedQuery()Demonstrates how to create, save, and rename saved query:
- Builds theCockpitSavedQueryModelfor 1 query
- Publish the saved queries
- Retrieve all saved queries
- Take the saved query, rename it, then save the changes
-