com.googlecode.lightest.core
Class TestInstanceFinder
java.lang.Object
com.googlecode.lightest.core.TestInstanceFinder
- All Implemented Interfaces:
- groovy.lang.GroovyObject
public class TestInstanceFinder
- extends Object
- implements groovy.lang.GroovyObject
This class delves into TestNG internals in order to produce a listing of
tests that are represented by a set of suites. Normally, TestNG discovers
this list as it is running the tests. For reporting purposes, we would like
to be able to have this information a priori, so we can generate a listing
of pending tests.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestInstanceFinder
public TestInstanceFinder()
TestInstanceFinder
public TestInstanceFinder(TestNG testng)
- Parameters:
parserFactory - testng - the TestNG instance whose logic to use to find
test instance information
find
public TestRegistry find(List suites)
- Finds and returns all TestInstances represented by a list of suites to
be run.
- Parameters:
suites - a List of XmlSuite's to run
createSuiteRunner
protected SuiteRunner createSuiteRunner(XmlSuite xmlSuite,
org.testng.internal.annotations.IAnnotationFinder[] finders)
createTestRunner
protected TestRunner createTestRunner(SuiteRunner suiteRunner,
XmlTest xmlTest)
createAnnotationFinders
protected org.testng.internal.annotations.IAnnotationFinder[] createAnnotationFinders()
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 © 2009. All Rights Reserved.