ARTEMIS-2937 Cleanup on tests
This commit is contained in:
parent
5435809946
commit
753dac47d8
|
@ -131,9 +131,8 @@ public class LinkedListImpl<E> implements LinkedList<E> {
|
|||
return null;
|
||||
}
|
||||
|
||||
if (node.prev != null) {
|
||||
removeAfter(node.prev);
|
||||
}
|
||||
// the node will always have a prev element
|
||||
removeAfter(node.prev);
|
||||
return node.val();
|
||||
}
|
||||
|
||||
|
|
|
@ -668,7 +668,6 @@ public class AMQPReplicaTest extends AmqpClientTestSupport {
|
|||
for (int i = START_ID; i <= LAST_ID; i++) {
|
||||
Message message = consumer.receive(3000);
|
||||
Assert.assertNotNull(message);
|
||||
System.out.println("port " + port + ",i::" + message.getIntProperty("i"));
|
||||
Assert.assertEquals(i, message.getIntProperty("i"));
|
||||
if (message instanceof TextMessage) {
|
||||
Assert.assertEquals(getText(largeMessage, i), ((TextMessage) message).getText());
|
||||
|
|
|
@ -202,6 +202,13 @@ public class LinkedListTest extends ActiveMQTestBase {
|
|||
if (deferSupplier) {
|
||||
Assert.assertEquals(0, objs.getSizeOfSuppliedIDs());
|
||||
objs.setIDSupplier(source -> source.id);
|
||||
} else {
|
||||
// clear the ID supplier
|
||||
objs.clearID();
|
||||
// and redo it
|
||||
Assert.assertEquals(0, objs.getSizeOfSuppliedIDs());
|
||||
objs.setIDSupplier(source -> source.id);
|
||||
Assert.assertEquals(1000, objs.size());
|
||||
}
|
||||
|
||||
Assert.assertEquals(1000, objs.getSizeOfSuppliedIDs());
|
||||
|
|
Loading…
Reference in New Issue