Skip to content

Commit

Permalink
NO-JIRA Improve a specific QueueControlTest
Browse files Browse the repository at this point in the history
There is no need to use our own AddressSettings extension here.
This is just simplifying the test.
  • Loading branch information
clebertsuconic committed May 15, 2024
1 parent 23522fd commit ae5d983
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,14 +423,7 @@ public void testGetExpiryAddress() throws Exception {
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());

Expand Down

0 comments on commit ae5d983

Please sign in to comment.