Some clean up of the compile and test output
This commit is contained in:
parent
db8a20ea37
commit
8297f459e3
14 changed files with 58 additions and 99 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue