|
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.ConnectionUnitTest
Unit test for the email resource adapter connection.
Field Summary | |
protected Connection |
mConnection
The connection used in the tests. |
Constructor Summary | |
ConnectionUnitTest(String testName)
Construct a Connection test. |
Method Summary | |
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 |
test2Closes()
Test the calling the close method twice. |
void |
testClose()
Test the close method. |
void |
testCreateInteraction()
Test the create interaction method. |
void |
testGetMetaData()
Test get metadata method. |
void |
testInteractionsVoided()
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 Connection mConnection
Constructor Detail |
public ConnectionUnitTest(String testName)
testName
- the name of the testMethod Detail |
public static junit.framework.Test suite()
protected void setUp()
setUp
in class junit.framework.TestCase
public void testGetMetaData()
public void testCreateInteraction()
public void testClose()
public void test2Closes()
public void testInteractionsVoided()
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 |