Skip to content

Commit

Permalink
Updated Gson integration tests with fix from Camel 3.2 #776
Browse files Browse the repository at this point in the history
  • Loading branch information
aldettinger committed Apr 14, 2020
1 parent b549f71 commit f3e76c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@

<route>
<from uri="direct:Gson-type-as-header"/>
<!-- Faking the test until https://issues.apache.org/jira/browse/CAMEL-14630 has been resolved -->
<setBody>
<constant><![CDATA[{"dummyString":"95f669ce-d287-4519-b212-4450bc791867","ignored":0}]]></constant>
</setBody>
<unmarshal><json library="Gson" unmarshalTypeName="org.apache.camel.quarkus.component.dataformats.json.model.AnotherObject"/></unmarshal>
<setHeader name="CamelGsonUnmarshalType">
<constant>org.apache.camel.quarkus.component.dataformats.json.model.AnotherObject</constant>
</setHeader>
<unmarshal>
<json library="Gson" />
</unmarshal>
</route>

</routes>
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
<setHeader name="CamelJohnzonUnmarshalType">
<constant>org.apache.camel.quarkus.component.dataformats.json.model.AnotherObject</constant>
</setHeader>
<unmarshal><json library="Johnzon"/></unmarshal>
<unmarshal>
<json library="Johnzon"/>
</unmarshal>
</route>

</routes>

0 comments on commit f3e76c2

Please sign in to comment.