org.codehaus.groovy.grails.test.event
Class GrailsTestEventConsoleReporter

java.lang.Object
  extended by org.codehaus.groovy.grails.test.event.GrailsTestEventConsoleReporter
All Implemented Interfaces:
GrailsBuildListener, groovy.lang.GroovyObject

public class GrailsTestEventConsoleReporter
extends Object
implements GrailsBuildListener, groovy.lang.GroovyObject


Field Summary
protected  int failureCount
           
protected  PrintStream out
           
 
Constructor Summary
GrailsTestEventConsoleReporter(PrintStream out)
           
 
Method Summary
protected  groovy.lang.MetaClass $getStaticMetaClass()
           
protected  Object doTestCaseEnd(String name, String out, String err)
           
protected  Object doTestCaseStart(String name)
           
protected  Object doTestFailure(String name, Object failure, boolean isError)
           
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String property)
           
 Object invokeMethod(String method, Object arguments)
           
 void receiveGrailsBuildEvent(String name, Object[] args)
          Responds to the event.
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected PrintStream out

failureCount

protected int failureCount
Constructor Detail

GrailsTestEventConsoleReporter

public GrailsTestEventConsoleReporter(PrintStream out)
Method Detail

receiveGrailsBuildEvent

public void receiveGrailsBuildEvent(String name,
                                    Object[] args)
Description copied from interface: GrailsBuildListener
Responds to the event.

Specified by:
receiveGrailsBuildEvent in interface GrailsBuildListener

doTestCaseStart

protected Object doTestCaseStart(String name)

doTestFailure

protected Object doTestFailure(String name,
                               Object failure,
                               boolean isError)

doTestCaseEnd

protected Object doTestCaseEnd(String name,
                               String out,
                               String err)

$getStaticMetaClass

protected groovy.lang.MetaClass $getStaticMetaClass()

getMetaClass

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

setMetaClass

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

invokeMethod

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

getProperty

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

setProperty

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


Copyright (c) 2005-2009 The Grails project