Class JSONTestDirectoryFactory


  • public class JSONTestDirectoryFactory
    extends Object
    Factory for creating tests using descriptions in JSON, and information from @DecisionTest annotation.
    • Field Detail

      • verbose

        public static boolean verbose
        Verbose tests, by default false.
    • Constructor Detail

      • JSONTestDirectoryFactory

        public JSONTestDirectoryFactory()
    • Method Detail

      • createTests

        public static Stream<org.junit.jupiter.api.DynamicNode> createTests​(Class<?> testClass)
        Creates tests using descriptions in JSON
        Parameters:
        testClass - The class that should carry the @DecisionTest annotation
        Returns:
        a stream of JUnit 5 Dynamic Nodes.
        Throws:
        org.junit.jupiter.api.extension.TestInstantiationException - if tests cannot be instantiated