|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.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 ITestCasespublic int runFrom()
ITestCases
runFrom in interface ITestCasespublic int[] testsToBeRun()
ITestCases
testsToBeRun in interface ITestCases
public void setUp()
throws Exception
ITestCases
setUp in interface ITestCasesException
public void tearDown()
throws Exception
ITestCases
tearDown in interface ITestCasesException
public void test00()
throws Exception
test00 in interface ITestCasesException
public void test01()
throws Exception
test01 in interface ITestCasesException
public void test02()
throws Exception
test02 in interface ITestCasesException
public void test03()
throws Exception
test03 in interface ITestCasesException
public void test04()
throws Exception
test04 in interface ITestCasesException
public void test05()
throws Exception
test05 in interface ITestCasesException
public void test06()
throws Exception
test06 in interface ITestCasesException
public void test07()
throws Exception
test07 in interface ITestCasesException
public void test08()
throws Exception
test08 in interface ITestCasesException
public void test09()
throws Exception
test09 in interface ITestCasesException
public void test10()
throws Exception
test10 in interface ITestCasesException
public void test11()
throws Exception
test11 in interface ITestCasesException
public void test12()
throws Exception
test12 in interface ITestCasesException
public void test13()
throws Exception
test13 in interface ITestCasesException
public void test14()
throws Exception
test14 in interface ITestCasesException
public void test15()
throws Exception
test15 in interface ITestCasesException
public void test16()
throws Exception
test16 in interface ITestCasesException
public void test17()
throws Exception
test17 in interface ITestCasesException
public void test18()
throws Exception
test18 in interface ITestCasesException
public void test19()
throws Exception
test19 in interface ITestCasesException
public void test20()
throws Exception
test20 in interface ITestCasesException
public void test21()
throws Exception
test21 in interface ITestCasesException
public void test22()
throws Exception
test22 in interface ITestCasesException
public void test23()
throws Exception
test23 in interface ITestCasesException
public void test24()
throws Exception
test24 in interface ITestCasesException
public void test25()
throws Exception
test25 in interface ITestCasesException
public void test26()
throws Exception
test26 in interface ITestCasesException
public void test27()
throws Exception
test27 in interface ITestCasesException
public void test28()
throws Exception
test28 in interface ITestCasesException
public void test29()
throws Exception
test29 in interface ITestCasesExceptionpublic void setRunner(TestRunner runner)
ITestCases
setRunner in interface ITestCasesrunner - The test runner that is running these testsprotected void out(String msg)
msg - the message to print
protected void outHex(String msg,
int value)
msg - the messagevalue - the hex value
protected void assertAlmostEqual(String message,
long expected,
long actual,
long delta)
protected boolean areAlmostEqual(long expected,
long actual,
long delta)
|
SunSPOT API V4.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||