b3rnie/simple_amqp — pull request #2 by zmstone (2012-02-17 09:48:06+00:00)
Title: simulate amqp clients for mock tests

Added a new src dir "sim" and a CT suite for it in "test" dir.
The idea was to create a even more easy-to-use client (name simac) to simulate the behaviors of a specific amqp client for testing purpose.

e.g.
client_under_test ----------- request ------------> simulated_server (mocked by simac)
<----------- response ----------

For now, it has cast and wait functionalities, and a "hello world" test case to verify it.
More sophisticated mock behaviors to be added, such as async wait. i.e. wait for two or more messages which may arrive in an uncertain order.
And more test cases (which could be used as examples for others) to be added, my plan is to have all the rabbit tutorial examples implemented as CT case.