Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failed on assertion. #36

Open
s4ndman1 opened this issue Sep 9, 2019 · 2 comments
Open

Test failed on assertion. #36

s4ndman1 opened this issue Sep 9, 2019 · 2 comments

Comments

@s4ndman1
Copy link

s4ndman1 commented Sep 9, 2019

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));

@leolivier
Copy link

Same here

@ahaasler
Copy link

ahaasler commented Apr 6, 2021

Still failing in 2021.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants