aldettinger commented on a change in pull request #3572:
URL: https://github.com/apache/camel-quarkus/pull/3572#discussion_r813680251
##########
File path:
integration-tests/bean-validator/src/main/java/org/apache/camel/quarkus/component/bean/validator/it/BeanValidatorResource.java
##########
@@ -39,13 +40,36 @@
@Inject
ProducerTemplate producerTemplate;
- @Path("/get/{manufactor}/{plate}")
+ @Inject
+ ValidatorFactoryCustomizer.MyMessageInterpolator messageInterpolator;
+
+ @Path("/get/xml/{manufactor}/{plate}")
@GET
@Produces(MediaType.TEXT_PLAIN)
- public Response get(@PathParam("manufactor") String manufactor,
@PathParam("plate") String plate) throws Exception {
- LOG.info("bean-validator: " + manufactor + "/" + plate);
- Car car = new Car(manufactor, plate);
- Exchange out = producerTemplate.request("direct:start", e ->
e.getMessage().setBody(car));
+ public Response getXml(@PathParam("manufactor") String manufactor,
@PathParam("plate") String plate) throws Exception {
+ return get(new CarWithAnnotations(manufactor, plate), "start");
+ }
+
Review comment:
So `getAnot()` and `getXml()` have exactly same definition ? Is there
really a need for 2 methods then ?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]