Package org.nuiton.topiatest.deletetest
Class DeleteEntityTest
java.lang.Object
org.nuiton.topiatest.deletetest.DeleteEntityTest
public class DeleteEntityTest
extends java.lang.Object
Deleting tests with DAO and Entities generated with ToPIA (diagram
delete-test in topiatest.zargo). Different case of deleting, with inheritance
or NMultiplicity relationship between two entities, or both. Initiate from an
issue with DAOAbstractGenerator delete method generation. Tests with H2
Database. Configuration in src/test/resources/TopiaContextImpl.properties
-
Field Summary
Fields Modifier and Type Field Description TopiaDatabasedb -
Constructor Summary
Constructors Constructor Description DeleteEntityTest() -
Method Summary
Modifier and Type Method Description voidtestDeleteEntityWithInheritance()Test for deleting entities with inheritance.voidtestDeleteEntityWithManyToManyRelation()Test for deleting entities with NMultiplicity relation without association class entity.
-
Field Details
-
Constructor Details
-
DeleteEntityTest
public DeleteEntityTest()
-
-
Method Details
-
testDeleteEntityWithInheritance
public void testDeleteEntityWithInheritance() throws org.nuiton.topia.TopiaExceptionTest for deleting entities with inheritance. Delete from the DAO linked with the subclass entity and from the DAO linked with the superclass entity. In the test model, the two entities have NMultiplicity relationship without association class entity.- Throws:
org.nuiton.topia.TopiaException- if any exception while manipulating db
-
testDeleteEntityWithManyToManyRelation
public void testDeleteEntityWithManyToManyRelation() throws org.nuiton.topia.TopiaExceptionTest for deleting entities with NMultiplicity relation without association class entity. Test DAO generation for deleting references between two entities with NMultiplicity relation. In the test model, the two entities have both inheritance.- Throws:
org.nuiton.topia.TopiaException- if any exception while manipulating db- See Also:
DAOAbstractTransformer
-