com.googlecode.lightest.core
Class LightestSuiteResultWriter

java.lang.Object
  extended by com.googlecode.lightest.core.XMLSuiteResultWriter
      extended by com.googlecode.lightest.core.LightestSuiteResultWriter
All Implemented Interfaces:
ITestRegistryAcceptor, groovy.lang.GroovyObject

public class LightestSuiteResultWriter
extends XMLSuiteResultWriter
implements groovy.lang.GroovyObject, ITestRegistryAcceptor


Field Summary
static String ATTR_PENDING_INVOCATIONS
           
static String TAG_TEST_PENDING
           
 
Fields inherited from class com.googlecode.lightest.core.XMLSuiteResultWriter
config
 
Constructor Summary
LightestSuiteResultWriter()
           
LightestSuiteResultWriter(org.testng.reporters.XMLReporterConfig config)
           
 
Method Summary
protected  void addPendingTest(org.testng.reporters.XMLStringBuffer xmlBuffer, TestInstance testInstance, int pendingCount)
           
protected  void addTestResult(org.testng.reporters.XMLStringBuffer xmlBuffer, ITestResult testResult, TestRegistry registry)
           
protected  void addTestResults(org.testng.reporters.XMLStringBuffer xmlBuffer, Set testResults, TestRegistry registryByTest)
           
 groovy.lang.MetaClass getMetaClass()
           
protected  Properties getPendingTestAttributes(TestInstance testInstance, int pendingCount)
           
 Object getProperty(String name)
           
 TestRegistry getRegistry()
          Return the registry currently set on the object.
protected  Properties getSuiteResultAttributes(ISuiteResult suiteResult)
           
 Object invokeMethod(String name, Object args)
           
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 void setRegistry(TestRegistry value)
          Set the registry on the object.
protected  void writeAllToBuffer(org.testng.reporters.XMLStringBuffer xmlBuffer, ISuiteResult suiteResult)
          Except for a small modification, this is a clone of the parent class' implementation, and should be kept in sync with it when upgrading the TestNG version.
 
Methods inherited from class com.googlecode.lightest.core.XMLSuiteResultWriter
addAllTestResults, addTestMethodParams, addTestResultException, buildTestClassGroups, getStatusString, getTestResultAttributes, setConfig, writeSuiteResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG_TEST_PENDING

public static final String TAG_TEST_PENDING

ATTR_PENDING_INVOCATIONS

public static final String ATTR_PENDING_INVOCATIONS
Constructor Detail

LightestSuiteResultWriter

public LightestSuiteResultWriter()

LightestSuiteResultWriter

public LightestSuiteResultWriter(org.testng.reporters.XMLReporterConfig config)
Method Detail

getRegistry

public TestRegistry getRegistry()
Description copied from interface: ITestRegistryAcceptor
Return the registry currently set on the object.

Specified by:
getRegistry in interface ITestRegistryAcceptor

setRegistry

public void setRegistry(TestRegistry value)
Description copied from interface: ITestRegistryAcceptor
Set the registry on the object.

Specified by:
setRegistry in interface ITestRegistryAcceptor

writeAllToBuffer

protected void writeAllToBuffer(org.testng.reporters.XMLStringBuffer xmlBuffer,
                                ISuiteResult suiteResult)
Except for a small modification, this is a clone of the parent class' implementation, and should be kept in sync with it when upgrading the TestNG version.

Overrides:
writeAllToBuffer in class XMLSuiteResultWriter

getSuiteResultAttributes

protected Properties getSuiteResultAttributes(ISuiteResult suiteResult)
Overrides:
getSuiteResultAttributes in class XMLSuiteResultWriter

addTestResults

protected void addTestResults(org.testng.reporters.XMLStringBuffer xmlBuffer,
                              Set testResults,
                              TestRegistry registryByTest)

addTestResult

protected void addTestResult(org.testng.reporters.XMLStringBuffer xmlBuffer,
                             ITestResult testResult,
                             TestRegistry registry)

addPendingTest

protected void addPendingTest(org.testng.reporters.XMLStringBuffer xmlBuffer,
                              TestInstance testInstance,
                              int pendingCount)

getPendingTestAttributes

protected Properties getPendingTestAttributes(TestInstance testInstance,
                                              int pendingCount)

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.