Files
spring-boot-rest/spring-cucumber/src/test/java/com/baeldung/OtherDefsIntegrationTest.java
Grzegorz Piwowarek 01406f1c8b Cucumber fix (#2761)
* Rest-assured fix

* Cucumber fix
2017-10-19 17:51:31 +02:00

16 lines
496 B
Java

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