|
||||||||||
| 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
org.nuiton.topia.replication.ReplicationEngineTest
public class ReplicationEngineTest
ReplicationEngineTest on model TopiaTest
Created: 07 jun. 09 17:14:22
| Field Summary | |
|---|---|
protected static TopiaEntityEnum[] |
contracts
|
protected static java.lang.String |
entitiesList
|
protected static Person |
person
|
protected static Person |
person2
|
protected static Pet |
pet
|
protected static Pet |
pet2
|
protected static Pet |
pet3
|
protected static Race |
race
|
protected static Race |
race2
|
protected static Race |
race3
|
| Fields inherited from class org.nuiton.topia.replication.AbstractReplicationEngineTest |
|---|
context, ctxt, dstCtxt, init, model, service |
| Constructor Summary | |
|---|---|
ReplicationEngineTest()
|
|
| Method Summary | |
|---|---|
static void |
after()
|
protected TopiaContext |
createDb(java.lang.String name)
|
protected TopiaContext |
createDb2(java.lang.String name)
|
protected TopiaEntityEnum[] |
getContracts()
|
protected java.util.Properties |
getH2Properties(java.io.File f)
|
protected org.apache.commons.logging.Log |
getLog()
|
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. |
void |
testSimpleReplicateFailed()
Cette methode montre pourquoi la simple replication ne peut pas fonctionne :) Le replicateur ne deplique pas dans le bon ordre et on a donc des violations de clef etrangeres... |
void |
testSimpleReplicateNotSure()
Cette methode montre comment manuellement on peut effectuer la replication (en dettachant les dependances qui forment des cyles) La methode utilisee ici peut ne pas fonctionner : si une clef metier est posee sur une dependance alors cela ne fonctionne pas. |
void |
testSimpleReplicateSure()
Cette methode montre comment manuellement on peut effectuer la replication (en dettachant les associations qui forment des cyles) La methode utilisee ici fonctionne mieux que la precedante : il parrait dificille de pose une une clef metier sur une association :). |
| 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 final TopiaEntityEnum[] contracts
protected static final java.lang.String entitiesList
protected static Person person
protected static Person person2
protected static Pet pet
protected static Pet pet2
protected static Pet pet3
protected static Race race
protected static Race race2
protected static Race race3
| Constructor Detail |
|---|
public ReplicationEngineTest()
| Method Detail |
|---|
public static void after()
throws java.lang.Exception
java.lang.Exception
public void setUp()
throws java.lang.Exception
setUp in class AbstractReplicationEngineTestjava.lang.Exception
public void tearDown()
throws java.lang.Exception
tearDown in class AbstractReplicationEngineTestjava.lang.Exception
public void testDetectTypes()
throws java.lang.Exception
AbstractReplicationEngineTest
testDetectTypes in class AbstractReplicationEngineTestjava.lang.Exception - if any error
public void testGetOperation()
throws java.lang.Exception
AbstractReplicationEngineTest
testGetOperation in class AbstractReplicationEngineTestjava.lang.Exception - if any error
public void testDetectAssociations()
throws java.lang.Exception
AbstractReplicationEngineTest
testDetectAssociations in class AbstractReplicationEngineTestjava.lang.Exception - if any error
public void testDetectDirectDependencies()
throws java.lang.Exception
AbstractReplicationEngineTest
testDetectDirectDependencies in class AbstractReplicationEngineTestjava.lang.Exception - if any error
public void testDetectShell()
throws java.lang.Exception
AbstractReplicationEngineTest
testDetectShell in class AbstractReplicationEngineTestjava.lang.Exception - if any error
public void testDetectDependencies()
throws java.lang.Exception
AbstractReplicationEngineTest
testDetectDependencies in class AbstractReplicationEngineTestjava.lang.Exception - if any error
public void testDetectObjectsToDettach()
throws java.lang.Exception
AbstractReplicationEngineTest
testDetectObjectsToDettach in class AbstractReplicationEngineTestjava.lang.Exception - if any error
public void testDetectOperations()
throws java.lang.Exception
AbstractReplicationEngineTest
testDetectOperations in class AbstractReplicationEngineTestjava.lang.Exception - if any error
public void testDoReplicate()
throws java.lang.Exception
AbstractReplicationEngineTest
testDoReplicate in class AbstractReplicationEngineTestjava.lang.Exception - if any error
public void testSimpleReplicateFailed()
throws java.lang.Exception
java.lang.Exception - pour toute erreur
public void testSimpleReplicateNotSure()
throws java.lang.Exception
java.lang.Exception - pour toute erreur
public void testSimpleReplicateSure()
throws java.lang.Exception
ReplicationModel.adjustOperations(Map).
java.lang.Exception - pour toute erreur
protected TopiaContext createDb(java.lang.String name)
throws java.lang.Exception
createDb in class AbstractReplicationEngineTestjava.lang.Exception
protected TopiaContext createDb2(java.lang.String name)
throws java.lang.Exception
createDb2 in class AbstractReplicationEngineTestjava.lang.Exceptionprotected TopiaEntityEnum[] getContracts()
getContracts in class AbstractReplicationEngineTestprotected org.apache.commons.logging.Log getLog()
getLog in class AbstractReplicationEngineTestprotected java.util.Properties getH2Properties(java.io.File f)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||