-
Task
-
Resolution: Done
-
Minor
-
None
-
None
java.lang.AssertionError: expected:<4> but was:<3> at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:633) at org.jboss.as.test.integration.messaging.jms.external.prefix.ExternalJMSDestinationDefinitionMessagingDeploymentTestCase.checkRuntimeQueue(ExternalJMSDestinationDefinitionMessagingDeploymentTestCase.java:269) at org.jboss.as.test.integration.messaging.jms.external.prefix.ExternalJMSDestinationDefinitionMessagingDeploymentTestCase.testSendMessage(ExternalJMSDestinationDefinitionMessagingDeploymentTestCase.java:249)
Fails at:
Set<String> queues = runtimeQueues.stream().map(ModelNode::asString).collect(Collectors.toSet());
Assert.assertEquals(initialQueues.size() + 2, queues.size());
I don't know why that failed but one possibility is some queue from 'initialQueues' is no longer present.
The test doesn't need to assert the initial size of the set; it just needs to check its contents.
(Note: the test already confirmed that messages were received via the 2 added queues, so they probably exist. If they don't later checks will fail.)