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:
parent
23522fd83d
commit
ae5d98337f
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue