Ejemplo n.º 1
0
  @Before
  public void setUp() throws Exception {
    BrokerOptions options = new BrokerOptions();
    options.setConfigurationStoreType("memory");
    options.setInitialConfigurationLocation("src/test/resources/config.json");
    options.setLogConfigFileLocation("src/test/resources/log4j.xml");

    broker = new Broker();
    broker.startup(options);

    super.setUp();
    resultEndpoint = context.getEndpoint("mock:result", MockEndpoint.class);
  }
Ejemplo n.º 2
0
 @Override
 public void tearDown() throws Exception {
   super.tearDown();
   broker.shutdown();
 }