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

JUnit 5 support (extension instead of EasyMockRunner) #245

Closed
tobymurray opened this issue Jun 26, 2019 · 3 comments
Closed

JUnit 5 support (extension instead of EasyMockRunner) #245

tobymurray opened this issue Jun 26, 2019 · 3 comments
Assignees
Milestone

Comments

@tobymurray
Copy link
Contributor

tobymurray commented Jun 26, 2019

As commented here, the JUnit 4 practice of @RunWith(EasyMockRunner.class) no longer works. RunWith has been superseded by @ExtendWith.

I haven't really looked at what that implies, is JUnit 5 compatibility for the same features on the roadmap?

A StackOverflow answer has a workaround here: https://stackoverflow.com/a/47243856/2152081 - is that viable as is?

@tobymurray tobymurray changed the title JUnit5 support (extension instead of EasyMockRunner) JUnit 5 support (extension instead of EasyMockRunner) Jun 26, 2019
@tobymurray
Copy link
Contributor Author

I took the code from that StackOverflow answer and used it as described, it seems to work. I can submit a PR with that class if it'd be accepted?

@henri-tremblay
Copy link
Contributor

Please do. Worst case is that I'll tweak it a little

@henri-tremblay henri-tremblay self-assigned this Oct 16, 2019
@henri-tremblay henri-tremblay added this to the 4.1 milestone Oct 16, 2019
@henri-tremblay
Copy link
Contributor

Close by #246

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