use of com.meltwater.rxrabbit.BrokerAddresses in project rxrabbit by meltwater.
the class ExampleAppsTest method setup.
@Before
public void setup() throws Exception {
killAndRestartRabbitDocker();
prop = new Properties();
prop.load(ExampleAppsTest.class.getResourceAsStream("/test.properties"));
prop.putAll(System.getProperties());
addresses = new BrokerAddresses(prop.getProperty("rabbit.broker.uris"));
channelFactory = new DefaultChannelFactory(addresses, new ConnectionSettings());
RabbitTestUtils.createQueues(channelFactory, prop.getProperty("in.queue"), new Exchange(prop.getProperty("in.exchange")));
RabbitTestUtils.createQueues(channelFactory, prop.getProperty("out.queue"), new Exchange(prop.getProperty("out.exchange")));
}
Aggregations