JUnit 3 test cases
The test framework consists of an abstract JUnit test case implementation (com.nomagic.magicdraw.tests.MagicDrawTestCase) and a number of tools (com.nomagic.magicdraw.tests.common.TestEnvironment, com.nomagic.magicdraw.tests.common.comparators.ProjectsComparator) that can be used for the following purposes:
- Starting the application
- Managing projects
- Checking program for memory leaks
JUnit 4 test cases
The test framework also has test class runner implementations (com.nomagic.magicdraw.tests.MagicDrawTestRunner, com.nomagic.magicdraw.tests.ParametrizedMagicDrawTestRunner) that:
- Start the application
- Check program for memory leaks.
JUnit 5 test cases
Extend your test class with com.nomagic.magicdraw.tests.MagicDrawApplication to start the application before running the test methods.