Provide a JUnit 5 extension for MockWebServer
See original GitHub issueI’m trying to get rid of JUnit 4 in my project and the last remaining bit is MockWebServer
which depends on org.junit.rules.ExternalResource
.
That is not a blocker as org.junit.jupiter:junit-jupiter-migrationsupport
provides experimental support for this.
However, it would be great to provide an implementation of MockWebServer
following the Junit 5 extension model.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:16
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Integration Testing with MockWebServer - Industrial Logic
Our project will include Spring Security with Client Credentials, Actuator, Spring Web, JUnit 5 and Webflux, and some other common ...
Read more >Doesn't a test class using MockWebServer require a runner?
A JUnit 4 Runner or Rule or JUnit Jupiter Extension conveniently takes care (among other things) of the test setup, e.g. starting and ......
Read more >Running MockServer
Running MockServer via a JUnit 5 Test Extension. MockServer can be run using the Test Extension MockServerExtension. The MockServerExtension starts ...
Read more >Getting Started with MockWebServer and JUnit
In this tutorial, we will learn to setup MockWebServer in JUnit 5 tests. We will be using Spring WebClient as HTTP client to...
Read more >A Guide to JUnit 5 Extensions - Baeldung
JUnit 5 provides a type of extension that can control whether or not a test should be run. This is defined by implementing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah we need to just break this in OkHttp 4 and decouple the need for a server from the idea that you’re inside a test runner.
On Sat, Mar 2, 2019, 3:39 PM Jesse Wilson <notifications@github.com wrote:
is a different square project for it planned?