|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task net.dpml.tools.tasks.GenericTask net.dpml.tools.tasks.JUnitTestTask
public class JUnitTestTask
JUnit test execution.
Field Summary | |
---|---|
static String |
ABORT_ON_ERROR_KEY
Constant test abort on error key - if true (the default) the build will fail if a test error occurs. |
static String |
ABORT_ON_FAILURE_KEY
Constant test abort on failure key - if true (the default) the build will fail if a test failure occurs. |
static String |
CACHE_PATH_KEY
Constant cache path key. |
static String |
DEBUG_KEY
Constant test debug key. |
static String |
FORK_KEY
Constant test fork key. |
static String |
HALT_ON_ERROR_KEY
Constant test halt-on-error key (default is false). |
static String |
HALT_ON_FAILURE_KEY
Constant test halt-on-failure key (default is false). |
static String |
MX_KEY
Constant for lookup of mx value. |
static String |
TEST_ENABLED_KEY
Constant test enabled key. |
static String |
TEST_ENV_KEY
Constant test env directory key. |
static String |
TEST_EXCLUDES_KEY
the key for the exclude pattern for test cases |
static String |
TEST_EXCLUDES_VALUE
default value |
static String |
TEST_FORK_MODE_KEY
Constant test fork mode key. |
static String |
TEST_INCLUDES_KEY
the key for the include pattern for test cases |
static String |
TEST_INCLUDES_VALUE
default value |
static String |
TEST_SRC_KEY
Constant test src directory key. |
static String |
VERBOSE_KEY
the key for the exclude pattern for test cases |
static String |
WORK_DIR_KEY
Constant work dir key. |
Fields inherited from class net.dpml.tools.tasks.GenericTask |
---|
ASC_EXT, GPG_EXE_KEY, MD5_EXT |
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 | |
---|---|
JUnitTestTask()
|
Method Summary | |
---|---|
void |
execute()
Task execution. |
void |
init()
Task initialization. |
void |
setClasspath(Path path)
Set the classpath. |
void |
setClasspathRef(String id)
Set the id of the compilation classpath. |
void |
setSrc(File source)
Set the directory containing the unit test source files. |
Methods inherited from class net.dpml.tools.tasks.GenericTask |
---|
asc, checksum, copy, deleteDir, getContext, getLibrary, getResource, isInitialized, mkDir |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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 |
Field Detail |
---|
public static final String MX_KEY
public static final String TEST_ENABLED_KEY
public static final String TEST_SRC_KEY
public static final String TEST_ENV_KEY
public static final String DEBUG_KEY
public static final String FORK_KEY
public static final String TEST_FORK_MODE_KEY
public static final String HALT_ON_ERROR_KEY
public static final String HALT_ON_FAILURE_KEY
public static final String ABORT_ON_ERROR_KEY
public static final String ABORT_ON_FAILURE_KEY
public static final String CACHE_PATH_KEY
public static final String WORK_DIR_KEY
public static final String TEST_INCLUDES_KEY
public static final String TEST_INCLUDES_VALUE
public static final String TEST_EXCLUDES_KEY
public static final String TEST_EXCLUDES_VALUE
public static final String VERBOSE_KEY
Constructor Detail |
---|
public JUnitTestTask()
Method Detail |
---|
public void init() throws BuildException
init
in class GenericTask
BuildException
- if a build error occurs.public void setClasspathRef(String id)
id
- the classpath referencepublic void setClasspath(Path path)
path
- the classpathpublic void setSrc(File source)
source
- the test source directorypublic void execute() throws BuildException
execute
in class Task
BuildException
- if a build error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |