org.codehaus.groovy.vmplugin.v5
Class TestNgUtils

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

public class TestNgUtils
extends java.lang.Object

Java 5 code for working with TestNG tests.

Author:
Paul King

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

Constructor Detail

TestNgUtils

public TestNgUtils()
Method Detail

realIsTestNgTest

static java.lang.Boolean realIsTestNgTest(java.lang.Class scriptClass,
                                          GroovyClassLoader loader)
Utility method to check via reflection if the parsed class appears to be a TestNG 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

realRunTestNgTest

static java.lang.Object realRunTestNgTest(java.lang.Class scriptClass)
Utility method to run a TestNG 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.