org.apache.cactus.integration.maven
Class CactusScanner
java.lang.Object
org.apache.cactus.integration.maven.CactusScanner
public class CactusScanner
- extends java.lang.Object
Process FileSet
and extracts classes that are Cactus tests. As
a Cactus test can be a simple JUnit test case wrapped in a Cactus suite,
it is very difficult to find out only Cactus tests. Thus, in this version,
we are only finding JUnit tests.
A class is considered to be a JUnit Test Case if:
- It extends
TestCase
- It is not abstract
- It has at least one method that starts with "test", returns void and
takes no parameters
- Version:
- $Id: CactusScanner.java 238815 2004-02-29 16:34:44Z vmassol $
Method Summary |
void |
clear()
Remove all Cactus class names that were found in the Fileset . |
java.util.Iterator |
iterator()
|
void |
processFileSet(org.apache.tools.ant.types.FileSet theFileset,
org.apache.tools.ant.types.Path theClasspath)
Finds the Cactus test cases from a list of files. |
void |
setProject(org.apache.tools.ant.Project theProject)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CactusScanner
public CactusScanner()
setProject
public void setProject(org.apache.tools.ant.Project theProject)
- Parameters:
theProject
- the Ant project that is currently executing
clear
public void clear()
- Remove all Cactus class names that were found in the
Fileset
.
iterator
public java.util.Iterator iterator()
- Returns:
- the list of valid Cactus test cases
processFileSet
public void processFileSet(org.apache.tools.ant.types.FileSet theFileset,
org.apache.tools.ant.types.Path theClasspath)
- Finds the Cactus test cases from a list of files.
- Parameters:
theFileset
- the list of files in which to look for Cactus teststheClasspath
- the classpaths needed to load the test classes
Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.