Skip to content

Commit

Permalink
Fix test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Apr 5, 2024
1 parent 4025d2c commit d78acc3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ public static IndicesService mockIndicesServices(MappingLookup mappingLookup) th
Mapping mapping = new Mapping(root, new MetadataFieldMapper[0], null);
DocumentMapper documentMapper = mock(DocumentMapper.class);
when(documentMapper.mapping()).thenReturn(mapping);
when(documentMapper.mappers()).thenReturn(MappingLookup.EMPTY);
when(documentMapper.mappingSource()).thenReturn(mapping.toCompressedXContent());
RoutingFieldMapper routingFieldMapper = mock(RoutingFieldMapper.class);
when(routingFieldMapper.required()).thenReturn(false);
Expand Down

0 comments on commit d78acc3

Please sign in to comment.