ARTEMIS-3740 Upgrade Johnzon
This commit is contained in:
parent
abfabfce57
commit
3ec88c5ea4
|
@ -24,6 +24,8 @@ import javax.jms.MessageProducer;
|
||||||
import javax.jms.Queue;
|
import javax.jms.Queue;
|
||||||
import javax.jms.Session;
|
import javax.jms.Session;
|
||||||
import javax.jms.TextMessage;
|
import javax.jms.TextMessage;
|
||||||
|
|
||||||
|
import org.apache.activemq.artemis.api.core.QueueConfiguration;
|
||||||
import org.apache.activemq.artemis.json.JsonArray;
|
import org.apache.activemq.artemis.json.JsonArray;
|
||||||
import org.apache.activemq.artemis.json.JsonObject;
|
import org.apache.activemq.artemis.json.JsonObject;
|
||||||
import javax.xml.parsers.DocumentBuilder;
|
import javax.xml.parsers.DocumentBuilder;
|
||||||
|
@ -1737,6 +1739,33 @@ public class ArtemisTest extends CliTestBase {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testHugeQstat() throws Exception {
|
||||||
|
|
||||||
|
File instanceQstat = new File(temporaryFolder.getRoot(), "instanceQStat");
|
||||||
|
setupAuth(instanceQstat);
|
||||||
|
Run.setEmbedded(true);
|
||||||
|
Artemis.main("create", instanceQstat.getAbsolutePath(), "--silent", "--no-fsync", "--no-autotune", "--no-web", "--require-login");
|
||||||
|
System.setProperty("artemis.instance", instanceQstat.getAbsolutePath());
|
||||||
|
Object result = Artemis.internalExecute("run");
|
||||||
|
ActiveMQServer activeMQServer = ((Pair<ManagementContext, ActiveMQServer>)result).getB();
|
||||||
|
|
||||||
|
try {
|
||||||
|
final int COUNT = 20_000;
|
||||||
|
for (int i = 0; i < COUNT; i++) {
|
||||||
|
activeMQServer.createQueue(new QueueConfiguration("" + i));
|
||||||
|
}
|
||||||
|
TestActionContext context = new TestActionContext();
|
||||||
|
StatQueue statQueue = new StatQueue();
|
||||||
|
statQueue.setUser("admin");
|
||||||
|
statQueue.setPassword("admin");
|
||||||
|
statQueue.setMaxRows(COUNT);
|
||||||
|
statQueue.execute(context);
|
||||||
|
} finally {
|
||||||
|
stopServer();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testQstatColumnWidth() throws Exception {
|
public void testQstatColumnWidth() throws Exception {
|
||||||
|
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -129,7 +129,7 @@
|
||||||
<resteasy.version>3.15.0.Final</resteasy.version>
|
<resteasy.version>3.15.0.Final</resteasy.version>
|
||||||
<slf4j.version>1.7.36</slf4j.version>
|
<slf4j.version>1.7.36</slf4j.version>
|
||||||
<qpid.jms.version>1.5.0</qpid.jms.version>
|
<qpid.jms.version>1.5.0</qpid.jms.version>
|
||||||
<johnzon.version>0.9.5</johnzon.version>
|
<johnzon.version>1.2.16</johnzon.version>
|
||||||
<hawtbuff.version>1.11</hawtbuff.version>
|
<hawtbuff.version>1.11</hawtbuff.version>
|
||||||
<jb.logmanager.version>2.1.10.Final</jb.logmanager.version>
|
<jb.logmanager.version>2.1.10.Final</jb.logmanager.version>
|
||||||
<jb.slf4j-jboss-logmanager.version>1.0.4.GA</jb.slf4j-jboss-logmanager.version>
|
<jb.slf4j-jboss-logmanager.version>1.0.4.GA</jb.slf4j-jboss-logmanager.version>
|
||||||
|
|
Loading…
Reference in New Issue