Class DeleteCascadeToChildrenThatHaveSameTypeAsParentButDoNotSatisfyGuard
- java.lang.Object
-
- org.eclipse.epsilon.hutn.test.model.HutnTestWithFamiliesMetaModel
-
- org.eclipse.epsilon.flock.engine.test.acceptance.util.FlockAcceptanceTest
-
- org.eclipse.epsilon.flock.engine.test.acceptance.typemappings.deletecascade.DeleteCascadeToChildrenThatHaveSameTypeAsParentButDoNotSatisfyGuard
-
public class DeleteCascadeToChildrenThatHaveSameTypeAsParentButDoNotSatisfyGuard extends FlockAcceptanceTest
This test covers an edge case of cascading delete behaviour. When a cascading delete is to be applied to a model element of type X which also contains other model elements of type X, we need to be sure to delete the children of type X even if they do not satisfy the guard of the deletion rule. In fact, we do not even want to check the applicability of the cascading deletion rule to any children (even if those children are of the same type as the parent element).
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.flock.engine.test.acceptance.util.FlockAcceptanceTest
migrated, result
-
Fields inherited from class org.eclipse.epsilon.hutn.test.model.HutnTestWithFamiliesMetaModel
BANK_ACCOUNTS_MODEL_URI, CONFIG_FILE
-
-
Constructor Summary
Constructors Constructor Description DeleteCascadeToChildrenThatHaveSameTypeAsParentButDoNotSatisfyGuard()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
migratedShouldContainNoModels()
static void
setup()
-
Methods inherited from class org.eclipse.epsilon.flock.engine.test.acceptance.util.FlockAcceptanceTest
hutnToFamily, migrateFamilies, migrateFamiliesToFamilies, migrateFamiliesToFamilies
-
Methods inherited from class org.eclipse.epsilon.hutn.test.model.HutnTestWithFamiliesMetaModel
families, registerMetaModels, unregisterMetaModels
-
-