|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.commons.id.test.AssertSerialization.SerializationTest
protected static class AssertSerialization.SerializationTest
A test case used to test the serialization capability and the compatibility with previous versions of the type. Instances of the class are internally generated.
Method Summary | |
---|---|
void |
checkCompatibility(java.lang.String filename)
Test the compatibility with a version of the type. |
protected void |
runTest()
|
void |
testBinaryRepresentationIsStillValid()
Ensure that serialized reference is still the same. |
void |
testSerialization()
Test the serializability of the object. |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, 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 |
Method Detail |
---|
public void testSerialization()
public void testBinaryRepresentationIsStillValid() throws java.io.IOException
java.io.IOException
public void checkCompatibility(java.lang.String filename)
filename
- the filename of the file with the serialized objectprotected void runTest() throws java.lang.Throwable
runTest
in class junit.framework.TestCase
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |