2016-07-26 09:43:09 -05:00

17 lines
483 B
Java

package com.baeldung;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.When;
public class OtherDefs extends SpringIntegrationTest{
@When("^the client calls /baeldung$")
public void the_client_issues_POST_hello() throws Throwable{
executePost("http://localhost:8080/baeldung");
}
@Given("^the client calls /hello$")
public void the_client_issues_GET_hello() throws Throwable{
executeGet("http://localhost:8080/hello");
}
}