|
org.netbeans.modules.nbjunit/1 1.75 | |||||||||
| 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<? extends junit.framework.TestCase> 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<? extends junit.framework.TestCase> 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<? extends junit.framework.TestCase> 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<? extends junit.framework.TestCase> 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<? extends junit.framework.TestCase> theClass)
public NbTestSuite(String name)
| Method Detail |
|---|
public void addTest(junit.framework.Test test)
addTest in class junit.framework.TestSuitepublic void addTestSuite(Class<? extends junit.framework.TestCase> testClass)
addTestSuite in class junit.framework.TestSuitepublic void setFilter(Filter filter)
setFilter in interface NbTestfilter - Filter to be set as active for current test, null will reset filtering.public boolean canRun()
canRun in interface NbTestpublic String getExpectedFail()
NbTest
getExpectedFail in interface NbTest
public static NbTestSuite speedSuite(Class<? extends junit.framework.TestCase> 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
public static NbTestSuite linearSpeedSuite(Class<? extends junit.framework.TestCase> 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.75 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||