Dhis2MockServer

class Dhis2MockServer(fileReader: IFileReader, port: Int)

Constructors

Link copied to clipboard
constructor(port: Int)
constructor(fileReader: IFileReader, port: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun addResponse(method: String, path: String, responseName: String, responseCode: Int, contentType: String = CONTENT_TYPE_JSON)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun enqueueMockResponse(code: Int = OK_CODE)
fun enqueueMockResponse(code: Int, fileName: String)
fun enqueueMockResponse(fileName: String, dateHeader: Date)
Link copied to clipboard
fun enqueueMockResponseText(code: Int, response: String?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun shutdown()
Link copied to clipboard
fun takeRequest(): RecordedRequest