Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fix typo in WorkflowTaskTypeConstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Zen committed Nov 27, 2023
1 parent fb70f49 commit 4762cc2
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 4762cc2

Please sign in to comment.