Skip to content

Map on Try assertion returns inaccessible abstract type #215

@crypticmind

Description

@crypticmind

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions