The module listens for some model element to automatically adapt the test model.

The module does not automatically create the test model, only the "Create test model" and "Update test model" commands modify the test model.

However the module listens for model element deletions and automatically adapt the test model in the following cases:

Deleting a test method

When deleting a tested method:

  • The test method is marked as to be deleted.

  • Java code generation is disabled by a {Java.nocode} tag.

Deleting a «UnitTest» Dependency

When deleting the Dependency between the tested class and the test class:

  • The test class is marked as to be deleted.

  • Java code generation is disabled by a {Java.nocode} tag.

Deleting a class

When deleting a tested class:

  • The Dependency between the test class and the tested one is deleted.

  • The test class is marked as to be deleted.

  • Java code generation is disabled by a {Java.nocode} tag.

Deleting a package

When deleting a tested package:

  • The Dependency between the test package and the tested one is deleted.

  • The test package is marked as to be deleted.

  • Java code generation is disabled by a {Java.nocode} tag.

  • The automated behavior also applies to all the deleted package content: all contained test classes are marked to delete, generation is disabled …