bsoc.util
Class BsocTestCase

java.lang.Object
  |
  +--test.framework.TestCase
        |
        +--bsoc.util.BsocTestCase
Direct Known Subclasses:
AlphaSimTest, AlphaTest, DivisionTest, DTableEntryTest, GeneticTest, ICombTest, IntVectorTest, SortableVectorTest

public class BsocTestCase
extends test.framework.TestCase

Implements various service methods that can be used in many testcases.


Constructor Summary
BsocTestCase(java.lang.String s)
          Creates a testcase with a specific name.
 
Method Summary
 java.io.Serializable writeAndRead(java.io.Serializable sIn)
          Writes an object to a file and reads it afterwards.
 
Methods inherited from class test.framework.TestCase
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, countTestCases, defaultResult, name, notEqualsMessage, run, run, runTest, setUp, tearDown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BsocTestCase

public BsocTestCase(java.lang.String s)
Creates a testcase with a specific name.
Parameters:
s - The name for the new testcase.
Method Detail

writeAndRead

public java.io.Serializable writeAndRead(java.io.Serializable sIn)
                                  throws java.io.IOException,
                                         java.lang.ClassNotFoundException
Writes an object to a file and reads it afterwards. Can be used to verify if a specific object is serializable. The name of this file is always Serializable.object.
Parameters:
sIn - The object.
Returns:
The object that was read from the file.