Package io.ktor.client.tests.utils
Types
abstract expect class ClientLoader Helper interface to test client. |
|
class TestClientBuilder<T : HttpClientEngineConfig> |
|
class TestInfo |
|
abstract class TestWithKtor |
Extensions for External Classes
Properties
const val HTTP_PROXY_SERVER: String Proxy server url for tests. |
|
const val TEST_SERVER: String Web url for tests. |
|
const val TEST_WEBSOCKET_SERVER: String Websocket server url for tests. |
Functions
fun TestClientBuilder<*>.after( |
|
Asserts that block completed with given type of root cause. |
|
Asserts that a block fails with a specific exception of type T being thrown. |
|
fun <T : HttpClientEngineConfig> TestClientBuilder<T>.config( |
|
fun main(): Unit Start server for tests. |
|
fun TestClientBuilder<*>.test( |
|
fun testWithEngine( Perform test with selected client engine. fun <T : HttpClientEngineConfig> testWithEngine( Perform test with selected client engine factory. |