Last active
September 25, 2015 09:33
-
-
Save Hylke1982/ef6c055cc3cecd0c638d to your computer and use it in GitHub Desktop.
Hotel definition Gareth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.craftsmenlabs.gareth.api.annotation.Assume; | |
import org.craftsmenlabs.gareth.api.annotation.Baseline; | |
import org.craftsmenlabs.gareth.api.annotation.Time; | |
import java.time.Duration; | |
import java.time.temporal.ChronoUnit; | |
public class ExperimentDefinition { | |
@Baseline("Get the current number of discounted rooms booked.") | |
public void doBaseline() { | |
// get number of discounted rooms from the database | |
} | |
@Assume("There will be an increase in bookings for discounted rooms of 25 per week.") | |
public void doAssume() { | |
// Check if the number of discounted rooms is increased with 25 | |
} | |
@Time("1 Week") | |
public Duration doTime() { | |
return Duration.of(1, ChronoUnit.WEEKS); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment