|
Email Answering System Version 1.0 |
|||||||||
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 | +--test.ResourceAdapterUnitTest
Unit test for the email resource adapter.
Field Summary | |
protected byte[] |
mCoffin
The serialized connection factory object. |
Constructor Summary | |
ResourceAdapterUnitTest(String testName)
|
Method Summary | |
Serializable |
deserialize(byte[] bytes)
Deserialize an object. |
static void |
main(String[] args)
|
byte[] |
serialize(Serializable object)
Serialize an object. |
protected void |
setUp()
|
static junit.framework.Test |
suite()
|
protected void |
tearDown()
|
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Field Detail |
protected byte[] mCoffin
Constructor Detail |
public ResourceAdapterUnitTest(String testName)
Method Detail |
public static junit.framework.Test suite()
protected void setUp()
setUp
in class junit.framework.TestCase
protected void tearDown()
tearDown
in class junit.framework.TestCase
public byte[] serialize(Serializable object) throws IOException
object
- The object to be serialized.
IOException
- If the serialization process has an error.public Serializable deserialize(byte[] bytes) throws ClassNotFoundException, IOException
bytes
- The bytes corresponding to the serialized object.
ClassNotFoundException
- If the class of the serialized object
cannot be found or loaded.
IOException
- If the deserialization process has an error.public static void main(String[] args)
|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |