public class RestStep extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PORT |
| Constructor and Description |
|---|
RestStep() |
| Modifier and Type | Method and Description |
|---|---|
void |
array_of_size_is(String key,
int size) |
void |
content_is(String contentContains) |
void |
header_is(String headerKey,
String headerValue) |
void |
index_has_the_key_and_value(int index,
String key,
String value) |
void |
json_key_is(String key,
String value) |
void |
object_has_the_value(String query,
Boolean not,
String value) |
void |
port_is(int port) |
void |
status_is(int status) |
void |
that_url_is(String url) |
void |
time_is_below_milliseconds(int maxTime,
TimeUnit timeUnit) |
void |
we_get(String path) |
void |
we_send_param_with_value(String key,
String value) |
void |
we_send(String content) |
@Given(value="^that url is \"([^\"]*)\"$") public void that_url_is(String url) throws Throwable
Throwable@Given(value="^port is (\\d+)$")
public void port_is(int port)
throws Throwable
Throwable@Given(value="^we get \"([^\"]*)\"$") public void we_get(String path) throws Throwable
Throwable@Given(value="^we send param \"([^\"]*)\" with ?(?:value)? \"([^\"]*)\"$") public void we_send_param_with_value(String key, String value) throws Throwable
Throwable@Given(value="^we send:$") public void we_send(String content) throws Throwable
Throwable@Then(value="^status is (\\d+)$")
public void status_is(int status)
throws Throwable
Throwable@Then(value="^content is \"([^\"]*)\"$") public void content_is(String contentContains) throws Throwable
Throwable@Then(value="^json key \"([^\"]*)\" is \"([^\"]*)\"$") public void json_key_is(String key, String value) throws Throwable
Throwable@Then(value="^header \"([^\"]*)\" is \"([^\"]*)\"$") public void header_is(String headerKey, String headerValue) throws Throwable
Throwable@Then(value="^index (\\d+) has the key \"([^\"]*)\" and value \"([^\"]*)\"$")
public void index_has_the_key_and_value(int index,
String key,
String value)
throws Throwable
Throwable@Then(value="^parameter \"([^\"]*)\" (?:is?( not)?) \"?([^\"]*|\\d+.\\d+|\\d+)?\"?$") public void object_has_the_value(String query, Boolean not, String value) throws Throwable
Throwable@Then(value="^size of \"([^\"]*)\" is (\\d+)$") public void array_of_size_is(String key, int size) throws Throwable
ThrowableCopyright © 2016. All rights reserved.