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

thenReturned/thenThrown should be lambda friendly #87

Open
mikosik opened this issue Dec 12, 2015 · 1 comment
Open

thenReturned/thenThrown should be lambda friendly #87

mikosik opened this issue Dec 12, 2015 · 1 comment
Milestone

Comments

@mikosik
Copy link
Contributor

mikosik commented Dec 12, 2015

thenThrown() should accept Matcher so it is possible to assert details about thrown exception:

thenThrown((e) -> e.getMessage().equals("my message"));
@mikosik mikosik changed the title thenThrow() should accept Matcher thenThrown() should accept Matcher Dec 12, 2015
@maciejmikosik maciejmikosik added this to the 1.1.0 milestone Dec 13, 2015
@maciejmikosik maciejmikosik self-assigned this Dec 13, 2015
@maciejmikosik maciejmikosik changed the title thenThrown() should accept Matcher thenReturned/thenThrown should be lambda friendly Dec 14, 2015
@maciejmikosik
Copy link
Owner

Full support of java 8 features is planned for 2.0 release.
You can write your own matcher

thenThrown(hasMessage("my message"));

@maciejmikosik maciejmikosik modified the milestones: 1.1.0, 2.0.0 Jan 28, 2016
@maciejmikosik maciejmikosik removed their assignment Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants