All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lv.ctco.cukes.rest.api.WhenSteps Maven / Gradle / Ivy

There is a newer version: 1.0.10
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy