|
||||||||||
| 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.AbstractTopiaReplicationServiceTest
public abstract class AbstractTopiaReplicationServiceTest
TopiaReplicationServiceImplTest.
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.TopiaReplicationService |
service
|
| Constructor Summary | |
|---|---|
AbstractTopiaReplicationServiceTest()
|
|
| Method Summary | ||
|---|---|---|
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
|
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.TopiaReplicationService service
protected org.nuiton.topia.replication.model.ReplicationModel model
protected static boolean init
| Constructor Detail |
|---|
public AbstractTopiaReplicationServiceTest()
| Method Detail |
|---|
public static void after()
throws Exception
Exception
public void setUp()
throws Exception
Exception
public void tearDown()
throws Exception
Exceptionprotected org.nuiton.topia.replication.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
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 Exception
Exception - if any error
public void testGetOperation()
throws Exception
Exception - if any error
public void testDetectAssociations()
throws Exception
Exception - if any error
public void testDetectDirectDependencies()
throws Exception
Exception - if any error
public void testDetectShell()
throws Exception
Exception - if any error
public void testDetectDependencies()
throws Exception
Exception - if any error
public void testDetectObjectsToDettach()
throws Exception
Exception - if any error
public void testDetectOperations()
throws Exception
Exception - if any error
public void testDoReplicate()
throws Exception
Exception - if any error
protected void detectTypes(TopiaEntity entity,
Object... expectedCouple)
throws TopiaException
TopiaException
protected void getOperation(Class<? extends org.nuiton.topia.replication.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 doReplicateAll()
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 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
Exception
protected void createSupportedBeforeOperation(TopiaEntityEnum contract,
TopiaEntity entity,
Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
Object... parameters)
throws Exception
Exception
protected void createSupportedAfterOperation(TopiaEntityEnum contract,
TopiaEntity entity,
Class<? extends org.nuiton.topia.replication.TopiaReplicationOperation> operationClass,
Object... parameters)
throws Exception
Exceptionprotected Long getTestsTimeStamp()
protected File getTestDir(Class<?> testClass)
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||