maestro.orchestra.yaml.YamlAssertWithAI.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maestro-orchestra Show documentation
Show all versions of maestro-orchestra Show documentation
Maestro is a server-driven platform-agnostic library that allows to drive tests for both iOS and Android using the same implementation through an intuitive API.
package maestro.orchestra.yaml
import com.fasterxml.jackson.annotation.JsonCreator
data class YamlAssertWithAI(
val assertion: String,
val optional: Boolean = true,
val label: String? = null,
) {
companion object {
@JvmStatic
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
fun parse(assertion: String): YamlAssertWithAI {
return YamlAssertWithAI(
assertion = assertion,
optional = true,
)
}
}
}