| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.momeunit.ant.taskdefs.TestListTask
public class TestListTask
TestList task intended to set the specified property to the list of test
 cases to run. List of test cases is created based on given J2ME application
 or classes and/or java source files specified via test descriptions. Test
 cases included are classes and/or java source files that implement
 Test interface and/or match specified pattern.
 
 Tests can be described by using <testdir>,
 <tesjar> nested tags. <testlist>
 task is an implicit test and can be described using testdir,
 testtype and testjar attributes.
 
| Field Summary | |
|---|---|
static String | 
DEFAULT_CONFIGURATION
Default cldc version.  | 
static String | 
DEFAULT_PROFILE
Default midp version.  | 
static char | 
DEFAULT_TESTS_SEPARATOR
Default tests names separator.  | 
| 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 | |
|---|---|
TestListTask()
Creates testlist task.  | 
|
| Method Summary | |
|---|---|
 org.apache.tools.ant.types.Path | 
createClassPath()
Returns created classpsth,  | 
 Compiler | 
createCompiler()
Creates compiler.  | 
 TestDir | 
createTestDir()
Creates testdir tag. | 
 TestJar | 
createTestJar()
Creates testjar tag. | 
 void | 
execute()
Executes task.  | 
 String | 
getPattern(String pattern)
Returns given pattern or defaultpattern | 
 void | 
setAppJar(File appJar)
Sets jar file of J2ME application to scan for test cases  | 
 void | 
setClassPath(org.apache.tools.ant.types.Path classpath)
Adds path to classpath.  | 
 void | 
setConfig(String cldc)
Sets CLDC version to use.  | 
 void | 
setDefPattern(String pattern)
Sets default pattern to use.  | 
 void | 
setOnlyTests(boolean onlyTests)
Sets flag that indicates whether to include only classes from implicit test that implement Test interface. | 
 void | 
setPattern(String pattern)
Sets pattern to refine list of test cases of implicit test.  | 
 void | 
setProfile(String midp)
Sets MIDP version to use.  | 
 void | 
setProperty(String property)
Sets name of property to set to list of tests.  | 
 void | 
setSeparator(char separator)
Sets separator used to separate tests in the list.  | 
 void | 
setTestDir(File testDir)
Sets root directory of files to be scanned for test cases.  | 
 void | 
setTestJar(File testJar)
Sets jar file to be scanned for test cases.  | 
 void | 
setTestType(String testType)
Sets type of files specified by testdir attribute.  | 
 void | 
setTmpDir(File dir)
Sets temporary directory.  | 
 void | 
setWtkHome(File dir)
Sets WTK home directory.  | 
| 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 | 
| Field Detail | 
|---|
public static final char DEFAULT_TESTS_SEPARATOR
public static final String DEFAULT_CONFIGURATION
public static final String DEFAULT_PROFILE
| Constructor Detail | 
|---|
public TestListTask()
| Method Detail | 
|---|
public void execute()
             throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.execute()public void setTmpDir(File dir)
dir - temporary directory.public void setWtkHome(File dir)
dir - WTK home directory.public void setClassPath(org.apache.tools.ant.types.Path classpath)
classpath - path to add to classpath.public org.apache.tools.ant.types.Path createClassPath()
Path.public Compiler createCompiler()
public void setDefPattern(String pattern)
pattern - the default pattern to use.public void setPattern(String pattern)
pattern - the pattern to set.public void setTestDir(File testDir)
testDir - directory of files to be scanned for test cases.public void setTestJar(File testJar)
testJar - jar file to be scanned for test casespublic void setTestType(String testType)
testType - type of files specified by testdir attributepublic void setAppJar(File appJar)
appJar - the appJar file to set.public String getPattern(String pattern)
defaultpattern if given is null.
- Parameters:
 pattern - pattern to test for nullability.
- Returns:
 - the pattern to use, either given or default.
 - Since:
 
  - 1.1
 
 
public TestDir createTestDir()
testdir tag.
testdir tag.public TestJar createTestJar()
testjar tag.
testjar tag.public void setOnlyTests(boolean onlyTests)
Test interface.
onlyTests - the onlyTests to set.public void setProperty(String property)
property - name of property to set to list of tests.public void setSeparator(char separator)
separator - character used to separate tests in the list.public void setConfig(String cldc)
cldc - CLDC version to use.public void setProfile(String midp)
midp - MIDP version to use.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||