Skip to content

Commit a4c0ef9

Browse files
committed
[TEST] fix checkstyle issues in dynamic mapping tests
1 parent 8eebb68 commit a4c0ef9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

server/src/test/java/org/elasticsearch/index/mapper/DynamicTemplatesTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,8 @@ public void testDynamicTemplatesForIndexTemplate() throws IOException {
326326
.endObject()
327327
.endArray()
328328
.endObject());
329-
mapper = mapperService.merge(MapperService.SINGLE_MAPPING_NAME, new CompressedXContent(mapping), MapperService.MergeReason.INDEX_TEMPLATE);
329+
mapper = mapperService.merge(MapperService.SINGLE_MAPPING_NAME, new CompressedXContent(mapping),
330+
MapperService.MergeReason.INDEX_TEMPLATE);
330331

331332
templates = mapper.mapping().getRoot().dynamicTemplates();
332333
assertEquals(3, templates.length);

server/src/test/java/org/elasticsearch/index/mapper/RootObjectMapperTests.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,15 @@
88

99
package org.elasticsearch.index.mapper;
1010

11-
import org.elasticsearch.Version;
1211
import org.elasticsearch.common.Strings;
13-
import org.elasticsearch.common.bytes.BytesArray;
14-
import org.elasticsearch.common.compress.CompressedXContent;
15-
import org.elasticsearch.common.settings.Settings;
1612
import org.elasticsearch.common.xcontent.XContentBuilder;
1713
import org.elasticsearch.common.xcontent.XContentFactory;
18-
import org.elasticsearch.common.xcontent.XContentType;
1914
import org.elasticsearch.index.mapper.MapperService.MergeReason;
2015

2116
import java.io.IOException;
2217
import java.util.Arrays;
2318
import java.util.Collections;
2419

25-
import static org.elasticsearch.test.VersionUtils.randomVersionBetween;
26-
import static org.hamcrest.Matchers.arrayWithSize;
27-
import static org.hamcrest.Matchers.containsString;
2820
import static org.hamcrest.Matchers.instanceOf;
2921

3022
public class RootObjectMapperTests extends MapperServiceTestCase {

0 commit comments

Comments
 (0)