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 org.nuiton.topia.replication.model.ReplicationModel |
model |
protected org.nuiton.topia.replication.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 org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
Object... parameters) |
protected void |
createSupportedBeforeOperation(TopiaEntityEnum contract,
TopiaEntity entity,
Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
Object... parameters) |
protected void |
createUnsupportedAfterOperation(TopiaEntityEnum contract,
TopiaEntity entity,
Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
Object... parameters)
Deprecated.
|
protected void |
createUnsupportedBeforeOperation(TopiaEntityEnum contract,
TopiaEntity entity,
Class<? extends org.nuiton.topia.replication.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 org.nuiton.topia.replication.TopiaReplicationModelBuilder |
getModelBuilder() |
protected void |
getOperation(Class<? extends org.nuiton.topia.replication.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, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, failprotected static TopiaContext context
protected static TopiaContext ctxt
protected TopiaContextImplementor dstCtxt
protected org.nuiton.topia.replication.TopiaReplicationService service
protected org.nuiton.topia.replication.model.ReplicationModel model
protected static boolean init
protected org.nuiton.topia.replication.TopiaReplicationModelBuilder getModelBuilder()
protected abstract TopiaContext createDb2(String name) throws Exception
Exceptionprotected abstract TopiaContext createDb(String name) throws Exception
Exceptionprotected TopiaContext createReplicateDb(Object contract) throws Exception
Exceptionprotected abstract TopiaEntityEnum[] getContracts()
protected abstract org.apache.commons.logging.Log getLog()
protected <E extends TopiaEntity> E update(E e) throws TopiaException
TopiaExceptionpublic 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
TopiaExceptionprotected void getOperation(Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass, boolean shouldExist) throws TopiaException
TopiaExceptionprotected void detectAssociations(TopiaEntity entity, Object... expectedCouple) throws TopiaException
TopiaExceptionprotected void detectDirectDependencies(TopiaEntity entity, Object... expectedCouple) throws TopiaException
TopiaExceptionprotected void detectShell(TopiaEntity entity, TopiaEntityEnum... expected) throws TopiaException
TopiaExceptionprotected void detectDependencies(TopiaEntity entity, TopiaEntityEnum[]... expected) throws TopiaException
TopiaExceptionprotected void detectObjectsToDettach(TopiaEntity entity, Object... expected) throws TopiaException
TopiaExceptionprotected void detectOperations(TopiaEntity entity, Object... expected) throws TopiaException
TopiaExceptionprotected void doReplicate(TopiaEntityEnum contract, TopiaEntity... entity) throws Exception
Exceptionprotected void doReplicateWithComputedOrder(TopiaEntity... entity) throws Exception
Exceptionprotected void assertDbEquals(TopiaEntityEnum[] contracts, TopiaContextImplementor ctxt, TopiaContextImplementor ctxt2) throws TopiaException
TopiaExceptionprotected void assertEntityEquals(TopiaEntity expected, TopiaEntity actual, Set<String> treated)
@Deprecated protected void createUnsupportedBeforeOperation(TopiaEntityEnum contract, TopiaEntity entity, Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass, Object... parameters) throws Exception
Exception@Deprecated protected void createUnsupportedAfterOperation(TopiaEntityEnum contract, TopiaEntity entity, Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass, Object... parameters) throws Exception
Exceptionprotected void createSupportedBeforeOperation(TopiaEntityEnum contract, TopiaEntity entity, Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass, Object... parameters) throws Exception
Exceptionprotected void createSupportedAfterOperation(TopiaEntityEnum contract, TopiaEntity entity, Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass, Object... parameters) throws Exception
Exceptionprotected Long getTestsTimeStamp()
protected void createModel(TopiaEntity entity) throws TopiaException
TopiaExceptionprotected void prepareModel(String... ids) throws TopiaException
TopiaExceptionprotected void prepareModelAll()
throws TopiaException
TopiaExceptionprotected void prepareModelWithComputedOrder(String... ids) throws TopiaException
TopiaExceptionCopyright © 2004–2015 CodeLutin. All rights reserved.