winter-junit4 / io.jentz.winter.junit4 / WinterRule

WinterRule

open class WinterRule : ExternalResource

JUnit4 rule 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>

WinterRule(test: Any, block: WinterTestSessionBlock)

Create an instance with test instance.

WinterRule(block: WinterTestSessionBlock)

Creates an instance without test instance.

Properties

requireTestGraph

val requireTestGraph: Graph

testGraph

val testGraph: Graph?

Functions

after

open fun after(): Unit

before

open fun before(): Unit