From df411c74da702bbbe8885712a960183450b466b5 Mon Sep 17 00:00:00 2001 From: Iwein Fuld Date: Fri, 24 Jul 2009 18:21:38 +0000 Subject: [PATCH] RESOLVED - issue INT-144: Begin implementation of a testing framework for integration component interactions http://jira.springframework.org/browse/INT-144 renamed method to fit intent better --- .../integration/test/matcher/MockitoMessageMatchers.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/org.springframework.integration.test/src/main/java/org/springframework/integration/test/matcher/MockitoMessageMatchers.java b/org.springframework.integration.test/src/main/java/org/springframework/integration/test/matcher/MockitoMessageMatchers.java index d89c929874..7fe43c0d77 100644 --- a/org.springframework.integration.test/src/main/java/org/springframework/integration/test/matcher/MockitoMessageMatchers.java +++ b/org.springframework.integration.test/src/main/java/org/springframework/integration/test/matcher/MockitoMessageMatchers.java @@ -29,8 +29,9 @@ import org.springframework.integration.core.Message; *

Mockito matcher factory for {@link Message} matcher creation.

*

* This class contains expressive factory methods for the most common Mockito - * matchers needed when matching {@link Message}s. Any Hamcrest matcher can be - * used in Mockito through {@link Mockito#argThat(Matcher)}. + * matchers needed when matching {@link Message}s. If you need a different + * matching strategy, any Hamcrest matcher can be used in Mockito through + * {@link Mockito#argThat(Matcher)}. * *

Example usage:

*

@@ -48,6 +49,7 @@ import org.springframework.integration.core.Message; *

* With {@link Mockito#when(Object)}: *

+ * *
  * ...
  * when(channel.send(messageWithPayload(SOME_PAYLOAD))).thenReturn(true);
@@ -74,7 +76,7 @@ public class MockitoMessageMatchers {
 		return argThat(hasHeader(key, value));
 	}
 
-	public static Message messageWithHeaderEntry(String key) {
+	public static Message messageWithHeaderKey(String key) {
 		return argThat(HeaderMatcher.hasHeaderKey(key));
 	}