lv.ctco.cukes.rest.api.WhenSteps Maven / Gradle / Ivy
package lv.ctco.cukes.rest.api;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import io.cucumber.java.en.When;
import lv.ctco.cukes.core.internal.context.InflateContext;
import lv.ctco.cukes.http.facade.HttpResponseFacade;
@Singleton
@InflateContext
public class WhenSteps {
@Inject
HttpResponseFacade facade;
@When("^the client performs (.+) request on \"(.+)\"$")
public void perform_Http_Request(String httpMethod, String url) throws Throwable {
facade.setResponsePrefix("");
facade.doRequest(httpMethod, url);
}
}