Class FieldTypeTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.opensearch.test.OpenSearchTestCase
org.opensearch.index.mapper.FieldTypeTestCase

public abstract class FieldTypeTestCase extends OpenSearchTestCase
Base test case for subclasses of MappedFieldType
  • Field Details

    • MOCK_QSC

      public static final org.opensearch.index.query.QueryShardContext MOCK_QSC
    • MOCK_QSC_DISALLOW_EXPENSIVE

      public static final org.opensearch.index.query.QueryShardContext MOCK_QSC_DISALLOW_EXPENSIVE
    • MOCK_QSC_ENABLE_INDEX_DOC_VALUES

      public static final org.opensearch.index.query.QueryShardContext MOCK_QSC_ENABLE_INDEX_DOC_VALUES
  • Constructor Details

    • FieldTypeTestCase

      public FieldTypeTestCase()
  • Method Details

    • randomMockShardContext

      protected org.opensearch.index.query.QueryShardContext randomMockShardContext()
    • fetchSourceValue

      public static List<?> fetchSourceValue(org.opensearch.index.mapper.MappedFieldType fieldType, Object sourceValue) throws IOException
      Throws:
      IOException
    • fetchSourceValue

      public static List<?> fetchSourceValue(org.opensearch.index.mapper.MappedFieldType fieldType, Object sourceValue, String format) throws IOException
      Throws:
      IOException