Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rxjava2: reactive Vertx should be injected in Junit 5 #95

Closed
hantsy opened this issue Dec 15, 2020 · 5 comments
Closed

rxjava2: reactive Vertx should be injected in Junit 5 #95

hantsy opened this issue Dec 15, 2020 · 5 comments
Labels
Milestone

Comments

@hantsy
Copy link

hantsy commented Dec 15, 2020

In Vertx Rxjava 2 sample, I tried to use all vertx-rx-rxjava2 APIs instead of the vertex core.

But the io.vertx.reactivex.core.Vertx can not be injected in the JUnit 5 methods like the normal Vertx.

My application is based on the following stack:

  • Vertx 4.0.0
  • Java 11
  • Windows 10

I have to wrap it myself like this:

WebClient client = WebClient.create(new io.vertx.reactivex.core.Vertx(vertx));
@hantsy hantsy added the bug label Dec 15, 2020
@vietj
Copy link
Member

vietj commented Dec 15, 2020

which vertx version ?

@hantsy
Copy link
Author

hantsy commented Dec 16, 2020

Vertx 4.0.0

@vietj
Copy link
Member

vietj commented Dec 16, 2020

@jponge ?

@vietj vietj added this to the 4.0.1 milestone Dec 16, 2020
@jponge
Copy link
Member

jponge commented Dec 16, 2020

As documented in the release notes, you need to add a dependency on https://github.com/vert-x3/vertx-rx/tree/master/rx-junit5-providers/vertx-junit5-rx-java2

@hantsy
Copy link
Author

hantsy commented Dec 16, 2020

@jponge @vietj Thanks.

@hantsy hantsy closed this as completed Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants