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

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

org.netbeans.modules.nbjunit/1 1.41

org.netbeans.junit
Class ParametricTestSuite

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

public abstract class ParametricTestSuite
extends MultiTestSuite

Extension to MultiTestSuite class. Performs automatic creation and running all testcases predefined with parameters.


Constructor Summary
ParametricTestSuite()
          Creates a new instance of ParametricTestSuite
ParametricTestSuite(String name)
          Constructs a ParametricTestSuite with the given name.
 
Method Summary
protected abstract  ParametricTestCase[] cases(Object parameter)
          Returns an array of testcases for the given parameter.
protected abstract  Object[] getParameters()
          Returns an array of parameters for this suite.
protected  MultiTestCase nextTestCase()
          Factory method returns a new instance of a testcases.
protected  void runAllTests(junit.framework.TestResult result)
          Creates all testcases and runs them.
 
Methods inherited from class org.netbeans.junit.MultiTestSuite
cleanup, prepare, run
 
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

ParametricTestSuite

public ParametricTestSuite()
Creates a new instance of ParametricTestSuite


ParametricTestSuite

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

Method Detail

cases

protected abstract ParametricTestCase[] cases(Object parameter)
Returns an array of testcases for the given parameter.


getParameters

protected abstract Object[] getParameters()
Returns an array of parameters for this suite.


nextTestCase

protected final MultiTestCase nextTestCase()
Factory method returns a new instance of a testcases. Overrides the basic method so that it's needless any more.

Specified by:
nextTestCase in class MultiTestSuite

runAllTests

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

Overrides:
runAllTests in class MultiTestSuite

org.netbeans.modules.nbjunit/1 1.41

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