You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, we can generate FooAssert with the generator, but the ListAssert we get out of assertThat in this case does, of course, not known about the generated assertion; we get a regular ObjectAssert<Foo>.
We can work around this by creating something like this here:
This has the feel of "should be a template" and "surely not only we want this", so I'm raising this issue. :)
I'm also not sure whether one would have/want to fiddle with the entrypoint methods in support of this.
PS: I was considering to use Lombok's @ExtensionMethod on ListAssert to add something like FooAssert singleFoo() to it. Unfortunately, it does not seem possible to get the actual value back from an Assert, so I was stuck there.
The text was updated successfully, but these errors were encountered:
We would like to write something like this:
Now, we can generate
FooAssert
with the generator, but theListAssert
we get out ofassertThat
in this case does, of course, not known about the generated assertion; we get a regularObjectAssert<Foo>
.We can work around this by creating something like this here:
This has the feel of "should be a template" and "surely not only we want this", so I'm raising this issue. :)
I'm also not sure whether one would have/want to fiddle with the entrypoint methods in support of this.
PS: I was considering to use Lombok's
@ExtensionMethod
onListAssert
to add something likeFooAssert singleFoo()
to it. Unfortunately, it does not seem possible to get the actual value back from an Assert, so I was stuck there.The text was updated successfully, but these errors were encountered: