jasi.unittest.sim
Class BasicTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jasi.unittest.sim.BasicTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
BasicTestCaseAirtraffic, TestArc, TestComplexAttribute, TestConditionMap, TestConditionTree, TestPosition, TestSimValueConditionTree, TestSpace, TestSpaceVec, TestSpeed, TestSpeedVec, TestTime

public abstract class BasicTestCase
extends junit.framework.TestCase

Test class for geometric classes.


Constructor Summary
BasicTestCase()
           
 
Method Summary
protected  java.lang.Object writeAndReadXML(java.lang.Object o)
          Write and read object in XML file.
protected  java.lang.Object writeAndReadXML(java.lang.Object o, java.lang.String file)
          Write and read object in XML file.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicTestCase

public BasicTestCase()
Method Detail

writeAndReadXML

protected final java.lang.Object writeAndReadXML(java.lang.Object o)
Write and read object in XML file.

Parameters:
o - The object to be written.
Returns:
The read object.

writeAndReadXML

protected final java.lang.Object writeAndReadXML(java.lang.Object o,
                                                 java.lang.String file)
Write and read object in XML file.

Parameters:
o - The object to be written.
file - The XML file.
Returns:
The read object.