com.canoo.webtest.groovy
Class WebTestBuilder

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.util.BuilderSupport
          extended by groovy.util.AntBuilder
              extended by com.canoo.webtest.groovy.WebTestBuilder
All Implemented Interfaces:
groovy.lang.GroovyObject

public class WebTestBuilder
extends groovy.util.AntBuilder

Extends AntBuilder to add support for some goodies that are not fully Ant-conform but more natural when writing Groovy code.

Author:
Marc Guillemot

Constructor Summary
WebTestBuilder(Project antProject)
           
 
Method Summary
protected  Object doInvokeMethod(String methodName, Object name, Object _args)
          In XML, WebTest <groovy...> step accepts the Groovy code as string.
 
Methods inherited from class groovy.util.AntBuilder
buildAttributes, createNode, createNode, createNode, createNode, createProject, getAntProject, getAntXmlContext, getProject, nodeCompleted, setParent, setText
 
Methods inherited from class groovy.util.BuilderSupport
getCurrent, getName, invokeMethod, invokeMethod, postNodeCompletion, setClosureDelegate, setCurrent
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, getProperty, setMetaClass, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebTestBuilder

public WebTestBuilder(Project antProject)
Method Detail

doInvokeMethod

protected Object doInvokeMethod(String methodName,
                                Object name,
                                Object _args)
In XML, WebTest <groovy...> step accepts the Groovy code as string. When the test is written in Groovy this is ugly to have to write Groovy code within a string and better to be able to pass a closure... what is not possible with the standard AntBuilder.

Overrides:
doInvokeMethod in class groovy.util.AntBuilder

Copyright © 2001-2007 Canoo Engineering AG, Basel. All rights reserved.