com.ubertob.pesticide.core.WipData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pesticide-core Show documentation
Show all versions of pesticide-core Show documentation
A Library To Write Domain-Driven Tests
package com.ubertob.pesticide.core
import java.time.LocalDate
import kotlin.reflect.KClass
/**
* WipData is the class to keep together the information for WorkInProgress test.
* Normally it shouldn't be created directly but using the {@code wip()} extension of the DdtScenario inside the DDT.
*
* See also {@link DdtScenario} and {@link DomainDrivenTest}
*/
data class WipData(val dueDate: LocalDate, val envWhereItShouldWork: Set>, val reason: String) {
fun shouldWorkFor(environment: DdtProtocol): Boolean = environment::class in envWhereItShouldWork
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy