コード例 #1
0
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            SimpleLegalEntity test = SimpleLegalEntity.of(LEI, "US GOV", Country.US);

            coverImmutableBean(test);
            SimpleLegalEntity test2 = SimpleLegalEntity.of(LEI2, "GB GOV", Country.GB);

            coverBeanEquals(test, test2);
        }
コード例 #2
0
 //-----------------------------------------------------------------------
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         SimpleLegalEntity other = (SimpleLegalEntity)obj;
         return(JodaBeanUtils.equal(legalEntityId, other.legalEntityId) && JodaBeanUtils.equal(name, other.name) && JodaBeanUtils.equal(country, other.country));
     }
     return(false);
 }
コード例 #3
0
        public virtual void test_serialization()
        {
            SimpleLegalEntity test = SimpleLegalEntity.of(LEI, "US GOV", Country.US);

            assertSerialization(test);
        }