Package com.nomagic.magicdraw.tests
Class MagicDrawApplication
- java.lang.Object
-
- com.nomagic.magicdraw.tests.MagicDrawApplication
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.Extension
@OpenApiAll public class MagicDrawApplication extends java.lang.Object implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
Extend with this extension to run JUnit5 test group with MagicDraw application started. Usage example:{@code
-
-
Constructor Summary
Constructors Constructor Description MagicDrawApplication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
After all tests MagicDraw application will not be stopped as it might be needed for further test classes.void
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
Starts MagicDraw application before all tests.
-
-
-
Method Detail
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
Starts MagicDraw application before all tests.- Specified by:
beforeAll
in interfaceorg.junit.jupiter.api.extension.BeforeAllCallback
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
After all tests MagicDraw application will not be stopped as it might be needed for further test classes. This method only prints info about the current memory usage of the application.- Specified by:
afterAll
in interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-
-