winter-junit5 / io.jentz.winter.junit5 / GraphLifecycleExtension

GraphLifecycleExtension

abstract class GraphLifecycleExtension : SimplePlugin, BeforeEachCallback, AfterEachCallback

JUnit5 extension that allows to hook into the io.jentz.winter.Graph lifecycle.

This registers itself as Winter plugin on application before executing a test and unregisters itself afterwards.

Constructors

<init>

GraphLifecycleExtension(application: WinterApplication = Winter)

JUnit5 extension that allows to hook into the io.jentz.winter.Graph lifecycle.

Functions

afterEach

open fun afterEach(context: ExtensionContext): Unit

beforeEach

open fun beforeEach(context: ExtensionContext): Unit

Inheritors

ExtendGraphExtension

class ExtendGraphExtension : GraphLifecycleExtension

JUnit5 extension that takes a component qualifier and a ComponentBuilderBlock and extends the Graph with componentQualifier by applying the ComponentBuilderBlock.