public abstract class AbstractTopiaReplicationServiceTest
extends org.junit.Assert
Modifier and Type | Field and Description |
---|---|
protected static TopiaContext |
context |
protected static TopiaContext |
ctxt |
protected TopiaContextImplementor |
dstCtxt |
protected static boolean |
init |
protected ReplicationModel |
model |
protected TopiaReplicationService |
service |
Constructor and Description |
---|
AbstractTopiaReplicationServiceTest() |
Modifier and Type | Method and Description |
---|---|
static void |
after() |
protected void |
assertDbEquals(TopiaEntityEnum[] contracts,
TopiaContextImplementor ctxt,
TopiaContextImplementor ctxt2) |
protected void |
assertEntityEquals(TopiaEntity expected,
TopiaEntity actual,
Set<String> treated) |
protected abstract TopiaContext |
createDb(String name) |
protected abstract TopiaContext |
createDb2(String name) |
protected void |
createModel(TopiaEntity entity) |
protected TopiaContext |
createReplicateDb(Object contract) |
protected void |
createSupportedAfterOperation(TopiaEntityEnum contract,
TopiaEntity entity,
Class<? extends TopiaReplicationOperation> operationClass,
Object... parameters) |
protected void |
createSupportedBeforeOperation(TopiaEntityEnum contract,
TopiaEntity entity,
Class<? extends TopiaReplicationOperation> operationClass,
Object... parameters) |
protected void |
createUnsupportedAfterOperation(TopiaEntityEnum contract,
TopiaEntity entity,
Class<? extends TopiaReplicationOperation> operationClass,
Object... parameters)
Deprecated.
|
protected void |
createUnsupportedBeforeOperation(TopiaEntityEnum contract,
TopiaEntity entity,
Class<? extends TopiaReplicationOperation> operationClass,
Object... parameters)
Deprecated.
|
protected void |
detectAssociations(TopiaEntity entity,
Object... expectedCouple) |
protected void |
detectDependencies(TopiaEntity entity,
TopiaEntityEnum[]... expected) |
protected void |
detectDirectDependencies(TopiaEntity entity,
Object... expectedCouple) |
protected void |
detectObjectsToDettach(TopiaEntity entity,
Object... expected) |
protected void |
detectOperations(TopiaEntity entity,
Object... expected) |
protected void |
detectShell(TopiaEntity entity,
TopiaEntityEnum... expected) |
protected void |
detectTypes(TopiaEntity entity,
Object... expectedCouple) |
protected void |
doReplicate(TopiaEntityEnum contract,
TopiaEntity... entity) |
protected void |
doReplicateAll() |
protected void |
doReplicateWithComputedOrder(TopiaEntity... entity) |
protected abstract TopiaEntityEnum[] |
getContracts() |
protected abstract org.apache.commons.logging.Log |
getLog() |
protected TopiaReplicationModelBuilder |
getModelBuilder() |
protected void |
getOperation(Class<? extends TopiaReplicationOperation> operationClass,
boolean shouldExist) |
protected File |
getTestDir(Class<?> testClass) |
protected Long |
getTestsTimeStamp() |
protected void |
prepareModel(String... ids) |
protected void |
prepareModelAll() |
protected void |
prepareModelWithComputedOrder(String... ids) |
void |
setUp() |
void |
tearDown() |
void |
testDetectAssociations()
Test of detectAssociations method, of class ReplicationModel.
|
void |
testDetectDependencies()
Test of detectDependencies method, of class ReplicationModel.
|
void |
testDetectDirectDependencies()
Test of detectDirectDependencies method, of class ReplicationModel.
|
void |
testDetectObjectsToDettach()
Test of detectObjectsToDettach method, of class ReplicationModel.
|
void |
testDetectOperations()
Test of detectOperations method, of class ReplicationModel.
|
void |
testDetectShell()
Test of detectShell method, of class ReplicationModel.
|
void |
testDetectTypes()
Test of detectTypes method, of class ReplicationServiceImplementor.
|
void |
testDoReplicate()
Test of doReplicate method, of class ReplicationService.
|
void |
testGetOperation()
Test of getOperation method, of class ReplicationServiceImplementor.
|
protected <E extends TopiaEntity> |
update(E e) |
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertThrows, assertThrows, assertTrue, assertTrue, fail, fail
protected static TopiaContext context
protected static TopiaContext ctxt
protected TopiaContextImplementor dstCtxt
protected TopiaReplicationService service
protected ReplicationModel model
protected static boolean init
protected TopiaReplicationModelBuilder getModelBuilder()
protected abstract TopiaContext createDb2(String name) throws Exception
Exception
protected abstract TopiaContext createDb(String name) throws Exception
Exception
protected TopiaContext createReplicateDb(Object contract) throws Exception
Exception
protected abstract TopiaEntityEnum[] getContracts()
protected abstract org.apache.commons.logging.Log getLog()
protected <E extends TopiaEntity> E update(E e) throws TopiaException
TopiaException
public void testDetectTypes() throws Exception
Exception
- if any errorpublic void testGetOperation() throws Exception
Exception
- if any errorpublic void testDetectAssociations() throws Exception
Exception
- if any errorpublic void testDetectDirectDependencies() throws Exception
Exception
- if any errorpublic void testDetectShell() throws Exception
Exception
- if any errorpublic void testDetectDependencies() throws Exception
Exception
- if any errorpublic void testDetectObjectsToDettach() throws Exception
Exception
- if any errorpublic void testDetectOperations() throws Exception
Exception
- if any errorpublic void testDoReplicate() throws Exception
Exception
- if any errorprotected void detectTypes(TopiaEntity entity, Object... expectedCouple) throws TopiaException
TopiaException
protected void getOperation(Class<? extends TopiaReplicationOperation> operationClass, boolean shouldExist) throws TopiaException
TopiaException
protected void detectAssociations(TopiaEntity entity, Object... expectedCouple) throws TopiaException
TopiaException
protected void detectDirectDependencies(TopiaEntity entity, Object... expectedCouple) throws TopiaException
TopiaException
protected void detectShell(TopiaEntity entity, TopiaEntityEnum... expected) throws TopiaException
TopiaException
protected void detectDependencies(TopiaEntity entity, TopiaEntityEnum[]... expected) throws TopiaException
TopiaException
protected void detectObjectsToDettach(TopiaEntity entity, Object... expected) throws TopiaException
TopiaException
protected void detectOperations(TopiaEntity entity, Object... expected) throws TopiaException
TopiaException
protected void doReplicate(TopiaEntityEnum contract, TopiaEntity... entity) throws Exception
Exception
protected void doReplicateWithComputedOrder(TopiaEntity... entity) throws Exception
Exception
protected void assertDbEquals(TopiaEntityEnum[] contracts, TopiaContextImplementor ctxt, TopiaContextImplementor ctxt2) throws TopiaException
TopiaException
protected void assertEntityEquals(TopiaEntity expected, TopiaEntity actual, Set<String> treated)
@Deprecated protected void createUnsupportedBeforeOperation(TopiaEntityEnum contract, TopiaEntity entity, Class<? extends TopiaReplicationOperation> operationClass, Object... parameters) throws Exception
Exception
@Deprecated protected void createUnsupportedAfterOperation(TopiaEntityEnum contract, TopiaEntity entity, Class<? extends TopiaReplicationOperation> operationClass, Object... parameters) throws Exception
Exception
protected void createSupportedBeforeOperation(TopiaEntityEnum contract, TopiaEntity entity, Class<? extends TopiaReplicationOperation> operationClass, Object... parameters) throws Exception
Exception
protected void createSupportedAfterOperation(TopiaEntityEnum contract, TopiaEntity entity, Class<? extends TopiaReplicationOperation> operationClass, Object... parameters) throws Exception
Exception
protected Long getTestsTimeStamp()
protected void createModel(TopiaEntity entity) throws TopiaException
TopiaException
protected void prepareModel(String... ids) throws TopiaException
TopiaException
protected void prepareModelAll() throws TopiaException
TopiaException
protected void prepareModelWithComputedOrder(String... ids) throws TopiaException
TopiaException
Copyright © 2004–2022 Code Lutin. All rights reserved.