From 1a6ab90255d741f086bc3f46322c289aa79ed1f3 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sun, 30 Oct 2016 11:24:33 +0100 Subject: [PATCH] Polish test --- .../boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java index a0c54db8fd..26ecd062c9 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java @@ -261,8 +261,8 @@ public class RabbitAutoConfigurationTests { load(TestConfiguration.class, "spring.rabbitmq.dynamic:false"); // There should NOT be an AmqpAdmin bean when dynamic is switch to false this.thrown.expect(NoSuchBeanDefinitionException.class); - this.thrown.expectMessage("No qualifying bean of type " - + "[org.springframework.amqp.core.AmqpAdmin] is defined"); + this.thrown.expectMessage("No qualifying bean of type"); + this.thrown.expectMessage(AmqpAdmin.class.getName()); this.context.getBean(AmqpAdmin.class); }