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
@IntegrationTest public class DefaultYFormServiceTest extends ServicelayerTest
Test class for DefaultYFormService
-
-
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 DefaultYFormServiceTest()
-
Method Summary
-
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
-
getYFormDefinitionFromTemplate
public java.lang.String getYFormDefinitionFromTemplate(java.lang.String applicationId, java.lang.String formId, java.lang.String content)
-
prepare
public void prepare()
-
tearDown
public void tearDown()
-
shouldThrowIllegalArgumentExceptionWhenApplicationIdNull
public void shouldThrowIllegalArgumentExceptionWhenApplicationIdNull() throws YFormServiceException
- Throws:
YFormServiceException
-
shouldThrowIllegalArgumentExceptionWhenFormIdNull
public void shouldThrowIllegalArgumentExceptionWhenFormIdNull() throws YFormServiceException
- 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
public void shouldUpdateYFormDefinitionContentIfExisted() throws YFormServiceException
- Throws:
YFormServiceException
-
shouldCreateYFormDefinitionWithDefinedApplicationIdIfNotExisted
public void shouldCreateYFormDefinitionWithDefinedApplicationIdIfNotExisted() throws YFormServiceException
- Throws:
YFormServiceException
-
shouldThrowModelNotFoundExceptionIfYFormDefinitionNotExisted
public void shouldThrowModelNotFoundExceptionIfYFormDefinitionNotExisted() throws YFormServiceException
- Throws:
YFormServiceException
-
shouldUpdateYFormDefinitionIfExisted
public void shouldUpdateYFormDefinitionIfExisted() throws YFormServiceException
- Throws:
YFormServiceException
-
shouldThrowExceptionOnEmptyYFormDataId
public void shouldThrowExceptionOnEmptyYFormDataId() throws YFormServiceException
- Throws:
YFormServiceException
-
shouldThrowExceptionOnNullYFormDataId
public void shouldThrowExceptionOnNullYFormDataId() throws YFormServiceException
- Throws:
YFormServiceException
-
shouldReturnOnExistYFormDataId
public void shouldReturnOnExistYFormDataId() throws YFormServiceException
- Throws:
YFormServiceException
-
shouldUpdateYFormDataById
public void shouldUpdateYFormDataById() throws YFormServiceException
- Throws:
YFormServiceException
-
shouldCreateYFormData
public void shouldCreateYFormData() throws YFormServiceException
- Throws:
YFormServiceException
-
-