Enum Isolation

    • Enum Constant Detail

      • 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 Detail

      • values

        public static Isolation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Isolation c : Isolation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Isolation valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null