-
Notifications
You must be signed in to change notification settings - Fork 307
Open
Description
Line 48 in f8ca6d7
| assertThat(repository.findById(customer.id), is(customer)); |
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));
ahaasler
Metadata
Metadata
Assignees
Labels
No labels