ARTEMIS-2937 Cleanup on tests

This commit is contained in:
Clebert Suconic 2020-10-28 17:34:28 -04:00
parent 5435809946
commit 753dac47d8
3 changed files with 9 additions and 4 deletions

View File

@ -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();
}

View File

@ -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());

View File

@ -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());