Skip to content

Commit

Permalink
feat(citrus-spring-boot-simulator): introduce dto classes and mapstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
bbortt committed May 9, 2024
1 parent c332c6d commit a6c3d89
Show file tree
Hide file tree
Showing 70 changed files with 674 additions and 493 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public List<ScenarioParameter> getScenarioParameters() {
// payload (text area)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Goodbye"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,13 @@ public List<ScenarioParameter> getScenarioParameters() {
// greeting (text box)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("greeting")
.label("Greeting Text")
.required()
.textbox()
.value("Hi there!")
.build());

// payload (text area)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Hello"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public List<ScenarioParameter> getScenarioParameters() {
// payload (text area)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Goodbye"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,13 @@ public List<ScenarioParameter> getScenarioParameters() {
// greeting (text box)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("greeting")
.label("Greeting Text")
.required()
.textbox()
.value("Hi there!")
.build());

// payload (text area)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Hello"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public List<ScenarioParameter> getScenarioParameters() {
// greeting (text area)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Goodbye"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,13 @@ public List<ScenarioParameter> getScenarioParameters() {
// name (text box)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("greeting")
.label("Greeting Text")
.required()
.textbox()
.value("Hi there!")
.build());

// greeting (text area)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Hello"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,13 @@ public List<ScenarioParameter> getScenarioParameters() {
// name (text box)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("name")
.label("Name")
.required()
.textbox()
.value("John Doe")
.build());

// greeting (text area)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Goodbye"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ public List<ScenarioParameter> getScenarioParameters() {
// title (dropdown)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("title")
.label("Title")
.required()
.dropdown()
.addOption("Mr", "Mr.")
.addOption("Mrs", "Mrs.")
Expand All @@ -56,17 +54,13 @@ public List<ScenarioParameter> getScenarioParameters() {
// firstname (text box)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("firstname")
.label("First Name")
.required()
.textbox()
.value("Mickey")
.build());

