io.specmatic.core.GenerationStrategies.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of specmatic-core Show documentation
Show all versions of specmatic-core Show documentation
Turn your contracts into executable specifications. Contract Driven Development - Collaboratively Design & Independently Deploy MicroServices & MicroFrontends.
package io.specmatic.core
import io.specmatic.core.pattern.Pattern
import io.specmatic.core.pattern.ReturnValue
import io.specmatic.core.pattern.Row
import io.specmatic.core.pattern.withoutOptionality
import io.specmatic.core.value.Value
interface GenerationStrategies {
fun generatedPatternsForGenerativeTests(resolver: Resolver, pattern: Pattern, key: String): Sequence>
fun generateHttpRequestBodies(resolver: Resolver, body: Pattern, row: Row, requestBodyAsIs: Pattern, value: Value): Sequence>
fun generateHttpRequestBodies(resolver: Resolver, body: Pattern, row: Row): Sequence>
fun resolveRow(row: Row): Row
fun generateKeySubLists(key: String, subList: List): Sequence>
fun fillInTheMissingMapPatterns(
newQueryParamsList: Sequence