Class FieldTypeTestCase.Modifier

  • Enclosing class:
    FieldTypeTestCase

    public abstract static class FieldTypeTestCase.Modifier
    extends java.lang.Object
    Abstraction for mutating a property of a MappedFieldType
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String property
      The name of the property that is being modified.
      boolean strictOnly
      true if this modifier only makes types incompatible in strict mode, false otherwise
    • Constructor Summary

      Constructors 
      Constructor Description
      Modifier​(java.lang.String property, boolean strictOnly)  
    • Method Summary

      Modifier and Type Method Description
      abstract void modify​(MappedFieldType ft)
      Modifies the property
      void normalizeOther​(MappedFieldType other)
      Optional method to implement that allows the field type that will be compared to be modified, so that it does not have the default value for the property being modified.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • property

        public final java.lang.String property
        The name of the property that is being modified. Used in test failure messages.
      • strictOnly

        public final boolean strictOnly
        true if this modifier only makes types incompatible in strict mode, false otherwise
    • Constructor Detail

      • Modifier

        public Modifier​(java.lang.String property,
                        boolean strictOnly)
    • Method Detail

      • modify

        public abstract void modify​(MappedFieldType ft)
        Modifies the property
      • normalizeOther

        public void normalizeOther​(MappedFieldType other)
        Optional method to implement that allows the field type that will be compared to be modified, so that it does not have the default value for the property being modified.