use of org.apache.activemq.command.ConsumerId in project activemq-artemis by apache.
the class ConsumerIdTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerId info = (ConsumerId) object;
info.setConnectionId("ConnectionId:1");
info.setSessionId(1);
info.setValue(2);
}
use of org.apache.activemq.command.ConsumerId in project activemq-artemis by apache.
the class ConsumerIdTest method createObject.
@Override
public Object createObject() throws Exception {
ConsumerId info = new ConsumerId();
populateObject(info);
return info;
}
use of org.apache.activemq.command.ConsumerId in project activemq-artemis by apache.
the class ConsumerIdTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
ConsumerId info = (ConsumerId) object;
info.setConnectionId("ConnectionId:1");
info.setSessionId(1);
info.setValue(2);
}
use of org.apache.activemq.command.ConsumerId in project activemq-artemis by apache.
the class MessageGroupMapTest method createConsumerId.
protected ConsumerId createConsumerId() {
ConnectionId connectionId = new ConnectionId("" + ++idCounter);
SessionId sessionId = new SessionId(connectionId, ++idCounter);
ConsumerId answer = new ConsumerId(sessionId, ++idCounter);
return answer;
}
use of org.apache.activemq.command.ConsumerId in project activemq-artemis by apache.
the class MessageGroupMapTest method assertGet.
protected void assertGet(String groupdId, ConsumerId expected) {
ConsumerId actual = map.get(groupdId);
assertEquals("Entry for groupId: " + groupdId, expected, actual);
}
Aggregations