Package org.apache.groovy.test
Class ScriptTestAdapter
java.lang.Object
org.apache.groovy.test.ScriptTestAdapter
- All Implemented Interfaces:
junit.framework.Test
public class ScriptTestAdapter extends Object implements junit.framework.Test
An adapter to make any Groovy Script class an instance of a JUnit Test
-
Constructor Summary
Constructors Constructor Description ScriptTestAdapter(Class scriptClass, String[] arguments) -
Method Summary
Modifier and Type Method Description intcountTestCases()voidrun(junit.framework.TestResult result)StringtoString()
-
Constructor Details
-
Method Details
-
countTestCases
public int countTestCases()- Specified by:
countTestCasesin interfacejunit.framework.Test
-
run
public void run(junit.framework.TestResult result)- Specified by:
runin interfacejunit.framework.Test
-
toString
-