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.FilterableTestSuitethat 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
Constructors Constructor Description GroupedTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountTestCases()voidfilter(org.junit.runner.manipulation.Filter filter)voidrun(junit.framework.TestResult result)protected voidrunGroupedTests(junit.framework.TestResult result)Executes the nested tests.protected voidsetUp()protected voidtearDown()
-
-
-
Method Detail
-
countTestCases
public int countTestCases()
- Specified by:
countTestCasesin interfacejunit.framework.Test- Overrides:
countTestCasesin classjunit.framework.TestSuite
-
run
public void run(junit.framework.TestResult result)
- Specified by:
runin interfacejunit.framework.Test- Overrides:
runin classjunit.framework.TestSuite
-
runGroupedTests
protected void runGroupedTests(junit.framework.TestResult result) throws ExceptionExecutes the nested tests.- Throws:
Exception
-
filter
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException- Specified by:
filterin interfaceorg.junit.runner.manipulation.Filterable- Throws:
org.junit.runner.manipulation.NoTestsRemainException
-
-