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

com.ubertob.pesticide.core.WipData.kt Maven / Gradle / Ivy

There is a newer version: 1.6.6
Show newest version
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