Fix weird mockito problem

This commit is contained in:
David Syer
2010-06-19 07:14:19 +00:00
parent 87352799fb
commit 9332882d62

View File

@@ -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());
}