Class SmokeTestExtension

  • All Implemented Interfaces:
    org.junit.jupiter.api.extension.ExecutionCondition, org.junit.jupiter.api.extension.Extension, org.junit.platform.launcher.TestExecutionListener

    public class SmokeTestExtension
    extends java.lang.Object
    implements org.junit.jupiter.api.extension.ExecutionCondition, org.junit.platform.launcher.TestExecutionListener
    This extension replaces the SmokeRunner class for JUnit 4. The name is derived from the SmokeTest annotation which allows you to mark tests as "SmokeTest". But it works also for the other JUnit annotations like IntegrationTest or Broken.
    Since:
    2.0 (08.11.2019)
    Author:
    oboehm
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.junit.jupiter.api.extension.ConditionEvaluationResult evaluateExecutionCondition​(org.junit.jupiter.api.extension.ExtensionContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.junit.platform.launcher.TestExecutionListener

        dynamicTestRegistered, executionFinished, executionSkipped, executionStarted, reportingEntryPublished, testPlanExecutionFinished, testPlanExecutionStarted
    • Constructor Detail

      • SmokeTestExtension

        public SmokeTestExtension()
    • Method Detail

      • evaluateExecutionCondition

        public org.junit.jupiter.api.extension.ConditionEvaluationResult evaluateExecutionCondition​(org.junit.jupiter.api.extension.ExtensionContext context)
        Specified by:
        evaluateExecutionCondition in interface org.junit.jupiter.api.extension.ExecutionCondition