au.com.dius.pact.provider.RequestDataToBeVerified.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of provider Show documentation
Show all versions of provider Show documentation
Pact-JVM - Provider test support library
package au.com.dius.pact.provider
import au.com.dius.pact.core.model.OptionalBody
import io.pact.plugins.jvm.core.InteractionVerificationData
/**
* Request data that is going to be used by the plugin to create the request to be verified
*/
interface RequestData {
/**
* Data for the request of the interaction
*/
val requestData: OptionalBody
/**
* Metadata associated with the request
*/
val metadata: MutableMap
}
/**
* Data used by a plugin to create a request to be verified
*/
data class RequestDataToBeVerified(
/**
* Data for the request of the interaction
*/
override val requestData: OptionalBody,
/**
* Metadata associated with the request
*/
override val metadata: MutableMap
): RequestData {
constructor(requestData: InteractionVerificationData) : this(
requestData.requestData, requestData.metadata.toMutableMap()
)
fun asInteractionVerificationData() = InteractionVerificationData(requestData, metadata)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy