TestApplicationEngine

class TestApplicationEngine(    environment: ApplicationEnvironment = createTestEnvironment(),     monitor: Events,     developmentMode: Boolean = true,     applicationProvider: () -> Application,     configuration: TestApplicationEngine.Configuration) : BaseApplicationEngine, CoroutineScope

A test engine that provides a way to simulate application calls to the existing application module(s) without actual HTTP connection.

Report a problem

Constructors

Link copied to clipboard
constructor(    environment: ApplicationEnvironment = createTestEnvironment(),     monitor: Events,     developmentMode: Boolean = true,     applicationProvider: () -> Application,     configuration: TestApplicationEngine.Configuration)

Types

Link copied to clipboard

An engine configuration for a test application.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

An instance of a client engine to be used in client.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun resolvedConnectors(): List<EngineConnectorConfig>
Link copied to clipboard
open override fun start(wait: Boolean): ApplicationEngine
Link copied to clipboard
open suspend fun startSuspend(wait: Boolean): ApplicationEngine
Link copied to clipboard
open override fun stop(gracePeriodMillis: Long, timeoutMillis: Long)
Link copied to clipboard
open suspend fun stopSuspend(gracePeriodMillis: Long, timeoutMillis: Long)