ppalaga commented on a change in pull request #2254:
URL: https://github.com/apache/camel-quarkus/pull/2254#discussion_r576828834
##########
File path:
integration-tests/nitrite/src/main/java/org/apache/camel/quarkus/component/nitrite/it/NitriteResource.java
##########
@@ -84,11 +92,12 @@ public Object postRepositoryClass(Employee object) {
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
- public Object postRepositoryClassOperation(Operation operation) {
+ public Object postRepositoryClassOperation(Operation operation,
@QueryParam("mappable") boolean mappable) {
+ String className = mappable ? EmployeeMappable.class.getName() :
EmployeeSerializable.class.getName();
LOG.debugf("Sending to nitrite: {%s}", operation);
return producerTemplate.toF("nitrite://%s?repositoryClass=%s",
- dbFile, Employee.class.getName())
- .withBody(operation.getEmployee())
+ dbFile, className)
+ .withBody(mappable ? operation.getEmployeeMappable() :
operation.getEmployeeSerializable())
Review comment:
Thanks, I can see the test now.
I was CTRL-F-ing for `/collection` in browser and for some reason it was not
finding anything.
----------------------------------------------------------------
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:
[email protected]