Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class StepDefs implements En {
public StepDefs() {
Given("^a cinephile$", () -> me = new Cinephile("me"));
Given("^the last showing is not started yet$",
() -> lastShowing = new Showing(now().plusHours(3)));
When("^the user asks for the next showings$",
() -> nextShowings = searchShowings.searchNextShowingsFor(me));
Then("^the returned showings are not started yet$", () -> {
assertThat( -> !showing.hasStarted()))
Then("^the returned showings are not starting in the next 15 minutes$", () -> {
.noneMatch( showing -> showing.startsBefore(now().plusMinutes(15)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.