Class DefaultYFormServiceTest
java.lang.Object
de.hybris.platform.testframework.HybrisJUnit4Test
de.hybris.platform.servicelayer.ServicelayerBaseTest
de.hybris.platform.servicelayer.ServicelayerTest
de.hybris.platform.xyformsservices.form.impl.DefaultYFormServiceTest
- All Implemented Interfaces:
JaloSessionHolder
Test class for DefaultYFormService
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
DefaultYFormServiceTest
public DefaultYFormServiceTest()
-
-
Method Details
-
getYFormDefinitionFromTemplate
-
prepare
public void prepare() -
tearDown
public void tearDown() -
shouldThrowIllegalArgumentExceptionWhenApplicationIdNull
- Throws:
YFormServiceException
-
shouldThrowIllegalArgumentExceptionWhenFormIdNull
- Throws:
YFormServiceException
-
shouldThrowYFormServiceExceptionWhenGotModelNotFoundException
public void shouldThrowYFormServiceExceptionWhenGotModelNotFoundException() throws YFormServiceException- Throws:
YFormServiceException
-
shouldThrowYFormServiceExceptionWhenGotAmbiguousIdentifierException_YFormDefinitionModel
public void shouldThrowYFormServiceExceptionWhenGotAmbiguousIdentifierException_YFormDefinitionModel() throws YFormServiceException- Throws:
YFormServiceException
-
shouldReturnAYFormDefinitionModelWithModelExistsInDatabase_YFormDefinitionModel
public void shouldReturnAYFormDefinitionModelWithModelExistsInDatabase_YFormDefinitionModel() throws YFormServiceException- Throws:
YFormServiceException
-
shouldThrowIllegalArgumentExceptionWhenApplicationIdNull_YFormDefinition
public void shouldThrowIllegalArgumentExceptionWhenApplicationIdNull_YFormDefinition() throws YFormServiceException- Throws:
YFormServiceException
-
shouldThrowIllegalArgumentExceptionWhenFormIdNull_YFormDefinition
public void shouldThrowIllegalArgumentExceptionWhenFormIdNull_YFormDefinition() throws YFormServiceException- Throws:
YFormServiceException
-
shouldUpdateYFormDefinitionContentIfExisted
- Throws:
YFormServiceException
-
shouldCreateYFormDefinitionWithDefinedApplicationIdIfNotExisted
public void shouldCreateYFormDefinitionWithDefinedApplicationIdIfNotExisted() throws YFormServiceException- Throws:
YFormServiceException
-
shouldThrowModelNotFoundExceptionIfYFormDefinitionNotExisted
public void shouldThrowModelNotFoundExceptionIfYFormDefinitionNotExisted() throws YFormServiceException- Throws:
YFormServiceException
-
shouldUpdateYFormDefinitionIfExisted
- Throws:
YFormServiceException
-
shouldThrowExceptionOnEmptyYFormDataId
- Throws:
YFormServiceException
-
shouldThrowExceptionOnNullYFormDataId
- Throws:
YFormServiceException
-
shouldReturnOnExistYFormDataId
- Throws:
YFormServiceException
-
shouldUpdateYFormDataById
- Throws:
YFormServiceException
-
shouldCreateYFormData
- Throws:
YFormServiceException
-