Package org.nuiton.topia.replication
Class TopiaReplicationOperationTest
java.lang.Object
org.junit.Assert
org.nuiton.topia.replication.AbstractTopiaReplicationServiceTest
org.nuiton.topia.replication.TopiaReplicationOperationTest
public class TopiaReplicationOperationTest extends AbstractTopiaReplicationServiceTest
TopiaReplicationServiceImplTest on model TopiaTest
Created: 07 jun. 09 17:14:22
- Since:
- 2.2.0
- Author:
- tchemit <chemit@codelutin.com>
-
Field Summary
Fields Modifier and Type Field Description protected static TopiaEntityEnum[]contractsprotected static java.lang.StringentitiesListprotected static Personpersonprotected static Personperson2protected static Petpetprotected static Petpet2protected static Raceraceprotected static Racerace2protected static java.io.FiletesDir -
Constructor Summary
Constructors Constructor Description TopiaReplicationOperationTest() -
Method Summary
Modifier and Type Method Description static voidafter()static voidbeforeClass()protected TopiaContextcreateDb(java.lang.String name)protected TopiaContextcreateDb2(java.lang.String name)protected TopiaEntityEnum[]getContracts()protected java.util.PropertiesgetH2Properties(java.lang.String dbName)protected org.apache.commons.logging.LoggetLog()protected org.nuiton.topia.replication.TopiaReplicationModelBuildergetModelBuilder()voidsetUp()voidtearDown()voidtestCreateOperation()voidtestCreateOperation_noNode()voidtestCreateOperation_noOperation()voidtestCreateOperation_nullModel()voidtestCreateOperation_nullOperationClass()voidtestCreateOperation_nullParameter()voidtestCreateOperation_nullPhase()voidtestCreateOperation_nullType()voidtestCreateOperation_wrongParameterNumber()voidtestCreateOperation_wrongParameterNumber2()voidtestCreateOperation_wrongParameterType()voidtestCreateSupportedAfterOperation_DetachAssociation()voidtestCreateSupportedAfterOperation_Duplicate()voidtestCreateSupportedBeforeOperation_DetachAssociation()voidtestCreateSupportedBeforeOperation_Duplicate()voidtestDetectAssociations()Test of detectAssociations method, of class ReplicationModel.voidtestDetectDependencies()Test of detectDependencies method, of class ReplicationModel.voidtestDetectDirectDependencies()Test of detectDirectDependencies method, of class ReplicationModel.voidtestDetectObjectsToDettach()Test of detectObjectsToDettach method, of class ReplicationModel.voidtestDetectOperations()Test of detectOperations method, of class ReplicationModel.voidtestDetectShell()Test of detectShell method, of class ReplicationModel.voidtestDetectTypes()Test of detectTypes method, of class ReplicationServiceImplementor.voidtestDoReplicate()Test of doReplicate method, of class ReplicationService.voidtestDoReplicate_nullDstCtxt()voidtestDoReplicate_nullModel()voidtestGetOperation()Test of getOperation method, of class ReplicationServiceImplementor.voidtestGetOperation_nullOperationClass()Methods inherited from class org.nuiton.topia.replication.AbstractTopiaReplicationServiceTest
assertDbEquals, assertEntityEquals, createModel, createReplicateDb, createSupportedAfterOperation, createSupportedBeforeOperation, createUnsupportedAfterOperation, createUnsupportedBeforeOperation, detectAssociations, detectDependencies, detectDirectDependencies, detectObjectsToDettach, detectOperations, detectShell, detectTypes, doReplicate, doReplicateAll, doReplicateWithComputedOrder, getOperation, getTestDir, getTestsTimeStamp, prepareModel, prepareModelAll, prepareModelWithComputedOrder, updateMethods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, 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, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThat, assertThat, assertThrows, assertThrows, assertTrue, assertTrue, fail, fail
-
Field Details
-
Constructor Details
-
TopiaReplicationOperationTest
public TopiaReplicationOperationTest()
-
-
Method Details
-
beforeClass
public static void beforeClass() throws java.io.IOException- Throws:
java.io.IOException
-
after
public static void after() throws java.lang.Exception- Throws:
java.lang.Exception
-
setUp
public void setUp() throws java.lang.Exception- Overrides:
setUpin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception- Overrides:
tearDownin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception
-
testGetOperation_nullOperationClass
public void testGetOperation_nullOperationClass() throws java.lang.Exception- Throws:
java.lang.Exception
-
getModelBuilder
protected org.nuiton.topia.replication.TopiaReplicationModelBuilder getModelBuilder()- Overrides:
getModelBuilderin classAbstractTopiaReplicationServiceTest
-
testGetOperation
public void testGetOperation() throws java.lang.ExceptionDescription copied from class:AbstractTopiaReplicationServiceTestTest of getOperation method, of class ReplicationServiceImplementor.- Overrides:
testGetOperationin classAbstractTopiaReplicationServiceTest- 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
-
testCreateSupportedBeforeOperation_Duplicate
public void testCreateSupportedBeforeOperation_Duplicate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateSupportedBeforeOperation_DetachAssociation
public void testCreateSupportedBeforeOperation_DetachAssociation() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateSupportedAfterOperation_Duplicate
public void testCreateSupportedAfterOperation_Duplicate() throws java.lang.Exception- Throws:
java.lang.Exception
-
testCreateSupportedAfterOperation_DetachAssociation
public void testCreateSupportedAfterOperation_DetachAssociation() 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
- Specified by:
createDbin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception
-
getContracts
- Specified by:
getContractsin classAbstractTopiaReplicationServiceTest
-
getLog
protected org.apache.commons.logging.Log getLog()- Specified by:
getLogin classAbstractTopiaReplicationServiceTest
-
getH2Properties
protected java.util.Properties getH2Properties(java.lang.String dbName) throws java.io.IOException- Throws:
java.io.IOException
-
createDb2
- Specified by:
createDb2in classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception
-
testDetectTypes
public void testDetectTypes() throws java.lang.ExceptionDescription copied from class:AbstractTopiaReplicationServiceTestTest of detectTypes method, of class ReplicationServiceImplementor.- Overrides:
testDetectTypesin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception- if any error
-
testDetectAssociations
public void testDetectAssociations() throws java.lang.ExceptionDescription copied from class:AbstractTopiaReplicationServiceTestTest of detectAssociations method, of class ReplicationModel.- Overrides:
testDetectAssociationsin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception- if any error
-
testDetectDirectDependencies
public void testDetectDirectDependencies() throws java.lang.ExceptionDescription copied from class:AbstractTopiaReplicationServiceTestTest of detectDirectDependencies method, of class ReplicationModel.- Overrides:
testDetectDirectDependenciesin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception- if any error
-
testDetectShell
public void testDetectShell() throws java.lang.ExceptionDescription copied from class:AbstractTopiaReplicationServiceTestTest of detectShell method, of class ReplicationModel.- Overrides:
testDetectShellin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception- if any error
-
testDetectDependencies
public void testDetectDependencies() throws java.lang.ExceptionDescription copied from class:AbstractTopiaReplicationServiceTestTest of detectDependencies method, of class ReplicationModel.- Overrides:
testDetectDependenciesin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception- if any error
-
testDetectObjectsToDettach
public void testDetectObjectsToDettach() throws java.lang.ExceptionDescription copied from class:AbstractTopiaReplicationServiceTestTest of detectObjectsToDettach method, of class ReplicationModel.- Overrides:
testDetectObjectsToDettachin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception- if any error
-
testDetectOperations
public void testDetectOperations() throws java.lang.ExceptionDescription copied from class:AbstractTopiaReplicationServiceTestTest of detectOperations method, of class ReplicationModel.- Overrides:
testDetectOperationsin classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception- if any error
-
testDoReplicate
public void testDoReplicate() throws java.lang.ExceptionDescription copied from class:AbstractTopiaReplicationServiceTestTest of doReplicate method, of class ReplicationService.- Overrides:
testDoReplicatein classAbstractTopiaReplicationServiceTest- Throws:
java.lang.Exception- if any error
-