org.jvnet.hudson.test.junit
Class GroupedTest

java.lang.Object
  extended by junit.framework.TestSuite
      extended by org.jvnet.hudson.test.junit.GroupedTest
All Implemented Interfaces:
junit.framework.Test

public class GroupedTest
extends junit.framework.TestSuite

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
GroupedTest()
           
 
Method Summary
 int countTestCases()
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 java.lang.Exception
Executes the nested tests.

Throws:
java.lang.Exception

setUp

protected void setUp()
              throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.