org.apache.tools.ant.taskdefs.optional

Class Test


public class Test
extends Java

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

Nested Class Summary

protected static class
Test.TestletEntry
testlet to run

Field Summary

protected Vector
m_tests

Fields inherited from class org.apache.tools.ant.taskdefs.Java

redirector, redirectorElement

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()
Sole constructor.

Method Summary

Test.TestletEntry
createTestlet()
add a declaration of a testlet to run
void
execute()
Do the execution.
void
setForceShowTrace(boolean forceShowTrace)
void
setShowBanner(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

addAssertions, addConfiguredRedirector, addEnv, addSysproperty, addSyspropertyset, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, execute, executeJava, getCommandLine, getSysProperties, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setDir, setError, setErrorProperty, setFailonerror, setFork, setInput, setInputString, setJVMVersion, setJar, setJvm, setJvmargs, setLogError, setMaxmemory, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSpawn, setTimeout, setupRedirector

Methods inherited from class org.apache.tools.ant.Task

execute, 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, log, log, setProject

Field Details

m_tests

protected Vector m_tests

Constructor Details

Test

public Test()
Sole constructor.

Method Details

createTestlet

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

execute

public void execute()
            throws BuildException
Do the execution.
Overrides:
execute in interface Java
Throws:
BuildException - if failOnError is set to true and the application returns a non 0 result code

setForceShowTrace

public void setForceShowTrace(boolean forceShowTrace)

setShowBanner

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

setShowSuccess

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

setShowTrace

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

Copyright B) 2000-2008 Apache Software Foundation. All Rights Reserved.