Some clean up of the compile and test output

This commit is contained in:
Peter Vlugter 2011-09-27 18:00:26 +02:00
parent db8a20ea37
commit 8297f459e3
14 changed files with 58 additions and 99 deletions

View file

@ -67,7 +67,7 @@ public class MessageJavaTestBase {
@Test public void shouldTransformBodyAndPreserveHeaders() {
assertEquals(
new Message("ab", createMap("A", "1")),
new Message("a" , createMap("A", "1")).transformBody((Function)new TestTransformer()));
new Message("a" , createMap("A", "1")).transformBody((Function<String, Object>) new TestTransformer()));
}
@Test public void shouldConvertBodyAndPreserveHeaders() {
@ -120,7 +120,7 @@ public class MessageJavaTestBase {
return map;
}
private static class TestTransformer implements Function<String, String> {
private static class TestTransformer implements Function<String, Object> {
public String apply(String param) {
return param + "b";
}