Esempio 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);
  }
Esempio n. 2
0
 @Override
 public void tearDown() throws Exception {
   super.tearDown();
   broker.shutdown();
 }