Skip to content

Commit 128a926

Browse files
author
andrewwilsonnew
committed
fixup 5
1 parent 0f6e76c commit 128a926

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/openapi-generator/src/test/java/org/openapitools/codegen/AbstractOptionsTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void checkOptionsHelp() {
6262
Assert.fail(String.format(Locale.ROOT, "These options weren't checked: %s.", StringUtils.join(skipped, ", ")));
6363
}
6464
final Set<String> undocumented = new HashSet<String>(testOptions);
65-
cliOptions.forEach(undocumented::remove);
65+
undocumented.removeAll(cliOptions);
6666
if (!undocumented.isEmpty()) {
6767
Assert.fail(String.format(Locale.ROOT, "These options weren't documented: %s. Are you expecting base options and calling cliOptions.clear()?", StringUtils.join(undocumented, ", ")));
6868
}

0 commit comments

Comments
 (0)