Class FieldMapperTestCase2<T extends org.elasticsearch.index.mapper.FieldMapper.Builder<?>>

java.lang.Object
org.junit.Assert
org.apache.lucene.util.LuceneTestCase
Type Parameters:
T - builder for the mapper to test

public abstract class FieldMapperTestCase2<T extends org.elasticsearch.index.mapper.FieldMapper.Builder<?>>
extends MapperTestCase
Base class for testing FieldMappers.
  • Constructor Details

  • Method Details

    • unsupportedProperties

      protected java.util.Set<java.lang.String> unsupportedProperties()
    • addModifier

      protected void addModifier​(java.lang.String property, boolean updateable, java.util.function.BiConsumer<T,​T> method)
      Add type-specific modifiers for consistency checking. This should be called in a @Before method
    • addBooleanModifier

      protected void addBooleanModifier​(java.lang.String property, boolean updateable, java.util.function.BiConsumer<T,​java.lang.Boolean> method)
      Add type-specific modifiers for consistency checking. This should be called in a @Before method
    • newBuilder

      protected abstract T newBuilder()
    • testMergeConflicts

      public void testMergeConflicts()
    • testSerialization

      public final void testSerialization() throws java.io.IOException
      Throws:
      java.io.IOException
    • assertSerializationWarnings

      protected void assertSerializationWarnings()
    • assertSerializes

      protected void assertSerializes​(T builder) throws java.io.IOException
      Throws:
      java.io.IOException
    • testMinimalToMaximal

      public void testMinimalToMaximal()
      Overrides:
      testMinimalToMaximal in class MapperTestCase