Google

Test (Apache Ant API)

org.apache.tools.ant.taskdefs.optional
Class Test


java.lang.Object

  |

  +--org.apache.tools.ant.ProjectComponent

        |

        +--org.apache.tools.ant.Task

              |

              +--org.apache.tools.ant.taskdefs.Java

                    |

                    +--org.apache.tools.ant.taskdefs.optional.Test


public class Test
extends Java

This is a primitive task to execute a unit test in the org.apache.testlet framework.

Author:
Peter Donald

Nested Class Summary
protected static class Test.TestletEntry
          testlet to run
 
Field Summary
protected  java.util.Vector m_tests
           
 
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
Test()
           
 
Method Summary
 Test.TestletEntry createTestlet()
          add a declaration of a testlet to run
 void execute()
          Do the execution.
 void setForceShowTrace(boolean forceShowTrace)
           
 void setShowBanner(java.lang.String showBanner)
          a boolean value indicating whether a banner should be displayed when starting testlet engine; optional.
 void setShowSuccess(boolean showSuccess)
          a boolean value indicating whether tests should display a message on success; optional
 void setShowTrace(boolean showTrace)
          a boolean indicating that a stack trace is displayed on error (but not normal failure); optional.
 
Methods inherited from class org.apache.tools.ant.taskdefs.Java
addEnv, addSysproperty, clearArgs, createArg, createClasspath, createJvmarg, createWatchdog, executeJava, handleErrorOutput, handleOutput, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setDir, setFailonerror, setFork, setJar, setJvm, setJvmargs, setJVMVersion, setMaxmemory, setNewenvironment, setOutput, setTimeout
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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
 

Field Detail

m_tests


protected java.util.Vector m_tests
Constructor Detail

Test


public Test()
Method Detail

createTestlet


public Test.TestletEntry createTestlet()
add a declaration of a testlet to run


setShowSuccess


public void setShowSuccess(boolean showSuccess)
a boolean value indicating whether tests should display a message on success; optional


setShowBanner


public void setShowBanner(java.lang.String showBanner)
a boolean value indicating whether a banner should be displayed when starting testlet engine; optional.


setShowTrace


public void setShowTrace(boolean showTrace)
a boolean indicating that a stack trace is displayed on error (but not normal failure); optional.


setForceShowTrace


public void setForceShowTrace(boolean forceShowTrace)

execute


public void execute()
             throws BuildException
Description copied from class: Java
Do the execution.

Overrides:
execute in class Java
Throws:
BuildException - if something goes wrong with the build


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.