Class PathRunner
- java.lang.Object
-
- org.junit.runner.Runner
-
- gov.nist.secauto.decima.xml.testing.PathRunner
-
- All Implemented Interfaces:
UnitTestFileHandler,org.junit.runner.Describable
public class PathRunner extends org.junit.runner.Runner implements UnitTestFileHandler
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePathRunner.PathsAnnotation for the runner class to provide paths to be injected into the runner.static interfacePathRunner.RequirementsAnnotation for the runner class to provide paths to be injected into the runner.
-
Constructor Summary
Constructors Constructor Description PathRunner(Class<?> testClass)Constructs a new Path-based Decima JUnit test runner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.junit.runner.DescriptiongetDescription()AssessmentUnitTestParsergetParser()FilegetResultDirectory()voidhandleUnitTestFile(Path file, URI unitTestDirURI)voidrun(org.junit.runner.notification.RunNotifier notifier)
-
-
-
Constructor Detail
-
PathRunner
public PathRunner(Class<?> testClass) throws org.junit.runners.model.InitializationError
Constructs a new Path-based Decima JUnit test runner.- Parameters:
testClass- a class instance used to retrieve annotations- Throws:
org.junit.runners.model.InitializationError- if an error occurred setting up the referenced unit tests
-
-
Method Detail
-
getResultDirectory
public File getResultDirectory()
-
getParser
public AssessmentUnitTestParser getParser()
-
handleUnitTestFile
public void handleUnitTestFile(Path file, URI unitTestDirURI) throws IOException
- Specified by:
handleUnitTestFilein interfaceUnitTestFileHandler- Throws:
IOException
-
getDescription
public org.junit.runner.Description getDescription()
- Specified by:
getDescriptionin interfaceorg.junit.runner.Describable- Specified by:
getDescriptionin classorg.junit.runner.Runner
-
run
public void run(org.junit.runner.notification.RunNotifier notifier)
- Specified by:
runin classorg.junit.runner.Runner
-
-