org.nuiton.topiatest.deletetest
Class DeleteEntityTest

java.lang.Object
  extended by 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


Constructor Summary
DeleteEntityTest()
           
 
Method Summary
 void setUp()
           
static void setUpClass()
           
 void tearDown()
           
static void tearDownClass()
           
 void testDeleteEntityWithInheritance()
          Test for deleting entities with inheritance.
 void testDeleteEntityWithManyToManyRelation()
          Test for deleting entities with NMultiplicity relation without association class entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteEntityTest

public DeleteEntityTest()
Method Detail

setUpClass

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

tearDownClass

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

setUp

public void setUp()

tearDown

public void tearDown()

testDeleteEntityWithInheritance

public void testDeleteEntityWithInheritance()
Test 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.


testDeleteEntityWithManyToManyRelation

public void testDeleteEntityWithManyToManyRelation()
Test 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.

See Also:
DAOAbstractTransformer


Copyright © 2004-2010 CodeLutin. All Rights Reserved.