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.AfterAllCallbackExtend 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 voidafterAll(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.voidbeforeAll(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:
beforeAllin 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:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback
-
-