From 9332882d620a8c99957e72432dbeef7a5f4a453b Mon Sep 17 00:00:00 2001 From: David Syer Date: Sat, 19 Jun 2010 07:14:19 +0000 Subject: [PATCH] Fix weird mockito problem --- .../config/InvalidChannelWithMessageStoreParserTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-integration-core/src/test/java/org/springframework/integration/config/InvalidChannelWithMessageStoreParserTests.java b/spring-integration-core/src/test/java/org/springframework/integration/config/InvalidChannelWithMessageStoreParserTests.java index 2d9993be2a..23d5d2d02f 100644 --- a/spring-integration-core/src/test/java/org/springframework/integration/config/InvalidChannelWithMessageStoreParserTests.java +++ b/spring-integration-core/src/test/java/org/springframework/integration/config/InvalidChannelWithMessageStoreParserTests.java @@ -16,10 +16,10 @@ package org.springframework.integration.config; +import org.hamcrest.Matchers; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; -import org.mockito.Matchers; import org.springframework.beans.factory.parsing.BeanDefinitionParsingException; import org.springframework.context.support.ClassPathXmlApplicationContext; @@ -34,7 +34,7 @@ public class InvalidChannelWithMessageStoreParserTests { @Test public void testRefAndStoreIllegal() throws Exception { exception.expect(BeanDefinitionParsingException.class); - exception.expectMessage(Matchers.contains("'message-store' attribute is not allowed")); + exception.expectMessage(Matchers.containsString("'message-store' attribute is not allowed")); new ClassPathXmlApplicationContext(getClass().getSimpleName() + "-context.xml", getClass()); }