GroovyRunner instances
for the registry. These instances should be accessed via
the registry and not used directly.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final GroovyRunner | |
| private static final GroovyRunner | |
| private static final GroovyRunner |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static GroovyRunner | |
| pack-priv static GroovyRunner | |
| pack-priv static GroovyRunner |
| JUNIT3_SUITE | back to summary |
|---|---|
| private static final GroovyRunner JUNIT3_SUITE | |
| JUNIT3_TEST | back to summary |
|---|---|
| private static final GroovyRunner JUNIT3_TEST | |
| JUNIT4_TEST | back to summary |
|---|---|
| private static final GroovyRunner JUNIT4_TEST | |
| DefaultRunners | back to summary |
|---|---|
| private DefaultRunners() | |
| junit3SuiteRunner | back to summary |
|---|---|
| pack-priv static GroovyRunner junit3SuiteRunner() | |
| junit3TestRunner | back to summary |
|---|---|
| pack-priv static GroovyRunner junit3TestRunner() | |
| junit4TestRunner | back to summary |
|---|---|
| pack-priv static GroovyRunner junit4TestRunner() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the class appears to be a testthe class we want to check scriptClass, GroovyClassLoader the class loader loader)Implements org. |
| public Object | run(Class<?>
the class to be run as a unit test scriptClass, GroovyClassLoader the class loader loader)Implements org. |
| Junit3SuiteRunner | back to summary |
|---|---|
| private Junit3SuiteRunner() | |
| canRun | back to summary |
|---|---|
| public boolean canRun(Class<?> scriptClass, GroovyClassLoader loader) Implements org. Utility method to check through reflection if the class appears to be a JUnit 3.8.x test suite, i.e. checks if it extends JUnit 3.8.x's TestSuite.
| |
| run | back to summary |
|---|---|
| public Object run(Class<?> scriptClass, GroovyClassLoader loader) Implements org. Run the specified class extending TestSuite as a unit test. This is done through reflection, to avoid adding a dependency to the JUnit framework. Otherwise, developers embedding Groovy and using GroovyShell to load/parse/compile groovy scripts and classes would have to add another dependency on their classpath.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the class appears to be a testthe class we want to check scriptClass, GroovyClassLoader the class loader loader)Implements org. |
| public Object | run(Class<?>
the class to be run as a unit test scriptClass, GroovyClassLoader the class loader loader)Implements org. |
| Junit3TestRunner | back to summary |
|---|---|
| private Junit3TestRunner() | |
| canRun | back to summary |
|---|---|
| public boolean canRun(Class<?> scriptClass, GroovyClassLoader loader) Implements org. Utility method to check through reflection if the class appears to be a JUnit 3.8.x test, i.e. checks if it extends JUnit 3.8.x's TestCase.
| |
| run | back to summary |
|---|---|
| public Object run(Class<?> scriptClass, GroovyClassLoader loader) Implements org. Run the specified class extending TestCase as a unit test. This is done through reflection, to avoid adding a dependency to the JUnit framework. Otherwise, developers embedding Groovy and using GroovyShell to load/parse/compile groovy scripts and classes would have to add another dependency on their classpath.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the class appears to be a testthe class we want to check scriptClass, GroovyClassLoader the class loader loader)Implements org. |
| private static boolean | |
| private static boolean | |
| public Object | run(Class<?>
the class to be run as a unit test scriptClass, GroovyClassLoader the class loader loader)Implements org. |
| Junit4TestRunner | back to summary |
|---|---|
| private Junit4TestRunner() | |
| canRun | back to summary |
|---|---|
| public boolean canRun(Class<?> scriptClass, GroovyClassLoader loader) Implements org. Utility method to check via reflection if the parsed class appears to be a JUnit4 test, i.e. checks whether it appears to be using the relevant JUnit 4 annotations.
| |
| hasRunWithAnnotation | back to summary |
|---|---|
| private static boolean hasRunWithAnnotation(Class<?> scriptClass, ClassLoader loader) | |
| hasTestAnnotatedMethod | back to summary |
|---|---|
| private static boolean hasTestAnnotatedMethod(Class<?> scriptClass, ClassLoader loader) | |
| run | back to summary |
|---|---|
| public Object run(Class<?> scriptClass, GroovyClassLoader loader) Implements org. Run the specified class extending TestCase as a unit test. This is done through reflection, to avoid adding a dependency to the JUnit framework. Otherwise, developers embedding Groovy and using GroovyShell to load/parse/compile groovy scripts and classes would have to add another dependency on their classpath.
| |