Add non-parametrized message support to PayloadMatcher.

- add testcase (which used to cause compiler failure)
- remove <?> from PayloadMatcher to fix error
- add casts to FileInboundCAWRDTests to deal with backwards compatibility breakage

In some cases backwards compatibility is broken, see INT-1790 for details.
This commit is contained in:
Iwein Fuld
2011-02-08 14:32:54 +01:00
parent 57192121fb
commit 3955c9d6fb
3 changed files with 16 additions and 9 deletions

View File

@@ -70,7 +70,7 @@ public class FileInboundChannelAdapterWithRecursiveDirectoryTests {
File childFile = new File(folder, "baz");
assertTrue(childFile.createNewFile());
List<Message<?>> received = Arrays.asList(files.receive(), files.receive());
List<Message> received = Arrays.asList((Message) files.receive(), files.receive());
//verify
assertThat(received, hasItems(hasPayload(siblingFile), hasPayload(childFile)));
}