You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support jUnit5 extension. It is super easy to do, the question is how to distribute it. A new module with new artifact? Or include them together? I also don't know what is the best practice.
Here is how it would look like
class MockServerExtension : BeforeEachCallback, AfterEachCallback {
lateinit var server: MockWebServer
override fun beforeEach(context: ExtensionContext) {
server = MockWebServer()
DispatcherRetainer.registerRetainer()
DispatcherRetainer.resetDispatchers()
server.start()
}
override fun afterEach(context: ExtensionContext) {
server.shutdown()
DispatcherRetainer.resetDispatchers()
server.setDispatcher(DispatcherRetainer.queueDispatcher)
}
}
The text was updated successfully, but these errors were encountered:
Support jUnit5 extension. It is super easy to do, the question is how to distribute it. A new module with new artifact? Or include them together? I also don't know what is the best practice.
Here is how it would look like
The text was updated successfully, but these errors were encountered: