Class FieldTypeTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.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
  • Constructor Details

  • Method Details

    • randomMockShardContext

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

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

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