use of org.apache.activemq.artemis.core.server.impl.LastValueQueue in project activemq-artemis by apache.
the class SessionCreateAndDeleteQueueTest method testAddressSettingUSed.
@Test
public void testAddressSettingUSed() throws Exception {
server.getAddressSettingsRepository().addMatch(address.toString(), new AddressSettings().setDefaultLastValueQueue(true));
ClientSession session = createSessionFactory(locator).createSession(false, true, true);
SimpleString filterString = new SimpleString("x=y");
session.createQueue(address, queueName, filterString, false);
Binding binding = server.getPostOffice().getBinding(queueName);
Assert.assertTrue(binding.getBindable() instanceof LastValueQueue);
session.close();
}
Aggregations