All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.javalin.testtools.JavalinTest.kt Maven / Gradle / Ivy

There is a newer version: 6.4.0
Show newest version
package io.javalin.testtools

import io.javalin.Javalin

object JavalinTest {

    private val testConfig = TestConfig()
    private val testTool = TestTool(testConfig)

    @JvmStatic
    @JvmOverloads
    fun test(app: Javalin = Javalin.create(), config: TestConfig = this.testConfig, testCase: TestCase) =
        testTool.test(app, config, testCase)

    @JvmStatic
    fun captureStdOut(runnable: Runnable) = testTool.captureStdOut(runnable)

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy