Enum Class Isolation

java.lang.Object
java.lang.Enum<Isolation>
de.sormuras.junit.platform.maven.plugin.Isolation
All Implemented Interfaces:
Serializable, Comparable<Isolation>, Constable

public enum Isolation extends Enum<Isolation>
Isolation level.
  • Enum Constant Details

    • ABSOLUTE

      public static final Isolation ABSOLUTE
      Total isolation.
      
       MAIN
         - target/classes
         - main dependencies...
       TEST
         - target/test-classes
         - test dependencies...
       JUNIT PLATFORM
         - junit-platform-launcher
         - junit-jupiter-engine
         - junit-vintage-engine
         - more runtime-only test engines...
       ISOLATOR
         - junit-platform-isolator
         - junit-platform-isolator-worker
       
    • ALMOST

      public static final Isolation ALMOST
      Almost total isolation - main and test classes are put into the same layer.
      
       MAIN
         - main dependencies...
       TEST
         - target/classes
         - target/test-classes
         - test dependencies...
       JUNIT PLATFORM
         - junit-platform-launcher
         - junit-jupiter-engine
         - junit-vintage-engine
         - more runtime-only test engines...
       ISOLATOR
         - junit-platform-isolator
         - junit-platform-isolator-worker
       
    • MERGED

      public static final Isolation MERGED
      Merge main and test layers.
      
       MERGED (TEST + MAIN)
         - target/test-classes
         - test dependencies...
         - target/classes
         - main dependencies...
       JUNIT PLATFORM
         - junit-platform-launcher
         - junit-jupiter-engine
         - junit-vintage-engine
         - more runtime-only test engines...
       ISOLATOR
         - junit-platform-isolator
         - junit-platform-isolator-worker
       
    • NONE

      public static final Isolation NONE
      No isolation, all dependencies are put into a single layer.
      
       ALL
         - target/classes
         - main dependencies...
         - target/test-classes
         - test dependencies...
         - junit-platform-launcher
         - junit-jupiter-engine
         - junit-vintage-engine
         - more runtime-only test engines...
         - junit-platform-isolator
         - junit-platform-isolator-worker
       
  • Method Details

    • values

      public static Isolation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Isolation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null