org.nuiton.topia.replication
Class TopiaReplicationOperationTest

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

public class TopiaReplicationOperationTest
extends AbstractReplicationEngineTest

ReplicationEngineTest on model TopiaTest

Created: 07 jun. 09 17:14:22

Version:
$Revision: 2056 $

Last update: $Date: 2010-07-09 16:16:44 +0200 (ven., 09 juil. 2010) $ by : $Author: fdesbois $

Author:
tchemit

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 Race race
           
protected static Race race2
           
 
Fields inherited from class org.nuiton.topia.replication.AbstractReplicationEngineTest
context, ctxt, dstCtxt, init, model, service
 
Constructor Summary
TopiaReplicationOperationTest()
           
 
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 testCreateOperation_noNode()
           
 void testCreateOperation_noOperation()
           
 void testCreateOperation_nullModel()
           
 void testCreateOperation_nullOperationClass()
           
 void testCreateOperation_nullParameter()
           
 void testCreateOperation_nullPhase()
           
 void testCreateOperation_nullType()
           
 void testCreateOperation_wrongParameterNumber()
           
 void testCreateOperation_wrongParameterNumber2()
           
 void testCreateOperation_wrongParameterType()
           
 void testCreateOperation()
           
 void testCreateUnsupportedAfterOperation_AttachAssociation()
           
 void testCreateUnsupportedAfterOperation_AttachDependency()
           
 void testCreateUnsupportedAfterOperation_DetachAssociation()
           
 void testCreateUnsupportedAfterOperation_DetachDependency()
           
 void testCreateUnsupportedAfterOperation_Duplicate()
           
 void testCreateUnsupportedAfterOperation_UncreatableOperation()
           
 void testCreateUnsupportedBeforeOperation_AttachAssociation()
           
 void testCreateUnsupportedBeforeOperation_AttachDependency()
           
 void testCreateUnsupportedBeforeOperation_DetachAssociation()
           
 void testCreateUnsupportedBeforeOperation_DetachDependency()
           
 void testCreateUnsupportedBeforeOperation_Duplicate()
           
 void testCreateUnsupportedBeforeOperation_UncreatableOperation()
           
 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_nullDstCtxt()
           
 void testDoReplicate_nullModel()
           
 void testDoReplicate()
          Test of doReplicate method, of class ReplicationService.
 void testGetOperation_nullOperationClass()
           
 void testGetOperation_serviceNotInit()
           
 void testGetOperation()
          Test of getOperation method, of class ReplicationServiceImplementor.
 
Methods inherited from class org.nuiton.topia.replication.AbstractReplicationEngineTest
assertDbEquals, assertEntityEquals, createModel, createReplicateDb, createUnsupportedAfterOperation, createUnsupportedBeforeOperation, detectAssociations, detectDependencies, detectDirectDependencies, detectObjectsToDettach, detectOperations, detectShell, detectTypes, doReplicate, doReplicateAll, doReplicateWithComputedOrder, getOperation, getTestDir, getTestsTimeStamp, prepareModel, 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 java.lang.String entitiesList

person

protected static Person person

person2

protected static Person person2

pet

protected static Pet pet

pet2

protected static Pet pet2

race

protected static Race race

race2

protected static Race race2
Constructor Detail

TopiaReplicationOperationTest

public TopiaReplicationOperationTest()
Method Detail

after

public static void after()
                  throws java.lang.Exception
Throws:
java.lang.Exception

setUp

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

tearDown

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

testGetOperation_nullOperationClass

public void testGetOperation_nullOperationClass()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testGetOperation_serviceNotInit

public void testGetOperation_serviceNotInit()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testGetOperation

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

Overrides:
testGetOperation in class AbstractReplicationEngineTest
Throws:
java.lang.Exception - if any error

testCreateOperation_nullModel

public void testCreateOperation_nullModel()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation_nullType

public void testCreateOperation_nullType()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation_nullPhase

