Class MandatoryAttributeValidatorTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTransactionalBaseTest
-
- de.hybris.platform.servicelayer.interceptor.MandatoryAttributeValidatorTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class MandatoryAttributeValidatorTest extends ServicelayerTransactionalBaseTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description MandatoryAttributeValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
prepare()
void
shouldProperlySaveModelWhenMandatoryReferenceIsAlive()
void
shouldThrowExceptionWhenMandatoryModelAsPartOfReferencedCollectionIsAlreadyRemoved()
void
shouldThrowExceptionWhenMandatoryReferencedModelIsAlreadyRemoved()
void
testCreate1()
void
testCreate2()
void
testCreate3()
void
testMissingMandatoryAttributeEnglishMessage()
void
testMissingMandatoryAttributeGermanMessage()
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
prepare
public void prepare()
-
testCreate1
public void testCreate1()
-
testCreate2
public void testCreate2()
-
testCreate3
public void testCreate3()
-
testMissingMandatoryAttributeGermanMessage
public void testMissingMandatoryAttributeGermanMessage()
-
testMissingMandatoryAttributeEnglishMessage
public void testMissingMandatoryAttributeEnglishMessage()
-
shouldProperlySaveModelWhenMandatoryReferenceIsAlive
public void shouldProperlySaveModelWhenMandatoryReferenceIsAlive() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldThrowExceptionWhenMandatoryReferencedModelIsAlreadyRemoved
public void shouldThrowExceptionWhenMandatoryReferencedModelIsAlreadyRemoved() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldThrowExceptionWhenMandatoryModelAsPartOfReferencedCollectionIsAlreadyRemoved
public void shouldThrowExceptionWhenMandatoryModelAsPartOfReferencedCollectionIsAlreadyRemoved() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-