Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fslev committed Oct 3, 2022
1 parent 0816ea1 commit 848c479
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/io/json/compare/matcher/JsonArrayMatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ private List<String> matchWithJsonArray(int expPosition, JsonNode expElement, Js
}
break;
case DO_NOT_MATCH_ANY:
diffs.add(String.format("Actual JSON array has extra elements.\nCondition %s from position %s means there" +
" should be no more actual elements to match",
diffs.add(String.format("Actual JSON array has extra elements.\nExpected condition %s from position %s means there" +
" should be no more actual elements other than the ones expected",
expElement, expPosition + 1));
return diffs;
}
Expand All @@ -86,7 +86,7 @@ private List<String> matchWithJsonArray(int expPosition, JsonNode expElement, Js
diffs.add("Expected element from position " + (expPosition + 1) + " was NOT FOUND:\n"
+ MessageUtil.cropL(JSONCompare.prettyPrint(expElement)));
} else if (useCase == UseCase.MATCH_ANY) {
diffs.add(String.format("Actual Json Array has no extra elements. Condition %s from position %s means there" +
diffs.add(String.format("Actual Json Array has no extra elements. Expected condition %s from position %s means there" +
" should be more actual elements", expElement, expPosition + 1));
}
return diffs;
Expand Down

0 comments on commit 848c479

Please sign in to comment.