assertj-vavr icon indicating copy to clipboard operation
assertj-vavr copied to clipboard

Map on Try assertion returns inaccessible abstract type

Open crypticmind opened this issue 1 year ago • 1 comments

Hi,

I'd like to know if I'm not understanding the usage correctly. My situation is that after mapping on a TryAssert, I get an inaccessible abstract AbstractTryAssert, which doesn't let me continue chaining assertions.

What I'm trying to do...

AbstractTryAssert<?, DataItem> inaccessibleAbstract = assertThat(service.getData()).map(t -> t.getItem());

It seems that this doesn't compile because AbstractTryAssert.map returns AbstractTryAssert instead of SELF.

Is this a quick fix? Are you accepting pull requests?

crypticmind avatar May 28 '24 17:05 crypticmind