org.apache.itest
Class JUnitUtils

java.lang.Object
  extended by org.apache.itest.JUnitUtils
All Implemented Interfaces:
groovy.lang.GroovyObject

public class JUnitUtils
extends Object
implements groovy.lang.GroovyObject


Constructor Summary
JUnitUtils()
           
 
Method Summary
static boolean executeTests(Class testClasses)
          A bulk executor of JUnit test clases capable of producing XML testresults and forking a VM.
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitUtils

public JUnitUtils()
Method Detail

executeTests

public static boolean executeTests(Class testClasses)
A bulk executor of JUnit test clases capable of producing XML testresults and forking a VM.

Parameters:
testClasses - an array of JUnit test classes to be executed in a forked VM
Returns:
true if ALL the tests passed and false in any other case

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2011. All Rights Reserved.