|
31 | 31 | import org.elasticsearch.xcontent.XContentBuilder; |
32 | 32 | import org.elasticsearch.xcontent.XContentFactory; |
33 | 33 | import org.elasticsearch.xcontent.XContentType; |
34 | | -import org.hamcrest.Matcher; |
35 | 34 | import org.junit.AssumptionViolatedException; |
36 | 35 |
|
37 | 36 | import java.io.IOException; |
38 | 37 | import java.util.Collection; |
39 | 38 | import java.util.Collections; |
40 | 39 | import java.util.List; |
41 | 40 | import java.util.Map; |
42 | | -import java.util.function.Function; |
43 | 41 | import java.util.function.Supplier; |
44 | 42 | import java.util.stream.Stream; |
45 | 43 |
|
|
48 | 46 | import static org.hamcrest.Matchers.empty; |
49 | 47 | import static org.hamcrest.Matchers.equalTo; |
50 | 48 | import static org.hamcrest.Matchers.is; |
51 | | -import static org.hamcrest.Matchers.notANumber; |
52 | 49 |
|
53 | 50 | public class ScaledFloatFieldMapperTests extends NumberFieldMapperTests { |
54 | 51 |
|
@@ -475,14 +472,9 @@ public List<SyntheticSourceInvalidExample> invalidExample() throws IOException { |
475 | 472 | } |
476 | 473 | } |
477 | 474 |
|
478 | | - @Override |
479 | | - protected Function<Object, Object> loadBlockExpected() { |
480 | | - return v -> (Number) v; |
481 | | - } |
482 | | - |
483 | | - @Override |
484 | | - protected Matcher<?> blockItemMatcher(Object expected) { |
485 | | - return "NaN".equals(expected) ? notANumber() : equalTo(expected); |
| 475 | + protected BlockReaderSupport getSupportedReaders(MapperService mapper, String loaderFieldName) { |
| 476 | + assumeTrue("Disabled, tested by ScaledFloatFieldBlockLoaderTests instead", false); |
| 477 | + return null; |
486 | 478 | } |
487 | 479 |
|
488 | 480 | @Override |
|
0 commit comments