コード例 #1
0
 @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);
 }
コード例 #2
0
 @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'"));
 }