Skip to content

Feature: Generate alternative to get + isNotNull #157

Open

Description

@reitzig

Currently, we write:

assertThat(myValue.getMyProperty()).isNotNull()

Nicer would be:

assertThat(myValue).hasAnyMyProperty()

Activity

  1. reitzig commented on Aug 2, 2024

    @reitzig
    Author

    It think #220 would be more general. Then, we could write:

    assertThat(myValue).myProperty().isNotNull()

    Which is good enough in many cases; of course, we couldn't get back to the original Assert once we "descend" into the one of the property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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