Polish test
This commit is contained in:
parent
88d95260d3
commit
1a6ab90255
|
|
@ -261,8 +261,8 @@ public class RabbitAutoConfigurationTests {
|
||||||
load(TestConfiguration.class, "spring.rabbitmq.dynamic:false");
|
load(TestConfiguration.class, "spring.rabbitmq.dynamic:false");
|
||||||
// There should NOT be an AmqpAdmin bean when dynamic is switch to false
|
// There should NOT be an AmqpAdmin bean when dynamic is switch to false
|
||||||
this.thrown.expect(NoSuchBeanDefinitionException.class);
|
this.thrown.expect(NoSuchBeanDefinitionException.class);
|
||||||
this.thrown.expectMessage("No qualifying bean of type "
|
this.thrown.expectMessage("No qualifying bean of type");
|
||||||
+ "[org.springframework.amqp.core.AmqpAdmin] is defined");
|
this.thrown.expectMessage(AmqpAdmin.class.getName());
|
||||||
this.context.getBean(AmqpAdmin.class);
|
this.context.getBean(AmqpAdmin.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue