Remove System.out.println call from test.

Fails the gradle check task

Original commit: elastic/x-pack-elasticsearch@daace999a7
This commit is contained in:
David Kyle 2016-11-28 11:08:28 +00:00
parent 02a94ce729
commit 39fe1b7b09
1 changed files with 3 additions and 2 deletions

View File

@ -189,11 +189,12 @@ public class ElasticsearchMappingsTests extends ESTestCase {
if (ReservedFieldNames.RESERVED_FIELD_NAMES.size() != expected.size()) {
Set<String> diff = new HashSet<>(ReservedFieldNames.RESERVED_FIELD_NAMES);
diff.removeAll(expected);
System.out.println("Fields in ReservedFieldNames but not in expected: " + diff);
StringBuilder errorMessage = new StringBuilder("Fields in ReservedFieldNames but not in expected: ").append(diff);
diff = new HashSet<>(expected);
diff.removeAll(ReservedFieldNames.RESERVED_FIELD_NAMES);
System.out.println("Fields in expected but not in ReservedFieldNames: " + diff);
errorMessage.append("\nFields in expected but not in ReservedFieldNames: ").append(diff);
fail(errorMessage.toString());
}
assertEquals(ReservedFieldNames.RESERVED_FIELD_NAMES.size(), expected.size());