Skip to content

Commit

Permalink
Merge pull request #6 from Young-Zen/fix-typo-in-WorkflowTaskTypeCons…
Browse files Browse the repository at this point in the history
…traint

Fix typo in WorkflowTaskTypeConstraint
  • Loading branch information
v1r3n authored Dec 17, 2023
2 parents c1bf109 + 4762cc2 commit a207798
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private boolean isDoWhileTaskValid(
String message =
String.format(
PARAM_REQUIRED_STRING_FORMAT,
"loopExpression",
"loopCondition",
TaskType.DO_WHILE,
workflowTask.getName());
context.buildConstraintViolationWithTemplate(message).addConstraintViolation();
Expand All @@ -272,7 +272,7 @@ private boolean isDoWhileTaskValid(
String message =
String.format(
PARAM_REQUIRED_STRING_FORMAT,
"loopover",
"loopOver",
TaskType.DO_WHILE,
workflowTask.getName());
context.buildConstraintViolationWithTemplate(message).addConstraintViolation();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ public void testWorkflowTaskTypeDoWhile() {

assertTrue(
validationErrors.contains(
"loopExpression field is required for taskType: DO_WHILE taskName: encode"));
"loopCondition field is required for taskType: DO_WHILE taskName: encode"));
assertTrue(
validationErrors.contains(
"loopover field is required for taskType: DO_WHILE taskName: encode"));
"loopOver field is required for taskType: DO_WHILE taskName: encode"));
}

@Test
Expand Down

0 comments on commit a207798

Please sign in to comment.