|
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.InteractionUnitTest
Unit test for the email resource adapter connection.
| Field Summary | |
protected Connection |
mConnection
The connection used in the tests. |
protected RecordFactory |
mRecordFactory
The record factory used in the tests. |
| Constructor Summary | |
InteractionUnitTest(String testName)
Construct a Connection test. |
|
| Method Summary | |
InternetAddress |
getEmailAddress()
Return a valid adjusted email address. |
static void |
main(String[] args)
Mainline for the Connection. |
protected void |
setUp()
Create a connection. |
static junit.framework.Test |
suite()
Create the suite of tests for the Connection. |
void |
testClose()
Test if the close method. |
void |
testReceive()
Test the execute method for function 'receive'. |
void |
testReceiveWithIndexedOutputRecord()
Test the execute method for function 'receive' with an indexed output record. |
void |
testReceiveWithMappedOutputRecord()
Test the execute method for function 'receive' with a mapped output record. |
void |
testSend()
Test the execute method for function 'send'. |
void |
testWarnings()
Test if interactions are invalidated by the connection close method. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
| Field Detail |
protected RecordFactory mRecordFactory
protected Connection mConnection
| Constructor Detail |
public InteractionUnitTest(String testName)
testName - the name of the test| Method Detail |
public static junit.framework.Test suite()
protected void setUp()
setUp in class junit.framework.TestCasepublic InternetAddress getEmailAddress()
checkForMe() test in
EmailInteraction.
public void testWarnings()
public void testClose()
public void testSend()
public void testReceive()
public void testReceiveWithIndexedOutputRecord()
public void testReceiveWithMappedOutputRecord()
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 | |||||||||