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

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

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

    • FieldMapperTestCase2

      public FieldMapperTestCase2()
  • Method Details

    • unsupportedProperties

      protected Set<String> unsupportedProperties()
    • addModifier

      protected void addModifier(String property, boolean updateable, BiConsumer<T,T> method)
      Add type-specific modifiers for consistency checking.

      This should be called in a @Before method

    • addBooleanModifier

      protected void addBooleanModifier(String property, boolean updateable, BiConsumer<T,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 IOException
      Throws:
      IOException
    • assertSerializationWarnings

      protected void assertSerializationWarnings()
    • assertSerializes

      protected void assertSerializes(T builder) throws IOException
      Throws:
      IOException
    • testMinimalToMaximal

      public void testMinimalToMaximal()
      Overrides:
      testMinimalToMaximal in class MapperTestCase