test: fix generic type

This commit is contained in:
Martijn van Groningen 2016-07-27 14:56:17 +02:00
parent d1b7a335cb
commit 7e3d5b21bb
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ public class ForEachProcessorTests extends ESTestCase {
)); ));
processor.execute(ingestDocument); processor.execute(ingestDocument);
List<String> result = ingestDocument.getFieldValue("values", List.class); List<Object> result = ingestDocument.getFieldValue("values", List.class);
assertThat(result.get(0), equalTo("STRING")); assertThat(result.get(0), equalTo("STRING"));
assertThat(result.get(1), equalTo(1)); assertThat(result.get(1), equalTo(1));
assertThat(result.get(2), equalTo(null)); assertThat(result.get(2), equalTo(null));