@Test public void testCreateCoreQueueWithFilter() throws Exception { CreateDestination command = new CreateDestination(); command.setName("coreQueue2"); command.setDestType(DestinationAction.CORE_QUEUE); command.setFilter("color='green'"); command.execute(new ActionContext(System.in, new PrintStream(output), new PrintStream(error))); checkExecutionResult(command); }
@Test public void testCreateJmsQueueWithFilter() throws Exception { CreateDestination command = new CreateDestination(); command.setName("jmsQueue2"); command.setBindings("jmsQueue2Binding"); command.setFilter("color='red'"); command.execute(new ActionContext(System.in, new PrintStream(output), new PrintStream(error))); checkExecutionResult(command); assertTrue(checkBindingExists(command, "color='red'")); }