Port server to new interface testsPage added by Aidan SkinnerExisting unit test coverageExisting unit test coverage of the classes involved is minimal to non-existent New unit tests requiredUnit tests will need to be written for MINANetworkDriver, AMQProtocolEngine and AMQDecoder MINANetworkDriver testsThe unit test will create a ProtocolEngine to implement a simple echo server which will send back any recieved data. testBindOpenThis test will create two NetworkDrivers, one of which binds to a socket and one of which opens a socket. This test will assert that the open fails before the bind and that open succeeds after the bind. testSendThis test will create one NetworkDriver and call it's send method and verify that the data is passed to the ProcotolEngines receive() method testSetReadIdleThis test will create one NetworkDriver and set it's read idle timeout. It will verify that the ProtocolEngines readIdle method is called after the appropriate time testSetWriteIdleThis test will create one NetworkDriver and set it's write idle timeout. It will verify that the ProtocolEngines writeIdle method is called after the appropriate time testClosedThis test will create one NetworkDriver and close it. It will verify that the ProtocolEngines closed method is called. testExceptionCaughtThis test will create one NetworkDriver bind it and open a socket. It will forcibly close the socket to generate an exception. It will verify that the ProtocolEngines exception method is called.
Change Notification Preferences
View Online
|
Add Comment
|
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
- [CONF] Apache Qpid > Port server to new interface tests confluence
