站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

MultiTestSuite (NB JUnit) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.nbjunit/1 1.41

org.netbeans.junit
Class MultiTestSuite

java.lang.Object
  extended by junit.framework.TestSuite
      extended by org.netbeans.junit.NbTestSuite
          extended by org.netbeans.junit.MultiTestSuite
All Implemented Interfaces:
junit.framework.Test, NbTest
Direct Known Subclasses:
ParametricTestSuite

public abstract class MultiTestSuite
extends NbTestSuite


Constructor Summary
MultiTestSuite()
          Creates a new instance of MultiTestSuite
MultiTestSuite(String name)
          Constructs a MultiTestSuite with the given name.
 
Method Summary
 void cleanup()
          The method is called after executing tests.
protected abstract  MultiTestCase nextTestCase()
          Factory method returns a new instance of a testcases.
 void prepare()
          The method is called before executing tests.
 void run(junit.framework.TestResult result)
          Runs the tests and collects their result in a TestResult.
protected  void runAllTests(junit.framework.TestResult result)
          Creates all testcases and runs them.
 
Methods inherited from class org.netbeans.junit.NbTestSuite
addTest, addTestSuite, canRun, getExpectedFail, linearSpeedSuite, setFilter, speedSuite
 
Methods inherited from class junit.framework.TestSuite
countTestCases, createTest, getName, getTestConstructor, runTest, setName, testAt, testCount, tests, toString, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface junit.framework.Test
countTestCases
 

Constructor Detail

MultiTestSuite

public MultiTestSuite()
Creates a new instance of MultiTestSuite


MultiTestSuite

public MultiTestSuite(String name)
Constructs a MultiTestSuite with the given name.

Method Detail

nextTestCase

protected abstract MultiTestCase nextTestCase()
Factory method returns a new instance of a testcases. Should return null if there are no more testcases to be executed.


run

public void run(junit.framework.TestResult result)
Runs the tests and collects their result in a TestResult.

Specified by:
run in interface junit.framework.Test
Overrides:
run in class junit.framework.TestSuite

runAllTests

protected void runAllTests(junit.framework.TestResult result)
Creates all testcases and runs them.


prepare

public void prepare()
The method is called before executing tests. Can be overridden to perform preliminary actions.


cleanup

public void cleanup()
The method is called after executing tests. Can be overridden to perform closing actions.


org.netbeans.modules.nbjunit/1 1.41

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.