org.nuiton.topia.replication
Class ReplicationEngineAllTest

java.lang.Object
  extended by org.junit.Assert
      extended by org.nuiton.topia.replication.AbstractReplicationEngineTest
          extended by org.nuiton.topia.replication.ReplicationEngineAllTest

public class ReplicationEngineAllTest
extends AbstractReplicationEngineTest

ReplicationEngineTest on model TopiaTest Created: 07 jun. 09 17:14:22

Version:
$Revision: 1459 $ Last update: $Date: 2009-05-16 09:56:47 +0200 (Sat, 16 May 2009) $ by : $Author: tchemit $
Author:
tchemit

Field Summary
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
           
 
Fields inherited from class org.nuiton.topia.replication.AbstractReplicationEngineTest
context, ctxt, dstCtxt, init, model, service
 
Constructor Summary
ReplicationEngineAllTest()
           
 
Method Summary
static void after()
           
protected  TopiaContext createDb(String name)
           
protected  TopiaContext createDb2(String name)
           
protected  void createModel(TopiaEntity entity)
           
protected  TopiaEntityEnum[] getContracts()
           
protected  Properties getH2Properties(File f)
           
protected  org.apache.commons.logging.Log getLog()
           
protected  void prepareModel(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.
 
Methods inherited from class org.nuiton.topia.replication.AbstractReplicationEngineTest
assertDbEquals, assertEntityEquals, createReplicateDb, createUnsupportedAfterOperation, createUnsupportedBeforeOperation, detectAssociations, detectDependencies, detectDirectDependencies, detectObjectsToDettach, detectOperations, detectShell, detectTypes, doReplicate, doReplicateAll, doReplicateWithComputedOrder, getOperation, getTestDir, getTestsTimeStamp, prepareModelAll, prepareModelWithComputedOrder, update
 
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

contracts

protected static final TopiaEntityEnum[] contracts

entitiesList

protected static final String entitiesList

person

protected static Person person

person2

protected static Person person2

pet

protected static Pet pet

pet2

protected static Pet pet2

pet3

protected static Pet pet3

race

protected static Race race

race2

protected static Race race2

race3

protected static Race race3
Constructor Detail

ReplicationEngineAllTest

public ReplicationEngineAllTest()
Method Detail

after

public static void after()
                  throws Exception
Throws:
Exception

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractReplicationEngineTest
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Overrides:
tearDown in class AbstractReplicationEngineTest
Throws:
Exception

testDetectTypes

public void testDetectTypes()
                     throws Exception
Description copied from class: AbstractReplicationEngineTest
Test of detectTypes method, of class ReplicationServiceImplementor.

Overrides:
testDetectTypes in class AbstractReplicationEngineTest
Throws:
Exception

testGetOperation

public void testGetOperation()
                      throws Exception
Description copied from class: AbstractReplicationEngineTest
Test of getOperation method, of class ReplicationServiceImplementor.

Overrides:
testGetOperation in class AbstractReplicationEngineTest
Throws:
Exception

testDetectAssociations

public void testDetectAssociations()
                            throws Exception
Description copied from class: AbstractReplicationEngineTest
Test of detectAssociations method, of class ReplicationModel.

Overrides:
testDetectAssociations in class AbstractReplicationEngineTest
Throws:
Exception

testDetectDirectDependencies

public void testDetectDirectDependencies()
                                  throws Exception
Description copied from class: AbstractReplicationEngineTest
Test of detectDirectDependencies method, of class ReplicationModel.

Overrides:
testDetectDirectDependencies in class AbstractReplicationEngineTest
Throws:
Exception

testDetectShell

public void testDetectShell()
                     throws Exception
Description copied from class: AbstractReplicationEngineTest
Test of detectShell method, of class ReplicationModel.

Overrides:
testDetectShell in class AbstractReplicationEngineTest
Throws:
Exception

testDetectDependencies

public void testDetectDependencies()
                            throws Exception
Description copied from class: AbstractReplicationEngineTest
Test of detectDependencies method, of class ReplicationModel.

Overrides:
testDetectDependencies in class AbstractReplicationEngineTest
Throws:
Exception

testDetectObjectsToDettach

public void testDetectObjectsToDettach()
                                throws Exception
Description copied from class: AbstractReplicationEngineTest
Test of detectObjectsToDettach method, of class ReplicationModel.

Overrides:
testDetectObjectsToDettach in class AbstractReplicationEngineTest
Throws:
Exception

testDetectOperations

public void testDetectOperations()
                          throws Exception
Description copied from class: AbstractReplicationEngineTest
Test of detectOperations method, of class ReplicationModel.

Overrides:
testDetectOperations in class AbstractReplicationEngineTest
Throws:
Exception

testDoReplicate

public void testDoReplicate()
                     throws Exception
Description copied from class: AbstractReplicationEngineTest
Test of doReplicate method, of class ReplicationService.

Overrides:
testDoReplicate in class AbstractReplicationEngineTest
Throws:
Exception

createDb

protected TopiaContext createDb(String name)
                         throws Exception
Specified by:
createDb in class AbstractReplicationEngineTest
Throws:
Exception

createDb2

protected TopiaContext createDb2(String name)
                          throws Exception
Specified by:
createDb2 in class AbstractReplicationEngineTest
Throws:
Exception

getContracts

protected TopiaEntityEnum[] getContracts()
Specified by:
getContracts in class AbstractReplicationEngineTest

getLog

protected org.apache.commons.logging.Log getLog()
Specified by:
getLog in class AbstractReplicationEngineTest

getH2Properties

protected Properties getH2Properties(File f)

createModel

protected void createModel(TopiaEntity entity)
                    throws TopiaException
Overrides:
createModel in class AbstractReplicationEngineTest
Throws:
TopiaException

prepareModel

protected void prepareModel(String... ids)
                     throws TopiaException
Overrides:
prepareModel in class AbstractReplicationEngineTest
Throws:
TopiaException


Copyright © 2004-2010 CodeLutin. All Rights Reserved.