Class EventsWatcher

java.lang.Object
io.github.giulong.spectrum.extensions.watchers.EventsWatcher
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.Extension, org.junit.jupiter.api.extension.TestWatcher

public class EventsWatcher extends Object implements org.junit.jupiter.api.extension.TestWatcher, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.BeforeEachCallback, org.junit.jupiter.api.extension.AfterAllCallback
  • Constructor Details

    • EventsWatcher

      public EventsWatcher()
  • Method Details

    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
    • beforeEach

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

      public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback
    • testDisabled

      public void testDisabled(org.junit.jupiter.api.extension.ExtensionContext context, Optional<String> reason)
      Specified by:
      testDisabled in interface org.junit.jupiter.api.extension.TestWatcher
    • testSuccessful

      public void testSuccessful(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      testSuccessful in interface org.junit.jupiter.api.extension.TestWatcher
    • testAborted

      public void testAborted(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable)
      Specified by:
      testAborted in interface org.junit.jupiter.api.extension.TestWatcher
    • testFailed

      public void testFailed(org.junit.jupiter.api.extension.ExtensionContext context, Throwable exception)
      Specified by:
      testFailed in interface org.junit.jupiter.api.extension.TestWatcher
    • notifyClass

      public void notifyClass(org.junit.jupiter.api.extension.ExtensionContext context, String reason, Result result, Set<String> tags)
    • notifyTest

      public void notifyTest(org.junit.jupiter.api.extension.ExtensionContext context, String reason, Result result, Set<String> tags)