use of org.apache.activemq.command.RemoveInfo in project activemq-artemis by apache.
the class RemoveInfoTest method createObject.
@Override
public Object createObject() throws Exception {
RemoveInfo info = new RemoveInfo();
populateObject(info);
return info;
}
use of org.apache.activemq.command.RemoveInfo in project activemq-artemis by apache.
the class RemoveInfoTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
RemoveInfo info = (RemoveInfo) object;
info.setObjectId(createDataStructure("ObjectId:1"));
info.setLastDeliveredSequenceId(1);
}
use of org.apache.activemq.command.RemoveInfo in project activemq-artemis by apache.
the class RemoveInfoTest method createObject.
@Override
public Object createObject() throws Exception {
RemoveInfo info = new RemoveInfo();
populateObject(info);
return info;
}
use of org.apache.activemq.command.RemoveInfo in project activemq-artemis by apache.
the class RemoveInfoTest method populateObject.
@Override
protected void populateObject(Object object) throws Exception {
super.populateObject(object);
RemoveInfo info = (RemoveInfo) object;
info.setObjectId(createDataStructure("ObjectId:1"));
}
use of org.apache.activemq.command.RemoveInfo in project activemq-artemis by apache.
the class FailoverTransportTest method testCommandsIgnoredWhenOffline.
@Test(timeout = 30000)
public void testCommandsIgnoredWhenOffline() throws Exception {
this.transport = createTransport();
assertNotNull(failoverTransport);
ConnectionStateTracker tracker = failoverTransport.getStateTracker();
assertNotNull(tracker);
ConnectionId id = new ConnectionId("1");
ConnectionInfo connection = new ConnectionInfo(id);
// Track a connection
tracker.track(connection);
try {
this.transport.oneway(new RemoveInfo(new ConnectionId("1")));
} catch (Exception e) {
fail("Should not have failed to remove this known connection");
}
try {
this.transport.oneway(new RemoveInfo(new ConnectionId("2")));
} catch (Exception e) {
fail("Should not have failed to remove this unknown connection");
}
this.transport.oneway(new MessageAck());
this.transport.oneway(new ShutdownInfo());
}
Aggregations