ffang commented on a change in pull request #2790:
URL: https://github.com/apache/camel-quarkus/pull/2790#discussion_r652115819
##########
File path:
integration-tests/dataformats-json/src/main/java/org/apache/camel/quarkus/component/dataformats/jackson/json/JacksonJsonResource.java
##########
@@ -493,32 +490,19 @@ public void jacksonUnmarshalListJackson(String body)
throws Exception {
@GET
public void jacksonConversionPojo(String body) throws Exception {
synchronized (context) {
-
context.getGlobalOptions().put(JacksonConstants.ENABLE_TYPE_CONVERTER, "true");
-
context.getGlobalOptions().put(JacksonConstants.TYPE_CONVERTER_TO_POJO, "true");
-
Order order = new Order();
order.setAmount(1);
order.setCustomerName("Acme");
order.setPartName("Camel");
- String json = (String)
producerTemplate.requestBody("direct:jackson-conversion-pojo-test", order);
-
assertEquals("{\"id\":0,\"partName\":\"Camel\",\"amount\":1,\"customerName\":\"Acme\"}",
json);
+
//context.getGlobalOptions().put(JacksonConstants.ENABLE_TYPE_CONVERTER,
"true");
+
//context.getGlobalOptions().put(JacksonConstants.TYPE_CONVERTER_TO_POJO,
"true");
-
context.getGlobalOptions().put(JacksonConstants.TYPE_CONVERTER_MODULE_CLASS_NAMES,
- JaxbAnnotationModule.class.getName());
+
//context.getGlobalOptions().put(JacksonConstants.TYPE_CONVERTER_MODULE_CLASS_NAMES,
+ // JaxbAnnotationModule.class.getName());
Review comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]