Class 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 Detail

      • GroupedTest

        public GroupedTest()
    • Method Detail

      • countTestCases

        public int countTestCases()
        Specified by:
        countTestCases in interface junit.framework.Test
        Overrides:
        countTestCases in class junit.framework.TestSuite
      • run

        public void run​(junit.framework.TestResult result)
        Specified by:
        run in interface junit.framework.Test
        Overrides:
        run in class junit.framework.TestSuite
      • runGroupedTests

        protected void runGroupedTests​(junit.framework.TestResult result)
                                throws Exception
        Executes the nested tests.
        Throws:
        Exception
      • filter

        public void filter​(org.junit.runner.manipulation.Filter filter)
                    throws org.junit.runner.manipulation.NoTestsRemainException
        Specified by:
        filter in interface org.junit.runner.manipulation.Filterable
        Throws:
        org.junit.runner.manipulation.NoTestsRemainException