Package org.elasticsearch.index.mapper
Class MapperTestCase.ExampleMalformedValue
java.lang.Object
org.elasticsearch.index.mapper.MapperTestCase.ExampleMalformedValue
- Enclosing class:
MapperTestCase
An example of a malformed value.
-
Method Summary
Modifier and TypeMethodDescriptionerrorMatches(String contains) Match error messages that contain a string.errorMatches(org.hamcrest.Matcher<String> newMatcher) Match the error message in an arbitrary way.mapping(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> newMapping) Set the mapping used for this value.
-
Method Details
-
mapping
public MapperTestCase.ExampleMalformedValue mapping(org.elasticsearch.core.CheckedConsumer<org.elasticsearch.xcontent.XContentBuilder, IOException> newMapping) Set the mapping used for this value. If not called the default isMapperTestCase.minimalMapping(org.elasticsearch.xcontent.XContentBuilder). -
errorMatches
Match error messages that contain a string. -
errorMatches
Match the error message in an arbitrary way.
-