Class FieldTypeTestCase

java.lang.Object
org.junit.Assert
org.apache.lucene.util.LuceneTestCase
org.elasticsearch.test.ESTestCase
org.elasticsearch.index.mapper.FieldTypeTestCase

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

    • MOCK_CONTEXT

      public static final org.elasticsearch.index.query.SearchExecutionContext MOCK_CONTEXT
    • MOCK_CONTEXT_DISALLOW_EXPENSIVE

      public static final org.elasticsearch.index.query.SearchExecutionContext MOCK_CONTEXT_DISALLOW_EXPENSIVE
  • Constructor Details

    • FieldTypeTestCase

      public FieldTypeTestCase()
  • Method Details

    • randomMockContext

      protected org.elasticsearch.index.query.SearchExecutionContext randomMockContext()
    • fetchSourceValue

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

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

      public static List<?> fetchSourceValues(org.elasticsearch.index.mapper.MappedFieldType fieldType, Object... values) throws IOException
      Throws:
      IOException