|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejosunit.framework.Assert lejosunit.framework.TestCase lejosunit.tests.AssertTest
Test class for the Assert class and all the assert methods.
Constructor Summary | |
AssertTest(java.lang.String name)
Constructor to create a test case. |
Method Summary | |
static void |
main(java.lang.String[] args)
Main program to start the TestRunner at RCX. |
protected void |
runTest()
Run one test. |
static Test |
suite()
Suite method to get all tests to run. |
void |
testAssertionFailures()
Tests situations, whereas lejosunit should indicate an assertion. |
void |
testErrors()
Tests situations, whereas lejosunit should indicate an error. |
void |
testExceptionPriority()
Test, whether exceptions will be handled in the correct way: first should assertion failed error be raisen. |
void |
testFailArgs()
Test, whether fail with arguments will work. |
void |
testFailNoArgs()
Test, whether fail will work. |
void |
testLongs()
Tests longs in combination with strings. |
void |
testOK()
tests a lot of situations, whereas lejosunit should indicate a correct execution. |
Methods inherited from class lejosunit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, setUp, tearDown, toString |
Methods inherited from class lejosunit.framework.Assert |
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, failNotEquals, failSame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AssertTest(java.lang.String name)
name
- the nane of the test caseMethod Detail |
public static void main(java.lang.String[] args)
args
- will be ignoredpublic static Test suite()
protected void runTest() throws java.lang.Throwable
runTest
in class TestCase
java.lang.Throwable
- a general errorpublic void testOK()
public void testLongs()
public void testAssertionFailures()
public void testErrors()
public void testFailNoArgs()
public void testFailArgs()
public void testExceptionPriority()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |