|
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.ManagedConnectionFactoryUnitTest
Unit test for the email resource adapter managed connection factory.
Constructor Summary | |
ManagedConnectionFactoryUnitTest(String testName)
Construct a ManagedConnectionFactory test. |
Method Summary | |
Serializable |
deserialize(byte[] bytes)
Deserialize an object. |
static junit.framework.Test |
equalsSuite()
Test the equals method. |
static junit.framework.Test |
hashCodeSuite()
Test the hashCode method. |
static void |
main(String[] args)
Mainline for the ManagedConnectionFactory. |
byte[] |
serialize(Serializable object)
Serialize an object. |
protected void |
setUp()
|
protected String |
showBytes(byte[] data)
Create a string representation of an array of bytes. |
static junit.framework.Test |
suite()
Create the suite of tests for the ManagedConnectionFactory. |
protected void |
tearDown()
|
void |
testCreateConnectionFactory()
Test the create factory method. |
void |
testCreateConnectionFactoryWithConnectionManager()
Test the create factory method with a manager argument. |
void |
testCreateManagedConnection()
Test the create connection method. |
void |
testCreateManagedConnectionWithSubject()
Test the create connection method with a non-null subject. |
void |
testLogWriter()
Test the logWriter property. |
void |
testLogWriterPropagates()
Test the logWriter property propagates to managed connections. |
void |
testMatchManagedConnections()
Test the match connection method. |
void |
testMatchManagedConnectionsWithSubject()
Test the match connection method with a non-null subject. |
void |
testSerialization()
Test the serializability of the factory. |
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 |
Constructor Detail |
public ManagedConnectionFactoryUnitTest(String testName)
testName
- the name of the testMethod 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
protected String showBytes(byte[] data)
data
- The data to display.
public static junit.framework.Test equalsSuite()
equals()
method.
equals()
.public static junit.framework.Test hashCodeSuite()
hashCode()
method.
hashCode()
.public void testCreateConnectionFactory()
public void testCreateConnectionFactoryWithConnectionManager()
public void testCreateManagedConnection()
public void testCreateManagedConnectionWithSubject()
public void testMatchManagedConnections()
public void testMatchManagedConnectionsWithSubject()
public void testLogWriter()
public void testLogWriterPropagates()
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 void testSerialization()
public static void main(String[] args)
args
- JUnit arguments, optionally prefixed by a JUnit test runner class name.
The default is junit.swingui.TestRunner, but other possibilities include:junit.textui.TestRunner
junit.awtui.TestRunner
|
Email Answering System Version 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |