use of org.apache.qpid.disttest.message.StopClientCommand in project qpid-broker-j by apache.
the class ClientTest method testProcessInstructionVisitsCommandAndResponds.
@Test
public void testProcessInstructionVisitsCommandAndResponds() throws Exception {
// has to be declared to be of supertype Command otherwise Mockito verify()
// refers to wrong method
final Command command = new StopClientCommand();
_client.processInstruction(command);
verify(_visitor).visit(command);
verify(_delegate).sendResponseMessage(isA(Response.class));
}
use of org.apache.qpid.disttest.message.StopClientCommand in project qpid-broker-j by apache.
the class ClientCommandVisitorTest method testStopClient.
@Test
public void testStopClient() {
StopClientCommand command = new StopClientCommand();
_visitor.visit(command);
verify(_client).stop();
}
Aggregations