public void testCreateOperation_nullPhase()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation_nullOperationClass

public void testCreateOperation_nullOperationClass()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation_noNode

public void testCreateOperation_noNode()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation_noOperation

public void testCreateOperation_noOperation()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedBeforeOperation_Duplicate

public void testCreateUnsupportedBeforeOperation_Duplicate()
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedBeforeOperation_AttachAssociation

public void testCreateUnsupportedBeforeOperation_AttachAssociation()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedBeforeOperation_DetachAssociation

public void testCreateUnsupportedBeforeOperation_DetachAssociation()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedBeforeOperation_AttachDependency

public void testCreateUnsupportedBeforeOperation_AttachDependency()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedBeforeOperation_DetachDependency

public void testCreateUnsupportedBeforeOperation_DetachDependency()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedAfterOperation_Duplicate

public void testCreateUnsupportedAfterOperation_Duplicate()
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedAfterOperation_AttachAssociation

public void testCreateUnsupportedAfterOperation_AttachAssociation()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedAfterOperation_DetachAssociation

public void testCreateUnsupportedAfterOperation_DetachAssociation()
                                                           throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedAfterOperation_AttachDependency

public void testCreateUnsupportedAfterOperation_AttachDependency()
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedAfterOperation_DetachDependency

public void testCreateUnsupportedAfterOperation_DetachDependency()
                                                          throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedBeforeOperation_UncreatableOperation

public void testCreateUnsupportedBeforeOperation_UncreatableOperation()
                                                               throws java.lang.Exception
Throws:
java.lang.Exception

testCreateUnsupportedAfterOperation_UncreatableOperation

public void testCreateUnsupportedAfterOperation_UncreatableOperation()
                                                              throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation_wrongParameterNumber

public void testCreateOperation_wrongParameterNumber()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation_wrongParameterNumber2

public void testCreateOperation_wrongParameterNumber2()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation_wrongParameterType

public void testCreateOperation_wrongParameterType()
                                            throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation_nullParameter

public void testCreateOperation_nullParameter()
                                       throws java.lang.Exception
Throws:
java.lang.Exception

testCreateOperation

public void testCreateOperation()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testDoReplicate_nullModel

public void testDoReplicate_nullModel()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testDoReplicate_nullDstCtxt

public void testDoReplicate_nullDstCtxt()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

createDb

protected TopiaContext createDb(java.lang.String name)
                         throws java.lang.Exception
Specified by:
createDb in class AbstractReplicationEngineTest
Throws:
java.lang.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 java.util.Properties getH2Properties(java.io.File f)

createDb2

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

testDetectTypes

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

Overrides:
testDetectTypes in class AbstractReplicationEngineTest
Throws:
java.lang.Exception - if any error

testDetectAssociations

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

Overrides:
testDetectAssociations in class AbstractReplicationEngineTest
Throws:
java.lang.Exception - if any error

testDetectDirectDependencies

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

Overrides:
testDetectDirectDependencies in class AbstractReplicationEngineTest
Throws:
java.lang.Exception - if any error

testDetectShell

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

Overrides:
testDetectShell in class AbstractReplicationEngineTest
Throws:
java.lang.Exception - if any error

testDetectDependencies

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

Overrides:
testDetectDependencies in class AbstractReplicationEngineTest
Throws:
java.lang.Exception - if any error

testDetectObjectsToDettach

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

Overrides:
testDetectObjectsToDettach in class AbstractReplicationEngineTest
Throws:
java.lang.Exception - if any error

testDetectOperations

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

Overrides:
testDetectOperations in class AbstractReplicationEngineTest
Throws:
java.lang.Exception - if any error

testDoReplicate

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

Overrides:
testDoReplicate in class AbstractReplicationEngineTest
Throws:
java.lang.Exception - if any error


Copyright © 2004-2010 CodeLutin. All Rights Reserved.