public abstract class AbstractRelationModifictionContextIntegrationTest extends ServicelayerBaseTest
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
RELATION_CODE |
protected WritePersistenceGateway |
writePersistenceGateway |
jaloSession| Constructor and Description |
|---|
AbstractRelationModifictionContextIntegrationTest() |
| Modifier and Type | Method and 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() |
autowireProperties, getApplicationContext, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionprotected static final java.lang.String RELATION_CODE
protected WritePersistenceGateway writePersistenceGateway
public AbstractRelationModifictionContextIntegrationTest()
public void setUp()
throws ConsistencyCheckException
ConsistencyCheckExceptionprotected abstract RelationModifictionContext instantiateContext(java.util.Date now)
public void shouldTouchItemWhenOptimisticLockingIsDisabled()
throws java.lang.Exception
java.lang.Exceptionprotected boolean isFlushSupposedToHappenInCurrentTx(long pkValue)
public void shouldCreateNewLinkWhenOptimisticLockingIsDisabled()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldShiftExistingLinkWhenOptimisticLockingIsDisabled()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldRemoveExistingLinkWhenOptimisticLockingIsDisabled()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldFailOnShiftingExistingLinkWhenOptimisticLockingIsEnabledAndVersionDoesntMatch()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldFailOnRemovingExistingLinkWhenOptimisticLockingIsEnabledAndVersionDoesntMatch()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldNotFailOnShiftingExistingLinkWhenOptimisticLockingIsDisabledAndVersionDoesntMatch()
throws java.lang.Exception
java.lang.Exceptionpublic void shouldFailOnRemovingExistingLinkWhenOptimisticLockingIsDisabledAndVersionDoesntMatch()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2018 SAP SE. All Rights Reserved.