Dropwizard: JUnit 5 support in dropwizard-testing

Created on 1 Mar 2017  路  4Comments  路  Source: dropwizard/dropwizard

I think dropwizard-testing module doesn't support JUnit 5 yet. Mainly the rules/class rules written in Junit 4 (in dropwizard-testing) doesn't work in Junit 5.

FYI, Frameworks like Mockito now officially supports JUnit 5.

improvement

All 4 comments

Thanks for filing a issue so we can track this improvement. I took a quick look at the migration guide. And since junit5 will support ExternalResource, it looks like the only code in dropwizard-testing that has to change (or be complemented) is ResourceTestRule which implements TestRule

Since Junit 5 has been released. It would be nice if someone updates the dropwizard testing documentation with JUnit 5 specific example.

Closed via #2166

@ramsrib where you able to test using JUnit5?
As you mentioned, the documentation still points to JUnit4
https://www.dropwizard.io/1.3.9/docs/manual/testing.html#id2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gabology picture Gabology  路  6Comments

rbjorklin picture rbjorklin  路  5Comments

ramsrib picture ramsrib  路  3Comments

zhenik picture zhenik  路  6Comments

animesh-sharama picture animesh-sharama  路  6Comments