|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert com.sun.spot.testFramework.TestBase
public abstract class TestBase
The abstract superclass for any class containing test cases.
See ITestCases
for details of use.
Constructor Summary | |
---|---|
TestBase()
|
Method Summary | |
---|---|
protected boolean |
areAlmostEqual(long expected,
long actual,
long delta)
|
protected void |
assertAlmostEqual(String message,
long expected,
long actual,
long delta)
|
protected void |
out(String msg)
Print out a message. |
protected void |
outHex(String msg,
int value)
Print out a message and a hexadecimal value |
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 |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestBase()
Method Detail |
---|
public int runOnly()
ITestCases
runOnly
in interface ITestCases
public int runFrom()
ITestCases
runFrom
in interface ITestCases
public int[] testsToBeRun()
ITestCases
testsToBeRun
in interface ITestCases
public void setUp() throws Exception
ITestCases
setUp
in interface ITestCases
Exception
public void tearDown() throws Exception
ITestCases
tearDown
in interface ITestCases
Exception
public void test00() throws Exception
test00
in interface ITestCases
Exception
public void test01() throws Exception
test01
in interface ITestCases
Exception
public void test02() throws Exception
test02
in interface ITestCases
Exception
public void test03() throws Exception
test03
in interface ITestCases
Exception
public void test04() throws Exception
test04
in interface ITestCases
Exception
public void test05() throws Exception
test05
in interface ITestCases
Exception
public void test06() throws Exception
test06
in interface ITestCases
Exception
public void test07() throws Exception
test07
in interface ITestCases
Exception
public void test08() throws Exception
test08
in interface ITestCases
Exception
public void test09() throws Exception
test09
in interface ITestCases
Exception
public void test10() throws Exception
test10
in interface ITestCases
Exception
public void test11() throws Exception
test11
in interface ITestCases
Exception
public void test12() throws Exception
test12
in interface ITestCases
Exception
public void test13() throws Exception
test13
in interface ITestCases
Exception
public void test14() throws Exception
test14
in interface ITestCases
Exception
public void test15() throws Exception
test15
in interface ITestCases
Exception
public void test16() throws Exception
test16
in interface ITestCases
Exception
public void test17() throws Exception
test17
in interface ITestCases
Exception
public void test18() throws Exception
test18
in interface ITestCases
Exception
public void test19() throws Exception
test19
in interface ITestCases
Exception
public void test20() throws Exception
test20
in interface ITestCases
Exception
public void test21() throws Exception
test21
in interface ITestCases
Exception
public void test22() throws Exception
test22
in interface ITestCases
Exception
public void test23() throws Exception
test23
in interface ITestCases
Exception
public void test24() throws Exception
test24
in interface ITestCases
Exception
public void test25() throws Exception
test25
in interface ITestCases
Exception
public void test26() throws Exception
test26
in interface ITestCases
Exception
public void test27() throws Exception
test27
in interface ITestCases
Exception
public void test28() throws Exception
test28
in interface ITestCases
Exception
public void test29() throws Exception
test29
in interface ITestCases
Exception
public void setRunner(TestRunner runner)
ITestCases
setRunner
in interface ITestCases
runner
- The test runner that is running these testsprotected void out(String msg)
msg
- the message to printprotected void outHex(String msg, int value)
msg
- the messagevalue
- the hex valueprotected void assertAlmostEqual(String message, long expected, long actual, long delta)
protected boolean areAlmostEqual(long expected, long actual, long delta)
|
SunSPOT API V3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |