public class FuncTestSuite extends Object implements junit.framework.Test
Constructor and Description |
---|
FuncTestSuite() |
Modifier and Type | Method and Description |
---|---|
FuncTestSuite |
addBundledPlugins2Only(Class<? extends junit.framework.TestCase> testCaseClass)
This will add the test class into the suite as a bundled plugins 2.0 test only.
|
FuncTestSuite |
addSingleRunTest(Class<? extends junit.framework.TestCase> testCaseClass) |
FuncTestSuite |
addTest(Class<? extends junit.framework.TestCase> testCaseClass)
This will add the test class into the suite.
|
FuncTestSuite |
addTests(Collection<Class<? extends junit.framework.TestCase>> testCaseClasses)
This will add a collection of test classes into the suite as a STANDARD, PROFESSIONAL and ENTERPRISE tests.
|
FuncTestSuite |
addTestsInPackage(String packageName,
boolean recursive) |
FuncTestSuite |
addTestsInPackageBundledPluginsOnly(String packageName,
boolean recursive) |
FuncTestSuite |
addTestSuite(FuncTestSuite funcTestSuite)
This will add the tests from the passed in FuncTestSuite to this suite, respecting the various editions and
ensuring that tests are not added twice.
|
FuncTestSuite |
addTpmLdapOnly(Class<? extends junit.framework.TestCase> testCaseClass) |
int |
countTestCases() |
protected TestSuiteBuilder |
createFuncTestBuilder() |
junit.framework.Test |
createTest()
This gets the suite of Tests based on the func test settings that you currently have.
|
junit.framework.Test |
createTest(JIRAEnvironmentData environment)
This gets the suite of Tests based on the passed environment.
|
Set<Class<? extends junit.framework.TestCase>> |
getAllTests() |
Set<Class<? extends junit.framework.TestCase>> |
getBundledPlugins2Tests() |
Set<Class<? extends junit.framework.TestCase>> |
getFuncTests() |
Set<Class<? extends junit.framework.TestCase>> |
getSingleRunTests() |
Set<Class<? extends junit.framework.TestCase>> |
getTests(JIRAEnvironmentData environmentData)
Returns a set of test classes that are deemed as test that should run on based on the JIRA edition inside the
JIRAEnvironmentData object.
|
Set<Class<? extends junit.framework.TestCase>> |
getTpmLdapTests() |
void |
run(junit.framework.TestResult result) |
public junit.framework.Test createTest()
public junit.framework.Test createTest(JIRAEnvironmentData environment)
environment
- the environment to used to select the tests.public Set<Class<? extends junit.framework.TestCase>> getTests(JIRAEnvironmentData environmentData)
environmentData
- the edition to use is in hereprotected TestSuiteBuilder createFuncTestBuilder()
public Set<Class<? extends junit.framework.TestCase>> getFuncTests()
public Set<Class<? extends junit.framework.TestCase>> getBundledPlugins2Tests()
public FuncTestSuite addBundledPlugins2Only(Class<? extends junit.framework.TestCase> testCaseClass)
testCaseClass
- the test case class to addpublic FuncTestSuite addTpmLdapOnly(Class<? extends junit.framework.TestCase> testCaseClass)
public FuncTestSuite addSingleRunTest(Class<? extends junit.framework.TestCase> testCaseClass)
public FuncTestSuite addTest(Class<? extends junit.framework.TestCase> testCaseClass)
testCaseClass
- the test case class to addpublic FuncTestSuite addTests(Collection<Class<? extends junit.framework.TestCase>> testCaseClasses)
testCaseClasses
- a collection of test case classespublic FuncTestSuite addTestsInPackage(String packageName, boolean recursive)
public FuncTestSuite addTestsInPackageBundledPluginsOnly(String packageName, boolean recursive)
public FuncTestSuite addTestSuite(FuncTestSuite funcTestSuite)
funcTestSuite
- the FuncTestSuite to copy test classes frompublic int countTestCases()
countTestCases
in interface junit.framework.Test
public void run(junit.framework.TestResult result)
run
in interface junit.framework.Test
Copyright © 2002-2015 Atlassian. All Rights Reserved.