Class MockObjectWithWriteReadOnlyFields


  • public class MockObjectWithWriteReadOnlyFields
    extends Object
    Used to test READ_ONLY (only for serialization) and WRITE_ONLY (only for deserialization) fields
    Author:
    Volodymyr Masliy
    • Constructor Detail

      • MockObjectWithWriteReadOnlyFields

        public MockObjectWithWriteReadOnlyFields()
      • MockObjectWithWriteReadOnlyFields

        public MockObjectWithWriteReadOnlyFields​(String _id,
                                                 String someReadOnlyField,
                                                 String someWriteOnlyField)
    • Method Detail

      • get_id

        public String get_id()
      • set_id

        public void set_id​(String _id)
      • getSomeReadOnlyField

        public String getSomeReadOnlyField()
      • setSomeReadOnlyField

        public void setSomeReadOnlyField​(String someReadOnlyField)
      • getSomeWriteOnlyField

        public String getSomeWriteOnlyField()
      • setSomeWriteOnlyField

        public void setSomeWriteOnlyField​(String someWriteOnlyField)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object