smallrye-reactive-messaging icon indicating copy to clipboard operation
smallrye-reactive-messaging copied to clipboard

Must be a QuarkusTest to use inject

Open bechhansen opened this issue 3 months ago • 3 comments

This test need to be annotated with @QuarkusTest for Injection to work right?

bechhansen avatar Mar 20 '24 10:03 bechhansen

Looks like this issue https://github.com/smallrye/smallrye-reactive-messaging/issues/1799 addresses the same issue. I also don't get access to sources or sinks from the injected InMemoryConnector instance.

How is this supposed to work?

bechhansen avatar Mar 20 '24 10:03 bechhansen

I don't mind adding @QuarkusTest, but I would do something like:

@QuarkusTest // Or the Junit 5 extension that allows injection in tests

cescoffier avatar Mar 20 '24 12:03 cescoffier

Yes it could be Arquillian for example

ozangunalp avatar Mar 20 '24 13:03 ozangunalp

I've pushed a simple comment as I am against adding Quarkus dependency to the project.

ozangunalp avatar Mar 27 '24 08:03 ozangunalp