reader.loadBeanDefinitions(new ClassPathResource(getClass().getSimpleName() + "-context.xml", getClass()));
}
@Test
public void testDirectExchange() throws Exception {
DirectExchange exchange = beanFactory.getBean("direct", DirectExchange.class);
assertNotNull(exchange);
assertEquals("direct", exchange.getName());
assertTrue(exchange.isDurable());
assertFalse(exchange.isAutoDelete());
assertFalse(exchange.shouldDeclare());
assertEquals(2, exchange.getDeclaringAdmins().size());
Binding binding = beanFactory.getBean("org.springframework.amqp.rabbit.config.BindingFactoryBean#0", Binding.class);
assertFalse(binding.shouldDeclare());
assertEquals(2, binding.getDeclaringAdmins().size());
Map<String, Object> arguments = binding.getArguments();