use of org.apache.activemq.command.Response in project activemq-artemis by apache.
the class ResponseTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
Response info = (Response) object;
info.setCorrelationId(1);
}
use of org.apache.activemq.command.Response in project activemq-artemis by apache.
the class ResponseTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
Response info = (Response) object;
info.setCorrelationId(1);
}
use of org.apache.activemq.command.Response in project activemq-artemis by apache.
the class ResponseTest method createObject.
@Override
public Object createObject() throws Exception {
Response info = new Response();
populateObject(info);
return info;
}
use of org.apache.activemq.command.Response in project activemq-artemis by apache.
the class UdpTransportUsingServerTest method testRequestResponse.
public void testRequestResponse() throws Exception {
ConsumerInfo expected = new ConsumerInfo();
expected.setSelector("Edam");
expected.setResponseRequired(true);
LOG.info("About to send: " + expected);
Response response = (Response) producer.request(expected, 2000);
LOG.info("Received: " + response);
assertNotNull("Received a response", response);
assertTrue("Should not be an exception", !response.isException());
}
use of org.apache.activemq.command.Response in project activemq-artemis by apache.
the class ResponseTest method createObject.
@Override
public Object createObject() throws Exception {
Response info = new Response();
populateObject(info);
return info;
}
Aggregations