svkcemk commented on code in PR #3953:
URL: https://github.com/apache/camel-quarkus/pull/3953#discussion_r936435943
##########
integration-tests/validator/src/main/java/org/apache/camel/quarkus/component/validator/it/ValidatorResource.java:
##########
@@ -32,11 +32,28 @@ public class ValidatorResource {
@Inject
ProducerTemplate producerTemplate;
- @Path("/xml")
+ @Path("/classpath")
@POST
@Consumes(MediaType.APPLICATION_XML)
@Produces(MediaType.TEXT_PLAIN)
- public String processOrder(String statement) {
- return producerTemplate.requestBody("direct:start", statement,
String.class);
+ public String processOrderInXmlFromClassPath(String statement) {
+ return producerTemplate.requestBody("direct:classpath", statement,
String.class);
}
+
+ @Path("/filesystem")
+ @POST
+ @Consumes(MediaType.APPLICATION_XML)
+ @Produces(MediaType.TEXT_PLAIN)
+ public String processOrderInXmlFromFileSystem(String statement) {
+ return producerTemplate.requestBody("direct:filesystem", statement,
String.class);
+ }
+
+ @Path("/http")
+ @POST
+ @Consumes(MediaType.APPLICATION_XML)
+ @Produces(MediaType.TEXT_PLAIN)
+ public String processOrderInXmlFromHTTP(String statement) {
+ return producerTemplate.requestBody("direct:http", statement,
String.class);
+ }
Review Comment:
Sorry my mistake you are right the http one is failing I can see that now,
thanks for pointing out.
--
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]