Skip to content

Instantly share code, notes, and snippets.

@Hylke1982
Last active September 25, 2015 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hylke1982/ef6c055cc3cecd0c638d to your computer and use it in GitHub Desktop.
Save Hylke1982/ef6c055cc3cecd0c638d to your computer and use it in GitHub Desktop.
Hotel definition Gareth
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