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:
Jason Tedor 2018-12-18 22:20:51 -05:00
parent 273b37aaa4
commit c65d2339db
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 2 additions and 3 deletions

View File

@ -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");