public class JUnit extends AssertionSupport
Constructor and Description |
---|
JUnit(Jaskell runtime)
To create a JUnit object.
|
Modifier and Type | Method and Description |
---|---|
junit.framework.TestSuite |
getScriptTestSuite(java.io.File script_file)
To create a JUnit TestSuite from a file that contains the test script.
|
junit.framework.TestSuite |
getScriptTestSuite(java.lang.String script_name)
To create a JUnit Test from a resource that contains the test script.
|
getRuntime
public JUnit(Jaskell runtime)
runtime
- the baseline runtime to add assertion support onto.public junit.framework.TestSuite getScriptTestSuite(java.io.File script_file) throws java.io.IOException
script_file
- the script file.java.io.IOException
- if file loading fails.public junit.framework.TestSuite getScriptTestSuite(java.lang.String script_name) throws java.io.IOException
script_name
- the script file.java.io.IOException
- if resource loading fails.