NO-JIRA Improve a specific QueueControlTest

There is no need to use our own AddressSettings extension here.
This is just simplifying the test.
This commit is contained in:
Clebert Suconic 2024-05-15 09:42:52 -04:00 committed by clebertsuconic
parent 23522fd83d
commit ae5d98337f
1 changed files with 1 additions and 8 deletions

View File

@ -423,14 +423,7 @@ public class QueueControlTest extends ManagementTestBase {
QueueControl queueControl = createManagementControl(address, queue); QueueControl queueControl = createManagementControl(address, queue);
Assert.assertNull(queueControl.getExpiryAddress()); Assert.assertNull(queueControl.getExpiryAddress());
server.getAddressSettingsRepository().addMatch(address.toString(), new AddressSettings() { server.getAddressSettingsRepository().addMatch(address.toString(), new AddressSettings().setExpiryAddress(expiryAddress));
private static final long serialVersionUID = 6745306517827764680L;
@Override
public SimpleString getExpiryAddress() {
return expiryAddress;
}
});
Assert.assertEquals(expiryAddress.toString(), queueControl.getExpiryAddress()); Assert.assertEquals(expiryAddress.toString(), queueControl.getExpiryAddress());