Fix line length
This commit is contained in:
parent
2e1d152fc0
commit
40b80ae104
|
@ -36,8 +36,10 @@ public class MultiFieldIncludeInAllMapperTests extends ESTestCase {
|
|||
|
||||
// first check that for newer versions we throw exception if include_in_all is found withing multi field
|
||||
MapperService mapperService = MapperTestUtils.newMapperService(createTempDir(), Settings.EMPTY);
|
||||
Exception e = expectThrows(MapperParsingException.class, () -> mapperService.parse("type", new CompressedXContent(mapping.string()), true));
|
||||
assertThat(e.getMessage(), equalTo("include_in_all in multi fields is not allowed. Found the include_in_all in field [c] which is within a multi field."));
|
||||
Exception e = expectThrows(MapperParsingException.class, () ->
|
||||
mapperService.parse("type", new CompressedXContent(mapping.string()), true));
|
||||
assertEquals("include_in_all in multi fields is not allowed. Found the include_in_all in field [c] which is within a multi field.",
|
||||
e.getMessage());
|
||||
}
|
||||
|
||||
private static XContentBuilder createMappingWithIncludeInAllInMultiField() throws IOException {
|
||||
|
|
Loading…
Reference in New Issue