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

com.justai.jaicf.test.context.TestRequestContext.kt Maven / Gradle / Ivy

package com.justai.jaicf.test.context

import com.justai.jaicf.context.RequestContext
import java.util.*

/**
 * This [RequestContext] implementation is used during the unit test execution.
 * Adds an ability to pass some arbitrary variables to the scenario and numbers queue for smart random algorithm.
 */
class TestRequestContext(
    override val newSession: Boolean = false
) : RequestContext(newSession, null) {

    val randomNumbers = ArrayDeque()
    val variables = mutableMapOf().withDefault { null }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy