| Constructor and description |
|---|
ScriptTestAdapter(Class scriptClass, String[] arguments)Creates an adapter that runs the supplied Groovy script class as a JUnit test. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public int |
countTestCases()Returns the number of test cases represented by this adapter. |
|
public void |
run(TestResult result)Executes the adapted script and reports the result to JUnit. |
|
public String |
toString()Returns a human-readable description of the adapted script test. |
Returns the number of test cases represented by this adapter.
1Executes the adapted script and reports the result to JUnit.
result - the TestResult receiving lifecycle callbacks and errorsReturns a human-readable description of the adapted script test.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.