// lastname (text box)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("lastname")
.label("Last Name")
.required()
.textbox()
.value("Mouse")
.build());
Expand All @@ -75,8 +69,6 @@ public List<ScenarioParameter> getScenarioParameters() {
// greeting (text area)
scenarioParameter.add(new ScenarioParameterBuilder()
.name("greeting")
.label("Greeting")
.required()
.textarea()
.value("Hey there Mini")
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,13 @@ public Collection<ScenarioParameter> getScenarioParameters() {
// bank account (text box)
scenarioParameters.add(ScenarioParameter.builder()
.name(Variable.ACCOUNT.name())
.label("Bank Account")
.required()
.textbox()
.value("6219653")
.build());

// sort code (text box)
scenarioParameters.add(ScenarioParameter.builder()
.name(Variable.SORT_CODE.name())
.label("Sort Code")
.required()
.textbox()
.value("12345670")
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ public List<ScenarioParameter> getScenarioParameters() {
// iban (text box)
scenarioParameters.add(ScenarioParameter.builder()
.name(Variable.IBAN.name())
.label("IBAN")
.required()
.dropdown()
.addOption("DE92123456700006219653", "DE92123456700006219653") // Valid IBAN
.addOption("DE00123456700006219653", "DE00123456700006219653") // Invalid IBAN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public Collection<ScenarioParameter> getScenarioParameters() {
// greeting (text area)
scenarioParameters.add(ScenarioParameter.builder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Goodbye"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,13 @@ public List<ScenarioParameter> getScenarioParameters() {
// name (text box)
scenarioParameters.add(ScenarioParameter.builder()
.name("greeting")
.label("Greeting Text")
.required()
.textbox()
.value("Hi there!")
.build());

// greeting (text area)
scenarioParameters.add(ScenarioParameter.builder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Hello"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public String getValue() {
public ScenarioParameter asScenarioParameter() {
return ScenarioParameter.builder()
.name(REFERENCE_ID_VAR)
.label("Reference Id")
.required()
.textbox()
.value(referenceId)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ public FaxStatusEnumType getValue() {
public ScenarioParameter asScenarioParameter() {
ScenarioParameter.ScenarioParameterBuilder statusParameterBuilder = ScenarioParameter.builder()
.name(Variables.STATUS_VAR)
.label("Fax Status")
.required()
.dropdown()
.value(status.value());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ public String getValue() {
public ScenarioParameter asScenarioParameter() {
ScenarioParameter.ScenarioParameterBuilder statusMessageParameterBuilder = ScenarioParameter.builder()
.name(STATUS_MESSAGE_VAR)
.label("Status Message")
.optional()
.textbox()
.value(statusMessage);
return statusMessageParameterBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public List<ScenarioParameter> getScenarioParameters() {
// payload (text area)
scenarioParameter.add(ScenarioParameter.builder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Goodbye"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,13 @@ public List<ScenarioParameter> getScenarioParameters() {
// greeting (text box)
scenarioParameter.add(ScenarioParameter.builder()
.name("greeting")
.label("Greeting Text")
.required()
.textbox()
.value("Hi there!")
.build());

// payload (text area)
scenarioParameter.add(ScenarioParameter.builder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Hello"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ public List<ScenarioParameter> getScenarioParameters() {
// payload (text area)
scenarioParameter.add(ScenarioParameter.builder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Goodbye"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,13 @@ public List<ScenarioParameter> getScenarioParameters() {
// greeting (text box)
scenarioParameter.add(ScenarioParameter.builder()
.name("greeting")
.label("Greeting Text")
.required()
.textbox()
.value("Hi there!")
.build());

// payload (text area)
scenarioParameter.add(ScenarioParameter.builder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Hello"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ public Collection<ScenarioParameter> getScenarioParameters() {
// greeting (text area)
scenarioParameter.add(ScenarioParameter.builder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Goodbye"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,13 @@ public List<ScenarioParameter> getScenarioParameters() {
// name (text box)
scenarioParameter.add(ScenarioParameter.builder()
.name("greeting")
.label("Greeting Text")
.required()
.textbox()
.value("Hi there!")
.build());

// greeting (text area)
scenarioParameter.add(ScenarioParameter.builder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Hello"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public String getValue() {
public ScenarioParameter asScenarioParameter() {
return ScenarioParameter.builder()
.name(NAME_VAR)
.label("Enter your name")
.required()
.textbox()
.value(name)
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,13 @@ public Collection<ScenarioParameter> getScenarioParameters() {
// name (text box)
scenarioParameter.add(ScenarioParameter.builder()
.name("name")
.label("Name")
.required()
.textbox()
.value("John Doe")
.build());

// greeting (text area)
scenarioParameter.add(ScenarioParameter.builder()
.name("payload")
.label("Payload")
.required()
.textarea()
.value(templateService.getXmlMessageTemplate("Goodbye"))
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public Collection<ScenarioParameter> getScenarioParameters() {
// title (dropdown)
scenarioParameter.add(ScenarioParameter.builder()
.name("title")
.label("Title")
.required()
.dropdown()
.addOption("Mr", "Mr.")
.addOption("Mrs", "Mrs.")
Expand All @@ -58,17 +56,13 @@ public Collection<ScenarioParameter> getScenarioParameters() {
// firstname (text box)
scenarioParameter.add(ScenarioParameter.builder()
.name("firstname")
.label("First Name")
.required()
.textbox()
.value("Mickey")
.build());

// lastname (text box)
scenarioParameter.add(ScenarioParameter.builder()
.name("lastname")
.label("Last Name")
.required()
.textbox()
.value("Mouse")
.build());
Expand All @@ -77,8 +71,6 @@ public Collection<ScenarioParameter> getScenarioParameters() {
// greeting (text area)
scenarioParameter.add(ScenarioParameter.builder()
.name("greeting")
.label("Greeting")
.required()
.textarea()
.value("Hey there Mini")
.build());
Expand Down
Loading

0 comments on commit a6c3d89

Please sign in to comment.