Class AbstractRelationModifictionContextIntegrationTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.persistence.links.jdbc.dml.context.AbstractRelationModifictionContextIntegrationTest
-
- All Implemented Interfaces:
JaloSessionHolder
- Direct Known Subclasses:
NewTransactionContextIntegrationTest
,RunningTransactionContextIntegrationTest
public abstract class AbstractRelationModifictionContextIntegrationTest extends ServicelayerBaseTest
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
RELATION_CODE
protected WritePersistenceGateway
writePersistenceGateway
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description AbstractRelationModifictionContextIntegrationTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract RelationModifictionContext
instantiateContext(java.util.Date now)
protected boolean
isFlushSupposedToHappenInCurrentTx(long pkValue)
void
setUp()
void
shouldCreateNewLinkWhenOptimisticLockingIsDisabled()
void
shouldFailOnRemovingExistingLinkWhenOptimisticLockingIsDisabledAndVersionDoesntMatch()
void
shouldFailOnRemovingExistingLinkWhenOptimisticLockingIsEnabledAndVersionDoesntMatch()
void
shouldFailOnShiftingExistingLinkWhenOptimisticLockingIsEnabledAndVersionDoesntMatch()
void
shouldNotFailOnShiftingExistingLinkWhenOptimisticLockingIsDisabledAndVersionDoesntMatch()
void
shouldRemoveExistingLinkWhenOptimisticLockingIsDisabled()
void
shouldShiftExistingLinkWhenOptimisticLockingIsDisabled()
void
shouldTouchItemWhenOptimisticLockingIsDisabled()
-
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
-
-
-
-
Field Detail
-
RELATION_CODE
protected static final java.lang.String RELATION_CODE
- See Also:
- Constant Field Values
-
writePersistenceGateway
protected WritePersistenceGateway writePersistenceGateway
-
-
Method Detail
-
setUp
public void setUp() throws ConsistencyCheckException
- Throws:
ConsistencyCheckException
-
instantiateContext
protected abstract RelationModifictionContext instantiateContext(java.util.Date now)
-
shouldTouchItemWhenOptimisticLockingIsDisabled
public void shouldTouchItemWhenOptimisticLockingIsDisabled() throws java.lang.Exception
- Throws:
java.lang.Exception
-
isFlushSupposedToHappenInCurrentTx
protected boolean isFlushSupposedToHappenInCurrentTx(long pkValue)
-
shouldCreateNewLinkWhenOptimisticLockingIsDisabled
public void shouldCreateNewLinkWhenOptimisticLockingIsDisabled() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldShiftExistingLinkWhenOptimisticLockingIsDisabled
public void shouldShiftExistingLinkWhenOptimisticLockingIsDisabled() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldRemoveExistingLinkWhenOptimisticLockingIsDisabled
public void shouldRemoveExistingLinkWhenOptimisticLockingIsDisabled() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldFailOnShiftingExistingLinkWhenOptimisticLockingIsEnabledAndVersionDoesntMatch
public void shouldFailOnShiftingExistingLinkWhenOptimisticLockingIsEnabledAndVersionDoesntMatch() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldFailOnRemovingExistingLinkWhenOptimisticLockingIsEnabledAndVersionDoesntMatch
public void shouldFailOnRemovingExistingLinkWhenOptimisticLockingIsEnabledAndVersionDoesntMatch() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldNotFailOnShiftingExistingLinkWhenOptimisticLockingIsDisabledAndVersionDoesntMatch
public void shouldNotFailOnShiftingExistingLinkWhenOptimisticLockingIsDisabledAndVersionDoesntMatch() throws java.lang.Exception
- Throws:
java.lang.Exception
-
shouldFailOnRemovingExistingLinkWhenOptimisticLockingIsDisabledAndVersionDoesntMatch
public void shouldFailOnRemovingExistingLinkWhenOptimisticLockingIsDisabledAndVersionDoesntMatch() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-