citrusframework / citrus

Framework for automated integration tests with focus on messaging integration
https://citrusframework.org
Apache License 2.0
459 stars 136 forks source link

Citrus 3.0.0-M2 with Cucumber and JMS #757

Closed martku closed 3 years ago

martku commented 3 years ago

How to implement a synchronous jms receive and answer to the temporary queue?

This is not working:

@Bean
public JmsEndpoint inOutQueue() {
    return CitrusEndpoints.jms()
            .synchronous()
            .destination("InOut.Queue")
            .timeout(10000)
            .build();
}
runner.when(ReceiveMessageAction.Builder.receive()
    .endpoint(InOutQueue)
    .payload("...").build());

runner.when(SendMessageAction.Builder.send()
    .endpoint(InOutQueue)
    .payload("...").build());
christophd commented 3 years ago

any error message or exception stacktrace that you can share? Also you mention Cucumber in the issue title. I do not see any Cucumber steps in your sample code.