DelayStepDefinitions { @Then("^wait for (\\d+) minute$") public static void waitInMinutes(int minutes) throws Throwable { Thread.sleep(minutes * 60 * 1000); }  @Then("^wait for (\\d+) minute$") static void waitInMinutes(int minutes); @Then("^wait for (\\d+) seconds$") static void waitInSeconds(long seconds); @Then("^wait for (\\d+) minutes & (\\d+) seconds") static void waitInMinutesAndSeconds(long minutes, long seconds);  }
@Test @Ignore public void testWaitInMinutes() throws Throwable { DelayStepDefinitions.waitInMinutes(1); }