Package org.jvnet.hudson.test.junit
Class GroupedTest
java.lang.Object
junit.framework.TestSuite
org.jvnet.hudson.test.junit.GroupedTest
- All Implemented Interfaces:
junit.framework.Test
,org.junit.runner.manipulation.Filterable
public class GroupedTest
extends junit.framework.TestSuite
implements org.junit.runner.manipulation.Filterable
TestSuite
that requires some set up and tear down for executing nested tests.
The failure in the set up or tear down will be reported as a failure.
- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
void
filter
(org.junit.runner.manipulation.Filter filter) void
run
(junit.framework.TestResult result) protected void
runGroupedTests
(junit.framework.TestResult result) Executes the nested tests.protected void
setUp()
protected void
tearDown()
Methods inherited from class junit.framework.TestSuite
addTest, addTestSuite, createTest, getName, getTestConstructor, runTest, setName, testAt, testCount, tests, toString, warning
-
Constructor Details
-
GroupedTest
public GroupedTest()
-
-
Method Details
-
countTestCases
public int countTestCases()- Specified by:
countTestCases
in interfacejunit.framework.Test
- Overrides:
countTestCases
in classjunit.framework.TestSuite
-
run
public void run(junit.framework.TestResult result) - Specified by:
run
in interfacejunit.framework.Test
- Overrides:
run
in classjunit.framework.TestSuite
-
runGroupedTests
Executes the nested tests.- Throws:
Exception
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
filter
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException - Specified by:
filter
in interfaceorg.junit.runner.manipulation.Filterable
- Throws:
org.junit.runner.manipulation.NoTestsRemainException
-