Skip to content

Test failed on assertion. #36

@s4ndman1

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions