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 java.util.List<?> fetchSourceValue​(org.elasticsearch.index.mapper.MappedFieldType fieldType, java.lang.Object sourceValue) throws java.io.IOException
      Throws:
      java.io.IOException
    • fetchSourceValue

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

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