Fix test compilation

This commit is contained in:
jimczi 2020-10-28 08:58:09 +01:00
parent dcc433c971
commit 2492f48375
1 changed files with 9 additions and 9 deletions

View File

@ -155,10 +155,10 @@ public class KeyedFlatObjectFieldTypeTests extends FieldTypeTestCase {
}
public void testFetchIsEmpty() throws IOException {
Map<String, Object> sourceValue = Map.of("key", "value");
KeyedFlattenedFieldType ft = createFieldType();
Map<String, Object> sourceValue = Collections.singletonMap("key", "value");
KeyedFlatObjectFieldType ft = createFieldType();
assertEquals(List.of(), fetchSourceValue(ft, sourceValue));
assertEquals(List.of(), fetchSourceValue(ft, null));
assertEquals(Collections.emptyList(), fetchSourceValue(ft, sourceValue));
assertEquals(Collections.emptyList(), fetchSourceValue(ft, null));
}
}