Files
spring-boot-rest/spring-cucumber/src/test/java/com/baeldung/OtherDefsIntegrationTest.java
2016-10-19 16:45:26 +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:8080/baeldung");
}
@Given("^the client calls /hello$")
public void the_client_issues_GET_hello() throws Throwable {
executeGet("http://localhost:8080/hello");
}
}