-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
UniAsserter - make it easier to share data between assertions #29584
Comments
CC @geoand |
Do you have examples of how you want to use this? |
The simplest possible example could be: @RunOnVertxContext
public void testSomething(UniAsserter asserter) {
asserter.execute(() -> {
Foo f = new Foo();
asserter.putData(f);
}
asserter.assertThat(() -> findAnotherFoo(), f -> assertEquals(f.getName(), asserter.getData().getName()));
} The asserted data can be stored in a concurrent |
Sounds good to me. Do you have something already? |
Not yet but I can send a pull request later today ;-). |
Cool, thanks! |
- resolves quarkusio#29584 - also add some unit tests
- resolves quarkusio#29584 - also add some unit tests
Description
Currently, if you want to share some data the only way is to use some "external" holder, e.g.
Implementation ideas
We could add some method directly to the
UniAsserter
or even consider Mutiny context passing API.The text was updated successfully, but these errors were encountered: