ARTEMIS-5173 Replacing SimpleManager by direct object usage
This commit is contained in:
parent
da861bd6fd
commit
73ca0021af
|
@ -36,7 +36,6 @@ import org.apache.activemq.artemis.api.core.client.ClientProducer;
|
|||
import org.apache.activemq.artemis.api.core.client.ClientSession;
|
||||
import org.apache.activemq.artemis.api.core.client.ClientSessionFactory;
|
||||
import org.apache.activemq.artemis.api.core.client.ServerLocator;
|
||||
import org.apache.activemq.artemis.api.core.management.SimpleManagement;
|
||||
import org.apache.activemq.artemis.core.server.ActiveMQServer;
|
||||
import org.apache.activemq.artemis.core.server.ActiveMQServers;
|
||||
import org.apache.activemq.artemis.core.server.MessageReference;
|
||||
|
@ -171,9 +170,10 @@ public class LVQTest extends ActiveMQTestBase {
|
|||
producer.send(m2);
|
||||
producer.send(m3);
|
||||
producer.send(m4);
|
||||
SimpleManagement simpleManagement = new SimpleManagement("tcp://localhost:61616", null, null);
|
||||
Wait.assertEquals(2L, () -> simpleManagement.getMessageCountOnQueue(qName1.toString()), 5000, 100);
|
||||
Wait.assertEquals(4L, () -> simpleManagement.getMessagesAddedOnQueue(qName1.toString()), 5000, 100);
|
||||
Queue serverQueue = server.locateQueue(qName1);
|
||||
Wait.assertEquals(2L, serverQueue::getMessageCount, 5000, 100);
|
||||
Wait.assertEquals(4L, serverQueue::getMessagesAdded, 5000, 100);
|
||||
Wait.assertEquals(2L, serverQueue::getMessagesReplaced, 5000, 100);
|
||||
clientSession.start();
|
||||
ClientMessage m = consumer.receive(1000);
|
||||
assertNotNull(m);
|
||||
|
|
Loading…
Reference in New Issue