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 java.lang.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(java.lang.Class scriptClass, java.lang.String[] arguments)
-
Method Summary
Modifier and Type Method Description int
countTestCases()
void
run(junit.framework.TestResult result)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ScriptTestAdapter
public ScriptTestAdapter(java.lang.Class scriptClass, java.lang.String[] arguments)
-
-
Method Details
-
countTestCases
public int countTestCases()- Specified by:
countTestCases
in interfacejunit.framework.Test
-
run
public void run(junit.framework.TestResult result)- Specified by:
run
in interfacejunit.framework.Test
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-