|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITestCases
The interface implemented for any class containing test cases.
To use the test framework (loosely based on junit) create a subclass of TestBase
.
To start a test run use:
TestRunner tr = new TestRunner();
tr.run(new [your test class]());
Each test case is a public void
method in your test class with a name of the form testnn()
,
where nn is the test number in the range 00 to, currently, 29. Methods are run in numerical order.
To run just one test case override runOnly()
To start running from a test case other than 00 override runFrom()
Also see TestBase.out(String)
, TestBase.outHex(String, int)
, setUp()
and tearDown()
for other methods that can be usefully overridden.
Method Summary | |
---|---|
int |
runFrom()
Override this method to select the first test to be run. |
int |
runOnly()
Override this method to specify a single test to be run |
void |
setRunner(TestRunner runner)
Don't implement this method in your test class |
void |
setUp()
Implement this method in your test class to define behaviour run before each test. |
void |
tearDown()
Implement this method in your test class to define behaviour run after each test. |
void |
test00()
|
void |
test01()
|
void |
test02()
|
void |
test03()
|
void |
test04()
|
void |
test05()
|
void |
test06()
|
void |
test07()
|
void |
test08()
|
void |
test09()
|
void |
test10()
|
void |
test11()
|
void |
test12()
|
void |
test13()
|
void |
test14()
|
void |
test15()
|
void |
test16()
|
void |
test17()
|
void |
test18()
|
void |
test19()
|
void |
test20()
|
void |
test21()
|
void |
test22()
|
void |
test23()
|
void |
test24()
|
void |
test25()
|
void |
test26()
|
void |
test27()
|
void |
test28()
|
void |
test29()
|
int[] |
testsToBeRun()
Override this method to select a set of tests to run |
Method Detail |
---|
void setUp() throws Exception
Exception
void tearDown() throws Exception
Exception
void test00() throws Exception
Exception
void test01() throws Exception
Exception
void test02() throws Exception
Exception
void test03() throws Exception
Exception
void test04() throws Exception
Exception
void test05() throws Exception
Exception
void test06() throws Exception
Exception
void test07() throws Exception
Exception
void test08() throws Exception
Exception
void test09() throws Exception
Exception
void test10() throws Exception
Exception
void test11() throws Exception
Exception
void test12() throws Exception
Exception
void test13() throws Exception
Exception
void test14() throws Exception
Exception
void test15() throws Exception
Exception
void test16() throws Exception
Exception
void test17() throws Exception
Exception
void test18() throws Exception
Exception
void test19() throws Exception
Exception
void test20() throws Exception
Exception
void test21() throws Exception
Exception
void test22() throws Exception
Exception
void test23() throws Exception
Exception
void test24() throws Exception
Exception
void test25() throws Exception
Exception
void test26() throws Exception
Exception
void test27() throws Exception
Exception
void test28() throws Exception
Exception
void test29() throws Exception
Exception
void setRunner(TestRunner runner)
runner
- The test runner that is running these testsint runFrom()
int[] testsToBeRun()
int runOnly()
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |