public class RequestStepdefs extends Object
Constructor and Description |
---|
RequestStepdefs() |
Modifier and Type | Method and Description |
---|---|
void |
requests_to_are_responded_to_with(String remoteUri,
String responsePayload) |
void |
sending_a_request_to(String uri,
String endpoint) |
void |
the_reason_phrase_is(String expected) |
void |
the_response_code_is(int statusCode) |
void |
the_response_contains(String needle) |
void |
the_response_has_a_header_with_value(String headerName,
String expectedValue) |
void |
the_response_is_written(String dir) |
void |
the_response_is(String expected) |
@When(value="^sending a request to \"([^\"]*)\" on \"([^\"]*)\"$") public void sending_a_request_to(String uri, String endpoint) throws Throwable
Throwable
@Then(value="^the response is \"([^\"]*)\"$") public void the_response_is(String expected) throws Throwable
Throwable
@And(value="^the response should be written down to \"([^\"]*)\"$") public void the_response_is_written(String dir) throws Throwable
Throwable
@Then(value="^the response contains \"([^\"]*)\"$") public void the_response_contains(String needle) throws Throwable
Throwable
@Then(value="^the response code is (\\d+)$") public void the_response_code_is(int statusCode) throws Throwable
Throwable
@And(value="^the response has a header \"([^\"]*)\" with value \"([^\"]*)\"$") public void the_response_has_a_header_with_value(String headerName, String expectedValue) throws Throwable
Throwable
@And(value="^the reason phrase is \"([^\"]*)\"$") public void the_reason_phrase_is(String expected) throws Throwable
Throwable
Copyright © 2016. All rights reserved.