Package org.chenile.cucumber.nonrest
Class CukesSteps
java.lang.Object
org.chenile.cucumber.nonrest.CukesSteps
Cucumber steps to facilitate running tests using normal IN-VM testing (NOT REST based)
These steps are generic since they leverage the scripting language and JSON PATH etc. that are supported by Spring MVC.
See the methods below for the precise Gherkin language that has been created.
These steps are generic since they leverage the scripting language and JSON PATH etc. that are supported by Spring MVC.
See the methods below for the precise Gherkin language that has been created.
-
Field Summary
Modifier and TypeFieldDescription(package private) ChenileEntryPoint
private ChenileExchangeBuilder
private CukesContext
private static SpelExpressionParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
a_warning_must_be_thrown_with_param_number_value
(Integer int1, String string) void
void
an_exception_is_thrown_with_param_number_value
(Integer int1, String string) void
before()
protected static Object
void
i_POST_a_request_with_payload
(String service, String operation, String docString) private ChenileExchange
makeExchange
(String serviceName, String operationName) void
the_response_contains_key
(String string) void
void
void
the_response_key_is
(String string, String string2)
-
Field Details
-
chenileEntryPoint
-
chenileExchangeBuilder
-
context
-
parser
-
-
Constructor Details
-
CukesSteps
public CukesSteps()
-
-
Method Details
-
makeExchange
-
before
public void before() -
i_POST_a_request_with_payload
-
the_response_contains_key
-
evaluate
-
the_response_key_is
-
the_response_does_not_contain_key
@Then("the response does not contain key {string}") public void the_response_does_not_contain_key(String string) -
a_warning_must_be_thrown_that_says
@Then("a warning must be thrown that says {string}") public void a_warning_must_be_thrown_that_says(String string) -
the_response_is_null
@Then("the response is null") public void the_response_is_null() -
an_exception_is_thrown_with_message_code
@Then("an exception is thrown with message code {int}") public void an_exception_is_thrown_with_message_code(Integer int1) -
an_exception_is_thrown_with_param_number_value
-
a_warning_must_be_thrown_with_code
@Then("a warning must be thrown with code {int}") public void a_warning_must_be_thrown_with_code(Integer int1) -
a_warning_must_be_thrown_with_param_number_value
-