|
org.netbeans.modules.nbjunit/1 1.41 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.TestSuite
org.netbeans.junit.NbTestSuite
public class NbTestSuite
NetBeans extension to JUnit's TestSuite class.
Constructor Summary | |
---|---|
NbTestSuite()
Constructs an empty TestSuite. |
|
NbTestSuite(Class theClass)
Constructs a TestSuite from the given class. |
|
NbTestSuite(String name)
Constructs an empty TestSuite. |
Method Summary | |
---|---|
void |
addTest(junit.framework.Test test)
Adds a test to the suite. |
void |
addTestSuite(Class testClass)
adds a test suite to this test suite |
boolean |
canRun()
Checks if a test isn't filtered out by the active filter. |
String |
getExpectedFail()
Returns expected fail message. |
static NbTestSuite |
linearSpeedSuite(Class clazz,
int slowness,
int repeat)
Factory method to create a special execution suite that not only executes the tests but also measures the times each execution took. |
void |
setFilter(Filter filter)
Sets active filter. |
static NbTestSuite |
speedSuite(Class clazz,
int slowness,
int repeat)
Factory method to create a special execution suite that not only executes the tests but also measures the times each execution took. |
Methods inherited from class junit.framework.TestSuite |
---|
countTestCases, createTest, getName, getTestConstructor, run, 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, run |
Constructor Detail |
---|
public NbTestSuite()
public NbTestSuite(Class theClass)
public NbTestSuite(String name)
Method Detail |
---|
public void addTest(junit.framework.Test test)
addTest
in class junit.framework.TestSuite
public void addTestSuite(Class testClass)
addTestSuite
in class junit.framework.TestSuite
public void setFilter(Filter filter)
filter
- Filter to be set as active for current test, null will reset filtering.public boolean canRun()
public String getExpectedFail()
NbTest
getExpectedFail
in interface NbTest
public static NbTestSuite speedSuite(Class clazz, int slowness, int repeat)
clazz
- the class to create tests for (from methods starting with test)slowness
- this must be true: slowness * min < maxrepeat
- number of times to repeat the testpublic static NbTestSuite linearSpeedSuite(Class clazz, int slowness, int repeat)
clazz
- the class to create tests for (from methods starting with test)slowness
- this must be true: slowness * min < maxrepeat
- number of times to repeat the test
|
org.netbeans.modules.nbjunit/1 1.41 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |