|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.functest.framework.FuncTestSuite
public class FuncTestSuite
A base class for JIRA functional test suites. It handles TestCase classes and ensures that a test instance is never added more than once. It also keeps track of the various JIRA editions and what test should run within them.
Under the covers it uses LinkedHashSets which means the test are maintained in "insertion order" but not test is returned more than once.
Constructor Summary | |
---|---|
FuncTestSuite()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FuncTestSuite()
Method Detail |
---|
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 here
protected TestSuiteBuilder createFuncTestBuilder()
public Set<Class<? extends junit.framework.TestCase>> getFuncTests()
public Set<Class<? extends junit.framework.TestCase>> getBundledPlugins2Tests()
public Set<Class<? extends junit.framework.TestCase>> getTpmLdapTests()
public Set<Class<? extends junit.framework.TestCase>> getSingleRunTests()
public Set<Class<? extends junit.framework.TestCase>> getAllTests()
public FuncTestSuite addBundledPlugins2Only(Class<? extends junit.framework.TestCase> testCaseClass)
testCaseClass
- the test case class to add
public 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 add
public FuncTestSuite addTests(Collection<Class<? extends junit.framework.TestCase>> testCaseClasses)
testCaseClasses
- a collection of test case classes
public 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 from
public int countTestCases()
countTestCases
in interface junit.framework.Test
public void run(junit.framework.TestResult result)
run
in interface junit.framework.Test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |