Skip to content

Enhancement: Allow for lazily-constructed messages #185

Description

@stdedos

https://junit.org/junit5/docs/snapshot/user-guide/#writing-tests

        assertTrue('a' < 'b', () -> "Assertion messages can be lazily evaluated -- "
                + "to avoid constructing complex messages unnecessarily.");

Maybe you can pass the library's result.getMessage() as an optional parameter (so the user can use the message themselves, or not)

Maybe a tangent to #183

Activity

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