Class ProfilingTimerTestExtension
java.lang.Object
com.atlassian.jira.junit.extensions.ProfilingTimerTestExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterEachCallback,org.junit.jupiter.api.extension.BeforeEachCallback,org.junit.jupiter.api.extension.Extension
public class ProfilingTimerTestExtension
extends Object
implements org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterEachCallback
JUnit's extension that enables/disables profiling for the test.
It also helps with resetting the profiling configuration after the test.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterEach(org.junit.jupiter.api.extension.ExtensionContext context) voidbeforeEach(org.junit.jupiter.api.extension.ExtensionContext context) voidvoid
-
Constructor Details
-
ProfilingTimerTestExtension
public ProfilingTimerTestExtension()
-
-
Method Details
-
beforeEach
- Specified by:
beforeEachin interfaceorg.junit.jupiter.api.extension.BeforeEachCallback- Throws:
Exception
-
afterEach
- Specified by:
afterEachin interfaceorg.junit.jupiter.api.extension.AfterEachCallback- Throws:
Exception
-
enableProfiling
public void enableProfiling() -
disableProfiling
public void disableProfiling()
-