Class FieldMapperTestCase<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

@Deprecated public abstract class FieldMapperTestCase<T extends org.opensearch.index.mapper.FieldMapper.Builder<?>> extends OpenSearchSingleNodeTestCase
Deprecated.
Base class for testing FieldMappers.
  • Field Details

    • SETTINGS

      protected final org.opensearch.common.settings.Settings SETTINGS
      Deprecated.
  • Constructor Details

    • FieldMapperTestCase

      public FieldMapperTestCase()
      Deprecated.
  • Method Details

    • unsupportedProperties

      protected Set<String> unsupportedProperties()
      Deprecated.
    • addModifier

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

      This should be called in a @Before method

    • newBuilder

      protected abstract T newBuilder()
      Deprecated.
    • testMergeConflicts

      public void testMergeConflicts()
      Deprecated.
    • testSerialization

      public void testSerialization() throws IOException
      Deprecated.
      Throws:
      IOException
    • getIndexMapperSettings

      protected org.opensearch.common.settings.Settings getIndexMapperSettings()
      Deprecated.
    • assertSerializes

      protected void assertSerializes(String indexname, T builder) throws IOException
      Deprecated.
      Throws:
      IOException