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