Class ProfilingTestRule

java.lang.Object
org.junit.rules.TestWatcher
com.atlassian.confluence.test.util.ProfilingTestRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class ProfilingTestRule extends org.junit.rules.TestWatcher
Since:
7.20
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final io.micrometer.core.instrument.MockClock
     
    final io.micrometer.core.instrument.simple.SimpleMeterRegistry
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    finished(org.junit.runner.Description description)
     
    protected void
    starting(org.junit.runner.Description description)
     

    Methods inherited from class org.junit.rules.TestWatcher

    apply, failed, skipped, skipped, succeeded

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • clock

      public final io.micrometer.core.instrument.MockClock clock
    • registry

      public final io.micrometer.core.instrument.simple.SimpleMeterRegistry registry
  • Constructor Details

    • ProfilingTestRule

      public ProfilingTestRule()
  • Method Details

    • starting

      protected void starting(org.junit.runner.Description description)
      Overrides:
      starting in class org.junit.rules.TestWatcher
    • finished

      protected void finished(org.junit.runner.Description description)
      Overrides:
      finished in class org.junit.rules.TestWatcher