You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/05/05 14:17:43 UTC

[GitHub] [camel-quarkus] aldettinger commented on a change in pull request #2555: Add MLLP test coverage for setting charset

aldettinger commented on a change in pull request #2555:
URL: https://github.com/apache/camel-quarkus/pull/2555#discussion_r626607854



##########
File path: integration-tests/mllp/src/main/java/org/apache/camel/quarkus/component/mllp/it/MllpResource.java
##########
@@ -55,4 +59,21 @@ public void sendInvalidMessageToMllp(String message) throws Exception {
 
         mockEndpoint.assertIsSatisfied(5000);
     }
+
+    @Path("/charset/default")
+    @GET
+    @Produces(MediaType.TEXT_PLAIN)
+    public String getDefaultCharset() {
+        return MllpComponent.getDefaultCharset().name();
+    }
+
+    @Path("/charset/msh18")
+    @POST
+    @Produces(MediaType.TEXT_PLAIN)
+    public String getWithCharsetFromMsh18(String message) {
+        String mlpHostPort = String.format("mllp:%s:%d", MllpRoutes.MLLP_HOST, MllpRoutes.MLLP_PORT);

Review comment:
       neat typo time permitting "mlpHostPort" :)




-- 
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:
users@infra.apache.org