lejosunit.tests
Class FloatAssertTest

java.lang.Object
  extended bylejosunit.framework.Assert
      extended bylejosunit.framework.TestCase
          extended bylejosunit.tests.AssertTest
              extended bylejosunit.tests.FloatAssertTest
All Implemented Interfaces:
Test

public class FloatAssertTest
extends AssertTest

Test class for the FloatAssert class and all the assert methods.

Author:
Jochen Hiller

Constructor Summary
FloatAssertTest(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 failure.
 void testOK()
          Test to check the successful assert functionality.
 
Methods inherited from class lejosunit.tests.AssertTest
testErrors, testExceptionPriority, testFailArgs, testFailNoArgs, testLongs
 
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

FloatAssertTest

public FloatAssertTest(java.lang.String name)
Constructor to create a test case.

Parameters:
name - the nane of the test case
Method Detail

main

public static void main(java.lang.String[] args)
Main program to start the TestRunner at RCX

Parameters:
args - will be ignored

suite

public static Test suite()
Suite method to get all tests to run.

Returns:
the whole test suite

runTest

protected void runTest()
                throws java.lang.Throwable
Run one test. Do the dispatch here.

Overrides:
runTest in class AssertTest
Throws:
java.lang.Throwable - a general error

testOK

public void testOK()
Test to check the successful assert functionality.

Overrides:
testOK in class AssertTest

testAssertionFailures

public void testAssertionFailures()
Tests situations, whereas lejosunit should indicate an assertion failure. Each test will be encapsulated as an anynomous class.

Overrides:
testAssertionFailures in class AssertTest


Copyright (C) 2003 Jochen Hiller. All Rights Reserved.