Skip to content

Enhancement: Allow for lazily-constructed messages #185

@stdedos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions