ARTEMIS-3740 Upgrade Johnzon

This commit is contained in:
Justin Bertram 2022-03-23 15:37:58 -05:00
parent abfabfce57
commit 3ec88c5ea4
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
2 changed files with 30 additions and 1 deletions

View File

@ -24,6 +24,8 @@ import javax.jms.MessageProducer;
import javax.jms.Queue;
import javax.jms.Session;
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.JsonObject;
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
public void testQstatColumnWidth() throws Exception {

View File

@ -129,7 +129,7 @@
<resteasy.version>3.15.0.Final</resteasy.version>
<slf4j.version>1.7.36</slf4j.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>
<jb.logmanager.version>2.1.10.Final</jb.logmanager.version>
<jb.slf4j-jboss-logmanager.version>1.0.4.GA</jb.slf4j-jboss-logmanager.version>