public class TopiaReplicationServiceImplTest extends AbstractTopiaReplicationServiceTest
| Modifier and Type | Field and Description |
|---|---|
protected static TopiaEntityEnum[] |
contracts |
protected static 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 |
protected static File |
tesDir |
| Constructor and Description |
|---|
TopiaReplicationServiceImplTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
after() |
static void |
beforeClass() |
protected TopiaContext |
createDb(String name) |
protected TopiaContext |
createDb2(String name) |
protected TopiaEntityEnum[] |
getContracts() |
protected Properties |
getH2Properties(String dbName) |
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 cycles)
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 cycles)
La methode utilisee ici fonctionne mieux que la precedante : il parrait
dificille de pose une une clef metier sur une association :).
|
assertDbEquals, assertEntityEquals, createModel, createReplicateDb, createSupportedAfterOperation, createSupportedBeforeOperation, createUnsupportedAfterOperation, createUnsupportedBeforeOperation, detectAssociations, detectDependencies, detectDirectDependencies, detectObjectsToDettach, detectOperations, detectShell, detectTypes, doReplicate, doReplicateAll, doReplicateWithComputedOrder, getModelBuilder, getOperation, getTestDir, getTestsTimeStamp, prepareModel, prepareModelAll, prepareModelWithComputedOrder, updateassertArrayEquals, 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 final TopiaEntityEnum[] contracts
protected static final 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
protected static File tesDir
public static void beforeClass()
throws IOException
IOExceptionpublic void setUp()
throws Exception
setUp in class AbstractTopiaReplicationServiceTestExceptionpublic void tearDown()
throws Exception
tearDown in class AbstractTopiaReplicationServiceTestExceptionpublic void testDetectTypes()
throws Exception
AbstractTopiaReplicationServiceTesttestDetectTypes in class AbstractTopiaReplicationServiceTestException - if any errorpublic void testGetOperation()
throws Exception
AbstractTopiaReplicationServiceTesttestGetOperation in class AbstractTopiaReplicationServiceTestException - if any errorpublic void testDetectAssociations()
throws Exception
AbstractTopiaReplicationServiceTesttestDetectAssociations in class AbstractTopiaReplicationServiceTestException - if any errorpublic void testDetectDirectDependencies()
throws Exception
AbstractTopiaReplicationServiceTesttestDetectDirectDependencies in class AbstractTopiaReplicationServiceTestException - if any errorpublic void testDetectShell()
throws Exception
AbstractTopiaReplicationServiceTesttestDetectShell in class AbstractTopiaReplicationServiceTestException - if any errorpublic void testDetectDependencies()
throws Exception
AbstractTopiaReplicationServiceTesttestDetectDependencies in class AbstractTopiaReplicationServiceTestException - if any errorpublic void testDetectObjectsToDettach()
throws Exception
AbstractTopiaReplicationServiceTesttestDetectObjectsToDettach in class AbstractTopiaReplicationServiceTestException - if any errorpublic void testDetectOperations()
throws Exception
AbstractTopiaReplicationServiceTesttestDetectOperations in class AbstractTopiaReplicationServiceTestException - if any errorpublic void testDoReplicate()
throws Exception
AbstractTopiaReplicationServiceTesttestDoReplicate in class AbstractTopiaReplicationServiceTestException - if any errorpublic void testSimpleReplicateFailed()
throws Exception
Exception - pour toute erreurpublic void testSimpleReplicateNotSure()
throws Exception
Exception - pour toute erreurpublic void testSimpleReplicateSure()
throws Exception
ReplicationModel#adjustOperations(TopiaEntityIdsMap).Exception - pour toute erreurprotected TopiaContext createDb(String name) throws Exception
createDb in class AbstractTopiaReplicationServiceTestExceptionprotected TopiaContext createDb2(String name) throws Exception
createDb2 in class AbstractTopiaReplicationServiceTestExceptionprotected TopiaEntityEnum[] getContracts()
getContracts in class AbstractTopiaReplicationServiceTestprotected org.apache.commons.logging.Log getLog()
getLog in class AbstractTopiaReplicationServiceTestprotected Properties getH2Properties(String dbName) throws IOException
IOExceptionCopyright © 2004–2015 CodeLutin. All rights reserved.