Package org.jboss.internal.soa.esb.command

Examples of org.jboss.internal.soa.esb.command.InMemoryCommandQueue.open()


  public void test_args() throws CommandQueueException {
    InMemoryCommandQueue commandQueue = new InMemoryCommandQueue();
   
    try {
      commandQueue.open(null);
      fail("Expected IllegalArgumentException.");
    } catch (IllegalArgumentException e) {
      // OK
    }
View Full Code Here


      // OK
    }

    ConfigTree config = new ConfigTree("config");
    try {
      commandQueue.open(config);
      fail("Expected CommandQueueException.");
    } catch (CommandQueueException e) {
      // OK
    }
  }
View Full Code Here

    ConfigTree config = new ConfigTree("config");
    InMemoryCommandQueue commandQueue = new InMemoryCommandQueue();

    config.setAttribute(InMemoryCommandQueue.COMMAND_QUEUE_NAME, "test-queue");
    assertEquals(null, InMemoryCommandQueue.getQueue("test-queue"));
    commandQueue.open(config);
    assertEquals(commandQueue, InMemoryCommandQueue.getQueue("test-queue"));
    commandQueue.close();
    assertEquals(null, InMemoryCommandQueue.getQueue("test-queue"));
  }
 
View Full Code Here

    } catch (CommandQueueException e) {
      // OK
    }
   
    config.setAttribute(InMemoryCommandQueue.COMMAND_QUEUE_NAME, "test-queue");
    commandQueue.open(config);
   
    // Start the consumer thread - it will receive the commands from the queue.
    CommandConsumerThread consumerThread = new CommandConsumerThread(commandQueue);
    consumerThread.start();
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.