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);
|
||||
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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue