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/03/30 09:19:56 UTC

[GitHub] [camel-quarkus] ppalaga commented on a change in pull request #2408: bindy: created a test to show the locale issue in native and document…

ppalaga commented on a change in pull request #2408:
URL: https://github.com/apache/camel-quarkus/pull/2408#discussion_r603927631



##########
File path: integration-tests/bindy/src/main/java/org/apache/camel/quarkus/component/bindy/it/BindyResource.java
##########
@@ -110,6 +111,19 @@ public void unMarshalFixedLengthRecordShouldSucceed() {
         assertEquals("Spa", order.getCountry());
     }
 
+    @Path("/marshalFixedLengthWithLocaleShouldSucceed")
+    @GET
+    public void marshalFixedLengthWithLocaleShouldSucceed() {
+        LOG.debugf("Invoking marshalFixedLengthWithLocaleShouldSucceed()");
+
+        FixedLengthWithLocale object = new FixedLengthWithLocale();
+        object.setNumber(3.2);
+
+        String marshalled = template.requestBody("direct:marshal-fixed-length-with-locale", object, String.class);
+
+        assertEquals("٣٫٢٠٠\r\n", marshalled);

Review comment:
       nice!




-- 
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