Package org.codehaus.groovy.runtime

# Class ScriptTestAdapter

java.lang.Object
org.codehaus.groovy.runtime.ScriptTestAdapter

All Implemented Interfaces:
  `junit.framework.Test`

    @Deprecated
    public class ScriptTestAdapter
    extends java.lang.Object
    implements junit.framework.Test

Deprecated.
use `ScriptTestAdapter`
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)` | Deprecated.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `int` | `countTestCases()` | Deprecated.
  `void` | `run​(junit.framework.TestResult result)` | Deprecated.
  `java.lang.String` | `toString()` | Deprecated.

  ### 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)
    Deprecated.

- ## Method Details

  - ### countTestCases

    public int countTestCases()
    Deprecated.
    Specified by:
      `countTestCases` in interface `junit.framework.Test`

  - ### run

    public void run​(junit.framework.TestResult result)
    Deprecated.
    Specified by:
      `run` in interface `junit.framework.Test`

  - ### toString

    public java.lang.String toString()
    Deprecated.
    Overrides:
      `toString` in class `java.lang.Object`