org.junitee.anttask
Class JUnitEETask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.junitee.anttask.JUnitEETask

public class JUnitEETask
extends org.apache.tools.ant.Task

This ant task runs server-side unit tests using the JUnitEE test runner.

Version:
$Revision: 1.17 $
Author:
Oliver Rossmueller

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JUnitEETask()
           
 
Method Summary
 void addFormatter(FormatterElement formatter)
           
 JUnitEETest createTest()
          Create a nested test element.
 void execute()
           
protected  void execute(JUnitEETest test)
           
 void setErrorproperty(java.lang.String value)
          Tell the task which property should be set in case of an error.
 void setFailureproperty(java.lang.String value)
          Tell the task which property should be set in case of an error or test failure.
 void setFiltertrace(boolean filtertrace)
           
 void setHaltonerror(boolean value)
          Tell the task how to handle errors.
 void setHaltonfailure(boolean value)
          Tell the task how to handle test failures.
 void setPrintsummary(boolean printSummary)
          Tell the task to print a verbose test summary.
 void setThreaded(boolean threaded)
           
 void setUrl(java.lang.String url)
          Set the URL to call the JUnitEE test servlet.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JUnitEETask

public JUnitEETask()
Method Detail

setUrl

public void setUrl(java.lang.String url)
Set the URL to call the JUnitEE test servlet.

Parameters:
url - URL of the JUnitEE test servlet

setThreaded

public void setThreaded(boolean threaded)

setFiltertrace

public void setFiltertrace(boolean filtertrace)

setHaltonfailure

public void setHaltonfailure(boolean value)
Tell the task how to handle test failures. If set to true, the task will stop execution if a test failure or error occurs. If set to false, the task will continue exectuion.

Parameters:
value - true, if the task should stop execution on test failures and errors

setHaltonerror

public void setHaltonerror(boolean value)
Tell the task how to handle errors. If set to true, the task will stop execution if an error occurs. If set to false, the task will continue exectuion.

Parameters:
value - true, if the task should stop execution on errors

setPrintsummary

public void setPrintsummary(boolean printSummary)
Tell the task to print a verbose test summary.


setErrorproperty

public void setErrorproperty(java.lang.String value)
Tell the task which property should be set in case of an error.

Parameters:
value - name of the property to set in case of an error

setFailureproperty

public void setFailureproperty(java.lang.String value)
Tell the task which property should be set in case of an error or test failure.

Parameters:
value - name of the property to set in case of an error or test failure

createTest

public JUnitEETest createTest()
Create a nested test element.

Returns:
new test element

addFormatter

public void addFormatter(FormatterElement formatter)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

execute

protected void execute(JUnitEETest test)
                throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException