Intercept

class Intercept(renderMode: RenderMode = OnFailure, redirectFilter: Filter = Filter.NoOp, clock: Clock = Clock.systemUTC(), random: Random = SecureRandom(byteArrayOf()), serverName: String = "http4k-server", baseUrl: Uri = Uri.of(""), traceStore: TraceStore = TraceStore.InMemory(), logStore: LogStore = LogStore.InMemory(), transactionStore: TransactionStore = TransactionStore.InMemory(), livingDocsSections: List<LivingDocSection> = defaultLivingDocSections, traceReportTabs: List<TabContentRenderer> = defaultTraceReportTabs, reportDir: File = outputDir, appFn: Context.() -> PolyHandler) : ParameterResolver, BeforeTestExecutionCallback, AfterTestExecutionCallback(source)

Wiretap Intercept is a JUnit Extension that records all traffic and telemetry inside an application in order that it can be visualised post-test.

Constructors

Link copied to clipboard
constructor(renderMode: RenderMode = OnFailure, redirectFilter: Filter = Filter.NoOp, clock: Clock = Clock.systemUTC(), random: Random = SecureRandom(byteArrayOf()), serverName: String = "http4k-server", baseUrl: Uri = Uri.of(""), traceStore: TraceStore = TraceStore.InMemory(), logStore: LogStore = LogStore.InMemory(), transactionStore: TransactionStore = TransactionStore.InMemory(), livingDocsSections: List<LivingDocSection> = defaultLivingDocSections, traceReportTabs: List<TabContentRenderer> = defaultTraceReportTabs, reportDir: File = outputDir, appFn: Context.() -> PolyHandler)
constructor(renderMode: RenderMode = OnFailure)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun afterTestExecution(context: ExtensionContext)
Link copied to clipboard
open override fun beforeTestExecution(context: ExtensionContext)
@API(status = API.Status.MAINTAINED, since = "5.13.3")
open fun getTestInstantiationExtensionContextScope(rootContext: ExtensionContext?): TestInstantiationAwareExtension.ExtensionContextScope?
Link copied to clipboard
open override fun resolveParameter(pc: ParameterContext, ec: ExtensionContext): Any
Link copied to clipboard
open override fun supportsParameter(pc: ParameterContext, ec: ExtensionContext): Boolean