|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.junit.Assert
org.nuiton.topia.replication.AbstractReplicationEngineTest
public abstract class AbstractReplicationEngineTest
ReplicationEngineTest.
Created: 07 jun. 09 17:14:22
| Field Summary | |
|---|---|
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.TopiaReplicationImplementor |
service
|
| Constructor Summary | |
|---|---|
AbstractReplicationEngineTest()
|
|
| Method Summary | ||
|---|---|---|
static void |
after()
|
|
protected void |
assertDbEquals(TopiaEntityEnum[] contracts,
TopiaContextImplementor ctxt,
TopiaContextImplementor ctxt2)
|
|
protected void |
assertEntityEquals(TopiaEntity expected,
TopiaEntity actual,
java.util.Set<java.lang.String> treated)
|
|
protected abstract TopiaContext |
createDb(java.lang.String name)
|
|
protected abstract TopiaContext |
createDb2(java.lang.String name)
|
|
protected void |
createModel(TopiaEntity entity)
|
|
protected TopiaContext |
createReplicateDb(java.lang.Object contract)
|
|
protected void |
createUnsupportedAfterOperation(TopiaEntityEnum contract,
TopiaEntity entity,
java.lang.Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
java.lang.Object... parameters)
|
|
protected void |
createUnsupportedBeforeOperation(TopiaEntityEnum contract,
TopiaEntity entity,
java.lang.Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
java.lang.Object... parameters)
|
|
protected void |
detectAssociations(TopiaEntity entity,
java.lang.Object... expectedCouple)
|
|
protected void |
detectDependencies(TopiaEntity entity,
TopiaEntityEnum[]... expected)
|
|
protected void |
detectDirectDependencies(TopiaEntity entity,
java.lang.Object... expectedCouple)
|
|
protected void |
detectObjectsToDettach(TopiaEntity entity,
java.lang.Object... expected)
|
|
protected void |
detectOperations(TopiaEntity entity,
java.lang.Object... expected)
|
|
protected void |
detectShell(TopiaEntity entity,
TopiaEntityEnum... expected)
|
|
protected void |
detectTypes(TopiaEntity entity,
java.lang.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 void |
getOperation(java.lang.Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
boolean shouldExist)
|
|
protected java.io.File |
getTestDir(java.lang.Class<?> testClass)
|
|
protected java.lang.Long |
getTestsTimeStamp()
|
|
protected void |
prepareModel(java.lang.String... ids)
|
|
protected void |
prepareModelAll()
|
|
protected void |
prepareModelWithComputedOrder(java.lang.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
|
update(E e)
|
|
| Methods inherited from class org.junit.Assert |
|---|
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, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static TopiaContext context
protected static TopiaContext ctxt
protected TopiaContextImplementor dstCtxt
protected org.nuiton.topia.replication.TopiaReplicationImplementor service
protected org.nuiton.topia.replication.model.ReplicationModel model
protected static boolean init
| Constructor Detail |
|---|
public AbstractReplicationEngineTest()
| Method Detail |
|---|
public static void after()
throws java.lang.Exception
java.lang.Exception
public void setUp()
throws java.lang.Exception
java.lang.Exception
public void tearDown()
throws java.lang.Exception
java.lang.Exception
protected abstract TopiaContext createDb2(java.lang.String name)
throws java.lang.Exception
java.lang.Exception
protected abstract TopiaContext createDb(java.lang.String name)
throws java.lang.Exception
java.lang.Exception
protected TopiaContext createReplicateDb(java.lang.Object contract)
throws java.lang.Exception
java.lang.Exceptionprotected 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 java.lang.Exception
java.lang.Exception - if any error
public void testGetOperation()
throws java.lang.Exception
java.lang.Exception - if any error
public void testDetectAssociations()
throws java.lang.Exception
java.lang.Exception - if any error
public void testDetectDirectDependencies()
throws java.lang.Exception
java.lang.Exception - if any error
public void testDetectShell()
throws java.lang.Exception
java.lang.Exception - if any error
public void testDetectDependencies()
throws java.lang.Exception
java.lang.Exception - if any error
public void testDetectObjectsToDettach()
throws java.lang.Exception
java.lang.Exception - if any error
public void testDetectOperations()
throws java.lang.Exception
java.lang.Exception - if any error
public void testDoReplicate()
throws java.lang.Exception
java.lang.Exception - if any error
protected void detectTypes(TopiaEntity entity,
java.lang.Object... expectedCouple)
throws TopiaException
TopiaException
protected void getOperation(java.lang.Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
boolean shouldExist)
throws TopiaException
TopiaException
protected void detectAssociations(TopiaEntity entity,
java.lang.Object... expectedCouple)
throws TopiaException
TopiaException
protected void detectDirectDependencies(TopiaEntity entity,
java.lang.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,
java.lang.Object... expected)
throws TopiaException
TopiaException
protected void detectOperations(TopiaEntity entity,
java.lang.Object... expected)
throws TopiaException
TopiaException
protected void doReplicate(TopiaEntityEnum contract,
TopiaEntity... entity)
throws java.lang.Exception
java.lang.Exception
protected void doReplicateAll()
throws java.lang.Exception
java.lang.Exception
protected void doReplicateWithComputedOrder(TopiaEntity... entity)
throws java.lang.Exception
java.lang.Exception
protected void assertDbEquals(TopiaEntityEnum[] contracts,
TopiaContextImplementor ctxt,
TopiaContextImplementor ctxt2)
throws TopiaException
TopiaException
protected void assertEntityEquals(TopiaEntity expected,
TopiaEntity actual,
java.util.Set<java.lang.String> treated)
protected void createUnsupportedBeforeOperation(TopiaEntityEnum contract,
TopiaEntity entity,
java.lang.Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
java.lang.Object... parameters)
throws java.lang.Exception
java.lang.Exception
protected void createUnsupportedAfterOperation(TopiaEntityEnum contract,
TopiaEntity entity,
java.lang.Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
java.lang.Object... parameters)
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.Long getTestsTimeStamp()
protected java.io.File getTestDir(java.lang.Class<?> testClass)
protected void createModel(TopiaEntity entity)
throws TopiaException
TopiaException
protected void prepareModel(java.lang.String... ids)
throws TopiaException
TopiaException
protected void prepareModelAll()
throws TopiaException
TopiaException
protected void prepareModelWithComputedOrder(java.lang.String... ids)
throws TopiaException
TopiaException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||