|
||||||||||
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 cc.mallet.types.tests.TestSerializable
public class TestSerializable
Static utility for testing serializable classes in MALLET. Created: Aug 24, 2004
Constructor Summary | |
---|---|
TestSerializable(java.lang.String name)
|
Method Summary | |
---|---|
static java.lang.Object |
cloneViaSerialization(java.io.Serializable obj)
Clones a given object by serializing it to a byte array and reading it back. |
static void |
main(java.lang.String[] args)
|
static junit.framework.Test |
suite()
|
void |
testTestSerializable()
|
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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestSerializable(java.lang.String name)
Method Detail |
---|
public static junit.framework.Test suite()
public static java.lang.Object cloneViaSerialization(java.io.Serializable obj) throws java.io.IOException, java.lang.ClassNotFoundException
obj
-
java.io.IOException
java.lang.ClassNotFoundException
public void testTestSerializable() throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public static void main(java.lang.String[] args) throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |