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

need decorator that expects given Case to fail #40

Closed
maciejmikosik opened this issue May 5, 2018 · 2 comments
Closed

need decorator that expects given Case to fail #40

maciejmikosik opened this issue May 5, 2018 · 2 comments
Assignees
Milestone

Comments

@maciejmikosik
Copy link
Owner

example

expectThrown(
    ArithmeticException.class, 
    newCase("cannot divide by zero", () -> System.out.println(1 / 0)))
@maciejmikosik
Copy link
Owner Author

Simpler solution is to wrap Case.Body instead.

newCase(
    "cannot divide by zero",
    expectThrown(ArithmeticException.class, () -> System.out.println(1 / 0)))

@maciejmikosik maciejmikosik self-assigned this Aug 27, 2018
@maciejmikosik maciejmikosik added this to the 0.15.0 milestone Aug 27, 2018
@maciejmikosik
Copy link
Owner Author

Implemented original idea and applied it to all cases in tree.

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

1 participant