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 updateable
      True if this property is updateable, false otherwise.
    • Constructor Summary

      Constructors 
      Constructor Description
      Modifier​(java.lang.String property, boolean updateable)  
    • 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.
      • updateable

        public final boolean updateable
        True if this property is updateable, false otherwise.
    • Constructor Detail

      • Modifier

        public Modifier​(java.lang.String property,
                        boolean updateable)
    • 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.