Simplify formatting in geo-IP test case
This commit cleans up the formatting in a geo-IP processor factory test case so that the code does not consume a silly number of lines.
This commit is contained in:
parent
273b37aaa4
commit
c65d2339db
|
@ -317,9 +317,8 @@ public class GeoIpProcessorFactoryTests extends ESTestCase {
|
|||
assertNull(lazyLoader.databaseReader.get());
|
||||
}
|
||||
|
||||
final IngestDocument document =
|
||||
new IngestDocument(
|
||||
"index", "type", "id", "routing", 1L, VersionType.EXTERNAL, Collections.singletonMap("_field", "1.1.1.1"));
|
||||
final Map<String, Object> field = Collections.singletonMap("_field", "1.1.1.1");
|
||||
final IngestDocument document = new IngestDocument("index", "type", "id", "routing", 1L, VersionType.EXTERNAL, field);
|
||||
|
||||
Map<String, Object> config = new HashMap<>();
|
||||
config.put("field", "_field");
|
||||
|
|
Loading…
Reference in New Issue