Package com.ibm.decision.run.test.junit5
Class JSONTestDirectoryFactory
- java.lang.Object
-
- com.ibm.decision.run.test.junit5.JSONTestDirectoryFactory
-
public class JSONTestDirectoryFactory extends Object
Factory for creating tests using descriptions in JSON, and information from @DecisionTest annotation.
-
-
Field Summary
Fields Modifier and Type Field Description static booleanverboseVerbose tests, by default false.
-
Constructor Summary
Constructors Constructor Description JSONTestDirectoryFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stream<org.junit.jupiter.api.DynamicNode>createTests(Class<?> testClass)Creates tests using descriptions in JSON
-
-
-
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
-
-