Class ExceptionsReporter

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.AfterTestExecutionCallback, org.junit.jupiter.api.extension.Extension

    public class ExceptionsReporter
    extends java.lang.Object
    implements org.junit.jupiter.api.extension.AfterTestExecutionCallback
    JUnit5 extension that takes care of reporting failed assertions.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TESTPROJECT_TLD
      TestProject package name prefix.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterTestExecution​(org.junit.jupiter.api.extension.ExtensionContext context)
      Report thrown exceptions after test execution.
      • Methods inherited from class java.lang.Object

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

      • TESTPROJECT_TLD

        public static final java.lang.String TESTPROJECT_TLD
        TestProject package name prefix.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExceptionsReporter

        public ExceptionsReporter()
    • Method Detail

      • afterTestExecution

        public void afterTestExecution​(org.junit.jupiter.api.extension.ExtensionContext context)
                                throws java.lang.Exception
        Report thrown exceptions after test execution.
        Specified by:
        afterTestExecution in interface org.junit.jupiter.api.extension.AfterTestExecutionCallback
        Throws:
        java.lang.Exception