org.codehaus.groovy.vmplugin.v5
Class JUnit4Utils

java.lang.Object
  extended by org.codehaus.groovy.vmplugin.v5.JUnit4Utils

public class JUnit4Utils
extends java.lang.Object

Java 5 code for working with JUnit 4 tests.

Author:
Paul King

Constructor Summary
JUnit4Utils()
           
 
Method Summary
(package private) static java.lang.Boolean realIsJUnit4Test(java.lang.Class scriptClass, GroovyClassLoader loader)
          Utility method to check via reflection if the parsed class appears to be a JUnit4 test.
(package private) static java.lang.Object realRunJUnit4Test(java.lang.Class scriptClass)
          Utility method to run a JUnit4 test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnit4Utils

public JUnit4Utils()
Method Detail

realIsJUnit4Test

static java.lang.Boolean realIsJUnit4Test(java.lang.Class scriptClass,
                                          GroovyClassLoader loader)
Utility method to check via reflection if the parsed class appears to be a JUnit4 test.

Parameters:
scriptClass - the class we want to check
loader - the GroovyClassLoader to use to find classes
Returns:
true if the class appears to be a test

realRunJUnit4Test

static java.lang.Object realRunJUnit4Test(java.lang.Class scriptClass)
Utility method to run a JUnit4 test.

Parameters:
scriptClass - the class we want to run as a test
Returns:
the result of running the test


Copyright © ${year} The Codehaus. All Rights Reserved.