Skip to content

Commit

Permalink
Close Taskana#2200 - fix the exception text for wrong classification …
Browse files Browse the repository at this point in the history
…categoeries
  • Loading branch information
ryzheboka committed Jan 25, 2024
1 parent 7ef02cf commit 1d215aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -961,7 +961,7 @@ void should_ThrowInvalidArgumentEx_When_ClassificationTypesDoesNotExist() {
"Parameter classificationCategoriesByType "
+ "(taskana.classification.categories.<KEY>) "
+ "contains invalid Classification Types."
+ " configured: [VALID] detected: [DOES_NOT_EXIST]");
+ " configured: [VALID] existing: [DOES_NOT_EXIST]");
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,6 @@ public Builder enforceServiceLevel(boolean enforceServiceLevel) {
this.enforceServiceLevel = enforceServiceLevel;
return this;
}

// endregion

// region authentication configuration
Expand Down Expand Up @@ -1451,8 +1450,10 @@ private void validateConfiguration() {
"Parameter classificationCategoriesByType (taskana.classification.categories.<KEY>)"
+ " contains invalid Classification Types. "
+ "configured: %s "
+ "detected: %s",
classificationTypes, classificationCategoriesByType.keySet()));
+ "existing: %s",
classificationTypes,
"[" + String.join(DEFAULT_TASKANA_PROPERTY_SEPARATOR,
classificationCategoriesByType.keySet()) + "]"));
}

if (!classificationCategoriesByType.keySet().containsAll(classificationTypes)) {
Expand Down

0 comments on commit 1d215aa

Please sign in to comment.