//------------------------------------------------------------------------- public virtual void coverage() { SabrSwaptionDefinition test = SabrSwaptionDefinition.of(NAME, CONVENTION, DAY_COUNT, INTERPOLATOR_2D); coverImmutableBean(test); SabrSwaptionDefinition test2 = SabrSwaptionDefinition.of(NAME2, CONVENTION2, DAY_COUNT2, INTERPOLATOR_2D2); coverBeanEquals(test, test2); }
//------------------------------------------------------------------------- public virtual void of() { SabrSwaptionDefinition test = SabrSwaptionDefinition.of(NAME, CONVENTION, DAY_COUNT, INTERPOLATOR_2D); assertEquals(test.Name, NAME); assertEquals(test.Convention, CONVENTION); assertEquals(test.DayCount, DAY_COUNT); assertEquals(test.Interpolator, INTERPOLATOR_2D); }
//----------------------------------------------------------------------- public override bool Equals(object obj) { if (obj == this) { return(true); } if (obj != null && obj.GetType() == this.GetType()) { SabrSwaptionDefinition other = (SabrSwaptionDefinition)obj; return(JodaBeanUtils.equal(name, other.name) && JodaBeanUtils.equal(convention, other.convention) && JodaBeanUtils.equal(dayCount, other.dayCount) && JodaBeanUtils.equal(interpolator, other.interpolator)); } return(false); }
public virtual void test_serialization() { SabrSwaptionDefinition test = SabrSwaptionDefinition.of(NAME, CONVENTION, DAY_COUNT, INTERPOLATOR_2D); assertSerialization(test); }