public class MsgBaseStepDefinition extends Object
| Constructor and Description |
|---|
MsgBaseStepDefinition() |
| Modifier and Type | Method and Description |
|---|---|
void |
before(io.cucumber.java.Scenario scenario)
Before.
|
void |
clearMessage(String dummy,
String eventName)
eventName to Produce message.
|
void |
consumeMessage(String dummy,
String eventName,
String id,
String resource,
String type,
Map<String,String> keyValue)
Consume message.
|
void |
dummyGiven(String dummy)
given sql.
|
void |
produceMessage(String dummy,
long sleep)
Produce message.
|
void |
produceMessage(String dummy,
String eventName,
String resource,
String type,
io.cucumber.datatable.DataTable messages)
Produce message.
|
void |
produceMessage(String dummy,
String eventName,
String resource,
String type,
List<String> messages)
Produce message.
|
void |
produceMessageMapson(String dummy,
String eventName,
String resource,
String type,
Map<String,String> messages)
Produce message.
|
void |
produceMessageWithPartition(String dummy,
String eventName,
Integer partition,
String resource,
String type,
Object messages)
Produce message with partition.
|
void |
verifyConsumedJSONObject(String dummy,
String eventName,
String id,
String resource,
String type,
List<String> csvson)
Verify consumed json object.
|
public void before(io.cucumber.java.Scenario scenario)
scenario - the scenario@Given(value="As a user perform message (.*) action$") public void dummyGiven(String dummy) throws Exception
dummy - the dummyException - the exception@Given(value="Send message (.*) for event (.*) in partition (.*) on (.*) with type (.*)$") public void produceMessageWithPartition(String dummy, String eventName, Integer partition, String resource, String type, Object messages) throws MessageNotDefinedException
eventName - the event namepartition - partitionresource - the resourcetype - the typemessages - the messagesMessageNotDefinedException - the message not defined exception@Given(value="Pause message (.*) for process for (.*) milliseconds$") public void produceMessage(String dummy, long sleep) throws InterruptedException
sleep - the sleepInterruptedException - the interrupted exception@Given(value="Clear the consumed message (.*) for the event (.*)$") public void clearMessage(String dummy, String eventName) throws InterruptedException
eventName - the eventNameInterruptedException - the interrupted exception@Given(value="Send message (.*) for event (.*) on (.*) with type (.*)$") public void produceMessage(String dummy, String eventName, String resource, String type, io.cucumber.datatable.DataTable messages) throws MessageNotDefinedException
eventName - the event nameresource - the resourcetype - the typemessages - the messagesMessageNotDefinedException - the message not defined exception@Given(value="Send inline message (.*) for event (.*) on (.*) with type (.*)$") public void produceMessage(String dummy, String eventName, String resource, String type, List<String> messages) throws MessageNotDefinedException
eventName - the event nameresource - the resourcetype - the typemessages - the messagesMessageNotDefinedException - the message not defined exception@Given(value="Send mapson message (.*) for event (.*) on (.*) with type (.*)$") public void produceMessageMapson(String dummy, String eventName, String resource, String type, Map<String,String> messages) throws MessageNotDefinedException
eventName - the event nameresource - the resourcetype - the typemessages - the messagesMessageNotDefinedException - the message not defined exception@Given(value="Verify (.*) for event (.*) contains (.*) on (.*) with type (.*)$") public void verifyConsumedJSONObject(String dummy, String eventName, String id, String resource, String type, List<String> csvson) throws InterruptedException, io.virtualan.mapson.exception.BadInputDataException, MessageNotDefinedException
eventName - the event nameid - the idresource - the resourcetype - the typecsvson - the csvsonInterruptedException - the interrupted exceptionio.virtualan.mapson.exception.BadInputDataException - bad input data exceptionMessageNotDefinedException - the message not defined exception@Given(value="Verify-by-elements (.*) for event (.*) contains (.*) on (.*) with type (.*)$") public void consumeMessage(String dummy, String eventName, String id, String resource, String type, Map<String,String> keyValue) throws InterruptedException, MessageNotDefinedException
eventName - the event nameid - the idresource - the resourcetype - the typekeyValue - the key valueInterruptedException - interrupted exceptionMessageNotDefinedException - the message not defined exceptionCopyright © 2021. All rights reserved.