Skip to content

Test failed on assertion. #36

Description

@s4ndman1

assertThat(repository.findById(customer.id), is(customer));

Throws an error as it returns type "java.util.Optional" instead of "example.customers.Customer" fixed it by changing assert to.

assertThat(repository.findById(customer.id).get(), is(customer));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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