Skip to content

Commit

Permalink
CAMEL-10567: Camel-Jackson: Add an option to allow the UnmarshallType…
Browse files Browse the repository at this point in the history
… header use. Fix test
  • Loading branch information
oscerd committed Dec 9, 2016
1 parent c93a87c commit 342b09e
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
*/
package org.apache.camel.component.jackson;

import java.util.LinkedHashMap;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.junit4.CamelTestSupport;
Expand All @@ -29,7 +27,6 @@ public class JacksonMarshalUnmarshalTypeHeaderNotAllowedTest extends CamelTestSu
public void testUnmarshalPojo() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:reversePojo");
mock.expectedMessageCount(1);
mock.message(0).body().isInstanceOf(LinkedHashMap.class);

String json = "{\"name\":\"Camel\"}";
template.sendBodyAndHeader("direct:backPojo", json, JacksonConstants.UNMARSHAL_TYPE, TestPojo.class.getName());
Expand Down

0 comments on commit 342b09e

Please sign in to comment.