Class FieldTypeTestCase


  • public abstract class FieldTypeTestCase
    extends ESTestCase
    Base test case for subclasses of MappedFieldType
    • Constructor Detail

      • FieldTypeTestCase

        public FieldTypeTestCase()
    • Method Detail

      • addModifier

        protected void addModifier​(FieldTypeTestCase.Modifier modifier)
        Add a mutation that will be tested for all expected semantics of equality and compatibility. These should be added in an @Before method.
      • setDummyNullValue

        protected void setDummyNullValue​(java.lang.Object value)
        Sets the null value used by the modifier for null value testing. This should be set in an @Before method.
      • createDefaultFieldType

        protected abstract MappedFieldType createDefaultFieldType()
        Create a default constructed fieldtype
      • assertNotCompatible

        protected void assertNotCompatible​(java.lang.String msg,
                                           MappedFieldType ft1,
                                           MappedFieldType ft2,
                                           boolean strict,
                                           java.lang.String... messages)
      • testClone

        public void testClone()
      • testEquals

        public void testEquals()
      • testFreeze

        public void testFreeze()
      • testCheckTypeName

        public void testCheckTypeName()
      • testCheckCompatibility

        public void testCheckCompatibility()