Hi all,
I am writing an external component using whack. How to test it ? Does any sample test case exists?
Thank you
Hi all,
I am writing an external component using whack. How to test it ? Does any sample test case exists?
Thank you
usually ill create a mock component manager and component that dont do much for using in JUnit tests. just basicly a List that picks up the packets from ComponentManager.sendPacket(Packet packet)
and with MockComponentManager.getSendPackets|() i can test if my response is what i expected.
(why is send(Packet packet) not defined in the Component interface ?)
To process packets just use
MockComponent.processPacket(final Packet packet).