Class AbstractBuilderTestCase

    • Field Detail

      • STRING_FIELD_NAME

        public static final java.lang.String STRING_FIELD_NAME
        See Also:
        Constant Field Values
      • STRING_ALIAS_FIELD_NAME

        public static final java.lang.String STRING_ALIAS_FIELD_NAME
        See Also:
        Constant Field Values
      • STRING_FIELD_NAME_2

        protected static final java.lang.String STRING_FIELD_NAME_2
        See Also:
        Constant Field Values
      • INT_ALIAS_FIELD_NAME

        protected static final java.lang.String INT_ALIAS_FIELD_NAME
        See Also:
        Constant Field Values
      • INT_RANGE_FIELD_NAME

        protected static final java.lang.String INT_RANGE_FIELD_NAME
        See Also:
        Constant Field Values
      • DOUBLE_FIELD_NAME

        protected static final java.lang.String DOUBLE_FIELD_NAME
        See Also:
        Constant Field Values
      • BOOLEAN_FIELD_NAME

        protected static final java.lang.String BOOLEAN_FIELD_NAME
        See Also:
        Constant Field Values
      • DATE_NANOS_FIELD_NAME

        protected static final java.lang.String DATE_NANOS_FIELD_NAME
        See Also:
        Constant Field Values
      • DATE_FIELD_NAME

        protected static final java.lang.String DATE_FIELD_NAME
        See Also:
        Constant Field Values
      • DATE_ALIAS_FIELD_NAME

        protected static final java.lang.String DATE_ALIAS_FIELD_NAME
        See Also:
        Constant Field Values
      • DATE_RANGE_FIELD_NAME

        protected static final java.lang.String DATE_RANGE_FIELD_NAME
        See Also:
        Constant Field Values
      • OBJECT_FIELD_NAME

        protected static final java.lang.String OBJECT_FIELD_NAME
        See Also:
        Constant Field Values
      • GEO_POINT_FIELD_NAME

        protected static final java.lang.String GEO_POINT_FIELD_NAME
        See Also:
        Constant Field Values
      • GEO_POINT_ALIAS_FIELD_NAME

        protected static final java.lang.String GEO_POINT_ALIAS_FIELD_NAME
        See Also:
        Constant Field Values
      • GEO_SHAPE_FIELD_NAME

        protected static final java.lang.String GEO_SHAPE_FIELD_NAME
        See Also:
        Constant Field Values
      • MAPPED_FIELD_NAMES

        protected static final java.lang.String[] MAPPED_FIELD_NAMES
      • MAPPED_LEAF_FIELD_NAMES

        protected static final java.lang.String[] MAPPED_LEAF_FIELD_NAMES
    • Constructor Detail

      • AbstractBuilderTestCase

        public AbstractBuilderTestCase()
    • Method Detail

      • getIndex

        protected static Index getIndex()
      • getPlugins

        protected java.util.Collection<java.lang.Class<? extends Plugin>> getPlugins()
      • initializeAdditionalMappings

        protected void initializeAdditionalMappings​(MapperService mapperService)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • beforeClass

        public static void beforeClass()
      • createUniqueRandomName

        protected static java.lang.String createUniqueRandomName()
        make sure query names are unique by suffixing them with increasing counter
      • createTestIndexSettings

        protected Settings createTestIndexSettings()
      • expectedFieldName

        protected static java.lang.String expectedFieldName​(java.lang.String builderFieldName)
      • afterClass

        public static void afterClass()
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • beforeTest

        public void beforeTest()
                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • afterTest

        public void afterTest()
      • createShardContextWithNoType

        protected static QueryShardContext createShardContextWithNoType()
        Returns:
        a new QueryShardContext based on an index with no type registered