public class TopiaReplicationOperationTest extends AbstractTopiaReplicationServiceTest
Modifier and Type | Field and Description |
---|---|
protected static TopiaEntityEnum[] |
contracts |
protected static String |
entitiesList |
protected static org.nuiton.topia.test.entities.Person |
person |
protected static org.nuiton.topia.test.entities.Person |
person2 |
protected static org.nuiton.topia.test.entities.Pet |
pet |
protected static org.nuiton.topia.test.entities.Pet |
pet2 |
protected static org.nuiton.topia.test.entities.Race |
race |
protected static org.nuiton.topia.test.entities.Race |
race2 |
protected static File |
tesDir |
Constructor and Description |
---|
TopiaReplicationOperationTest() |
assertDbEquals, assertEntityEquals, createModel, createReplicateDb, createSupportedAfterOperation, createSupportedBeforeOperation, createUnsupportedAfterOperation, createUnsupportedBeforeOperation, detectAssociations, detectDependencies, detectDirectDependencies, detectObjectsToDettach, detectOperations, detectShell, detectTypes, doReplicate, doReplicateAll, doReplicateWithComputedOrder, getOperation, getTestDir, getTestsTimeStamp, prepareModel, prepareModelAll, prepareModelWithComputedOrder, update
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
protected static final TopiaEntityEnum[] contracts
protected static final String entitiesList
protected static org.nuiton.topia.test.entities.Person person
protected static org.nuiton.topia.test.entities.Person person2
protected static org.nuiton.topia.test.entities.Pet pet
protected static org.nuiton.topia.test.entities.Pet pet2
protected static org.nuiton.topia.test.entities.Race race
protected static org.nuiton.topia.test.entities.Race race2
protected static File tesDir
public static void beforeClass() throws IOException
IOException
public void setUp() throws Exception
setUp
in class AbstractTopiaReplicationServiceTest
Exception
public void tearDown() throws Exception
tearDown
in class AbstractTopiaReplicationServiceTest
Exception
public void testGetOperation_nullOperationClass() throws Exception
Exception
protected TopiaReplicationModelBuilder getModelBuilder()
getModelBuilder
in class AbstractTopiaReplicationServiceTest
public void testGetOperation() throws Exception
AbstractTopiaReplicationServiceTest
testGetOperation
in class AbstractTopiaReplicationServiceTest
Exception
- if any errorpublic void testCreateOperation_nullModel() throws Exception
Exception
public void testCreateOperation_nullType() throws Exception
Exception
public void testCreateOperation_nullPhase() throws Exception
Exception
public void testCreateOperation_nullOperationClass() throws Exception
Exception
public void testCreateOperation_noNode() throws Exception
Exception
public void testCreateOperation_noOperation() throws Exception
Exception
public void testCreateSupportedBeforeOperation_Duplicate() throws Exception
Exception
public void testCreateSupportedBeforeOperation_DetachAssociation() throws Exception
Exception
public void testCreateSupportedAfterOperation_Duplicate() throws Exception
Exception
public void testCreateSupportedAfterOperation_DetachAssociation() throws Exception
Exception
public void testCreateOperation_wrongParameterNumber() throws Exception
Exception
public void testCreateOperation_wrongParameterNumber2() throws Exception
Exception
public void testCreateOperation_wrongParameterType() throws Exception
Exception
public void testCreateOperation_nullParameter() throws Exception
Exception
public void testDoReplicate_nullModel() throws Exception
Exception
public void testDoReplicate_nullDstCtxt() throws Exception
Exception
protected TopiaContext createDb(String name) throws Exception
createDb
in class AbstractTopiaReplicationServiceTest
Exception
protected TopiaEntityEnum[] getContracts()
getContracts
in class AbstractTopiaReplicationServiceTest
protected org.apache.commons.logging.Log getLog()
getLog
in class AbstractTopiaReplicationServiceTest
protected Properties getH2Properties(String dbName) throws IOException
IOException
protected TopiaContext createDb2(String name) throws Exception
createDb2
in class AbstractTopiaReplicationServiceTest
Exception
public void testDetectTypes() throws Exception
AbstractTopiaReplicationServiceTest
testDetectTypes
in class AbstractTopiaReplicationServiceTest
Exception
- if any errorpublic void testDetectAssociations() throws Exception
AbstractTopiaReplicationServiceTest
testDetectAssociations
in class AbstractTopiaReplicationServiceTest
Exception
- if any errorpublic void testDetectDirectDependencies() throws Exception
AbstractTopiaReplicationServiceTest
testDetectDirectDependencies
in class AbstractTopiaReplicationServiceTest
Exception
- if any errorpublic void testDetectShell() throws Exception
AbstractTopiaReplicationServiceTest
testDetectShell
in class AbstractTopiaReplicationServiceTest
Exception
- if any errorpublic void testDetectDependencies() throws Exception
AbstractTopiaReplicationServiceTest
testDetectDependencies
in class AbstractTopiaReplicationServiceTest
Exception
- if any errorpublic void testDetectObjectsToDettach() throws Exception
AbstractTopiaReplicationServiceTest
testDetectObjectsToDettach
in class AbstractTopiaReplicationServiceTest
Exception
- if any errorpublic void testDetectOperations() throws Exception
AbstractTopiaReplicationServiceTest
testDetectOperations
in class AbstractTopiaReplicationServiceTest
Exception
- if any errorpublic void testDoReplicate() throws Exception
AbstractTopiaReplicationServiceTest
testDoReplicate
in class AbstractTopiaReplicationServiceTest
Exception
- if any errorCopyright © 2004–2022 Code Lutin. All rights reserved.