Class MultiEnvTestEngine

  • All Implemented Interfaces:
    org.junit.platform.engine.TestEngine

    public class MultiEnvTestEngine
    extends java.lang.Object
    implements org.junit.platform.engine.TestEngine
    This is a JUnit5 Test Engine that delegates test discovery to JupiterTestEngine and replicates the discovered tests for execution in multiple test environments.

    Actual test environments are expected to be managed by JUnit 5 extensions, implementing the MultiEnvTestExtension interface.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENGINE_ID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.junit.platform.engine.TestDescriptor discover​(org.junit.platform.engine.EngineDiscoveryRequest discoveryRequest, org.junit.platform.engine.UniqueId uniqueId)  
      void execute​(org.junit.platform.engine.ExecutionRequest request)  
      java.util.Optional<java.lang.String> getArtifactId()  
      java.util.Optional<java.lang.String> getGroupId()  
      java.lang.String getId()  
      • 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.engine.TestEngine

        getVersion
    • Constructor Detail

      • MultiEnvTestEngine

        public MultiEnvTestEngine()
    • Method Detail

      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface org.junit.platform.engine.TestEngine
      • execute

        public void execute​(org.junit.platform.engine.ExecutionRequest request)
        Specified by:
        execute in interface org.junit.platform.engine.TestEngine
      • discover

        public org.junit.platform.engine.TestDescriptor discover​(org.junit.platform.engine.EngineDiscoveryRequest discoveryRequest,
                                                                 org.junit.platform.engine.UniqueId uniqueId)
        Specified by:
        discover in interface org.junit.platform.engine.TestEngine
      • getGroupId

        public java.util.Optional<java.lang.String> getGroupId()
        Specified by:
        getGroupId in interface org.junit.platform.engine.TestEngine
      • getArtifactId

        public java.util.Optional<java.lang.String> getArtifactId()
        Specified by:
        getArtifactId in interface org.junit.platform.engine.TestEngine