public abstract class RecursiveTestSuiteBuilder
extends java.lang.Object
Helper class that builds test suite content based on a class file location
| Constructor and Description |
|---|
RecursiveTestSuiteBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static void |
build(java.lang.Class<?>[] classInPackages,
junit.framework.TestSuite rootSuite)
Builds all recursive test suites starting in the directories of the given
<code>classInPackages</code>
|
static void |
build(java.lang.Class<?> classInPackage,
junit.framework.TestSuite rootSuite)
Builds all recursive test suites starting in the directory of the given
<code>classInPackage</code>
|
static void |
build(int prefixLength,
java.lang.String basePackage,
java.io.File currentDir,
java.io.FilenameFilter filter,
junit.framework.TestSuite rootSuite)
Builds all recursive test suites for the given <code>rootSuite</code>
|
static java.io.FilenameFilter |
getFilenameFilter() |
public static java.io.FilenameFilter getFilenameFilter()
public static void build(java.lang.Class<?>[] classInPackages,
junit.framework.TestSuite rootSuite)
throws java.lang.Exception
Builds all recursive test suites starting in the directories of the given <code>classInPackages</code>
classInPackages - class array used to get those packagesrootSuite - the root test suitejava.lang.Exception - if the the suite could not be builtpublic static void build(java.lang.Class<?> classInPackage,
junit.framework.TestSuite rootSuite)
throws java.lang.Exception
Builds all recursive test suites starting in the directory of the given <code>classInPackage</code>
classInPackage - specifies a class file to get the package forrootSuite - the root test suitejava.lang.Exception - if the the suite could not be builtpublic static void build(int prefixLength,
java.lang.String basePackage,
java.io.File currentDir,
java.io.FilenameFilter filter,
junit.framework.TestSuite rootSuite)
throws java.lang.Exception
Builds all recursive test suites for the given <code>rootSuite</code>
prefixLength - the length of the prefixbasePackage - the base package namecurrentDir - the current directoryfilter - a file name filterrootSuite - the root test suitejava.lang.Exception - if the the suite could not be built