winter-junit5 / io.jentz.winter.junit5 / WinterEachExtension

WinterEachExtension

open class WinterEachExtension : AbstractWinterExtension, BeforeEachCallback, AfterEachCallback

JUnit5 extension that starts a io.jentz.winter.testing.WinterTestSession before each test and stops the session after each test.

For more details see io.jentz.winter.testing.WinterTestSession.

Constructors

<init>

WinterEachExtension()

Default constructor to use this with org.junit.jupiter.api.extension.RegisterExtension.

WinterEachExtension(block: Builder.() -> Unit)

JUnit5 extension that starts a io.jentz.winter.testing.WinterTestSession before each test and stops the session after each test.

Functions

afterEach

fun afterEach(context: ExtensionContext): Unit

beforeEach

fun beforeEach(context: ExtensionContext): Unit

Inherited Functions

after

fun after(context: ExtensionContext): Unit

before

fun before(context: ExtensionContext): Unit

resolveParameter

fun resolveParameter(parameterContext: ParameterContext, extensionContext: ExtensionContext): Any

supportsParameter

fun supportsParameter(parameterContext: ParameterContext, extensionContext: ExtensionContext): Boolean