This is an automated email from the ASF dual-hosted git repository.
clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git
The following commit(s) were added to refs/heads/main by this push:
new ae5d98337f NO-JIRA Improve a specific QueueControlTest
ae5d98337f is described below
commit ae5d98337f00d5a123d95994b8437cdca1d319c4
Author: Clebert Suconic <[email protected]>
AuthorDate: Wed May 15 09:42:52 2024 -0400
NO-JIRA Improve a specific QueueControlTest
There is no need to use our own AddressSettings extension here.
This is just simplifying the test.
---
.../artemis/tests/integration/management/QueueControlTest.java | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
index 412cc5b033..762fcad6ed 100644
---
a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
+++
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
@@ -423,14 +423,7 @@ public class QueueControlTest extends ManagementTestBase {
QueueControl queueControl = createManagementControl(address, queue);
Assert.assertNull(queueControl.getExpiryAddress());
- server.getAddressSettingsRepository().addMatch(address.toString(), new
AddressSettings() {
- private static final long serialVersionUID = 6745306517827764680L;
-
- @Override
- public SimpleString getExpiryAddress() {
- return expiryAddress;
- }
- });
+ server.getAddressSettingsRepository().addMatch(address.toString(), new
AddressSettings().setExpiryAddress(expiryAddress));
Assert.assertEquals(expiryAddress.toString(),
queueControl.getExpiryAddress());