Skip to content

Instantly share code, notes, and snippets.

@DarylWM
Created November 29, 2013 04:03
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 DarylWM/7701424 to your computer and use it in GitHub Desktop.
Save DarylWM/7701424 to your computer and use it in GitHub Desktop.
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import static org.fest.assertions.Assertions.assertThat;
public class Steps {
@Given("^I have setup Play$")
public void I_have_setup_Play() throws Throwable {
}
@When("^I go to the landing page$")
public void I_go_to_the_landing_page() throws Throwable {
GlobalHooks.TEST_BROWSER.goTo("http://localhost:" + GlobalHooks.PORT);
}
@Then("^the title should be \"([^\"]*)\"$")
public void the_title_should_be(String title) throws Throwable {
assertThat(GlobalHooks.TEST_BROWSER.title()).isEqualTo(title);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment