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 Details

    • ProfilingTimerTestExtension

      public ProfilingTimerTestExtension()
  • Method Details

    • beforeEach

      public void beforeEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      beforeEach in interface org.junit.jupiter.api.extension.BeforeEachCallback
      Throws:
      Exception
    • afterEach

      public void afterEach(org.junit.jupiter.api.extension.ExtensionContext context) throws Exception
      Specified by:
      afterEach in interface org.junit.jupiter.api.extension.AfterEachCallback
      Throws:
      Exception
    • enableProfiling

      public void enableProfiling()
    • disableProfiling

      public void disableProfiling()