|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.lightest.core.LightestUtils
public class LightestUtils
| Constructor Summary | |
|---|---|
LightestUtils()
|
|
| Method Summary | |
|---|---|
static void |
addClassPaths(List paths,
URLClassLoader classLoader)
Adds all members of a list of class paths as URL's to the given class loader. |
static String |
backslash(String s)
Returns the string with all occurrences of backslashes, backslash-escaped. |
static File |
createSuiteFile(List testClasses,
int threadCount)
Creates a Lightest suite file for a given set of test classes in a temporary location, and returns the file. |
static String |
createSuiteXML(List testClassNames,
int threadCount)
Returns as a String the TestNG suite XML representing the List of String class names. |
groovy.lang.MetaClass |
getMetaClass()
|
Object |
getProperty(String name)
|
static String |
getSanitizedStackTrace(Throwable t)
Return the String representation of a stack trace with extraneous Groovy MOP entries removed. |
static Collection |
getSettableProperties(Class clazz)
Returns the names of all settable properties for a given class, as defined by having "setX()" methods available for property "x". |
static StackTraceElement |
getTestCaseStackElement()
Returns the entry in the stack trace of the current thread that represents the most recent method call in a subclass of LightestTestCase. |
Object |
invokeMethod(String name,
Object args)
|
static void |
setBuilderAsDelegate(Object args,
groovy.util.BuilderSupport builder)
Sets this specified node builder instance as the delegate for any Closures in the argument list. |
void |
setMetaClass(groovy.lang.MetaClass metaClass)
|
void |
setProperty(String name,
Object value)
|
static void |
writeSuiteXML(List testClassNames,
int threadCount,
Writer writer)
Writes an XML representation of a Lightest suite file for a given set of test classes, using the specified Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LightestUtils()
| Method Detail |
|---|
public static String getSanitizedStackTrace(Throwable t)
t - public static StackTraceElement getTestCaseStackElement()
public static void setBuilderAsDelegate(Object args,
groovy.util.BuilderSupport builder)
args - a list of arguments as would be passed into
methodMissing() or invokeMethod().builder - the builder to delegate to
public static File createSuiteFile(List testClasses,
int threadCount)
testClasses - the LightestTestCase classesthreadCount - the number of parallel threads to use when executing
the test methods. If less than 2, the test methods
will not be specified to be run in parallel.
public static String createSuiteXML(List testClassNames,
int threadCount)
public static void writeSuiteXML(List testClassNames,
int threadCount,
Writer writer)
testClassNames - the names of LightestTestCase classesthreadCount - the number of parallel threads to use when
executing the test methods. If less than 2, the
test methods will not be specified to be run in
parallel.writer - the writer to use when writing the XMLpublic static Collection getSettableProperties(Class clazz)
clazz -
public static void addClassPaths(List paths,
URLClassLoader classLoader)
paths - the paths to addclassLoader - the class loader to add topublic static String backslash(String s)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass metaClass)
setMetaClass in interface groovy.lang.GroovyObject
public Object invokeMethod(String name,
Object args)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String name)
getProperty in interface groovy.lang.GroovyObject
public void setProperty(String name,
Object value)
setProperty in interface groovy.lang.GroovyObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||