Hi Ozan,
I have annotated the test class with @QuarkusTest but a new problem arose.
I have 3 methods:
@Outgoing("from-producer-to-processor")
public ClassA produce() {
return new ClassA("Hello");
}
@Incoming("from-producer-to-processor")
@Outgoing("from-processor-to-consumer")
public ClassB process(ClassA classA) {
return new ClassB(String.format("%s-ish", classA.toString()));
}
@Incoming("from-processor-to-consumer")
public void consume(ClassB classB) {
log.infof("Consumer received %s", classB);
}
When I start the test unit, @QuarkusTest starts Quarkus and the method produce() starts to send ClassA objects.
But I only want to test the process() method.
In other words, the test unit works only if I remove the annotation from the methods produce() and consume().
I have written a stackoverflow post and I have updated accordingly the example0 of my test repo
Can you help me?
Best regards,
Vincenzo