Esempio n. 1
0
        //-------------------------------------------------------------------------
        public virtual void test_of()
        {
            ResolvedSwaptionTrade test = ResolvedSwaptionTrade.of(TRADE_INFO, SWAPTION, PREMIUM);

            assertEquals(test.Product, SWAPTION);
            assertEquals(test.Info, TRADE_INFO);
        }
Esempio n. 2
0
        public virtual void test_builder()
        {
            ResolvedSwaptionTrade test = sut();

            assertEquals(test.Product, SWAPTION);
            assertEquals(test.Info, TRADE_INFO);
        }
Esempio n. 3
0
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         ResolvedSwaptionTrade other = (ResolvedSwaptionTrade)obj;
         return(JodaBeanUtils.equal(info, other.info) && JodaBeanUtils.equal(product, other.product) && JodaBeanUtils.equal(premium, other.premium));
     }
     return(false);
 }
Esempio n. 4
0
 internal static ResolvedSwaptionTrade sut2()
 {
     return(ResolvedSwaptionTrade.builder().product(SWAPTION2).premium(PREMIUM2).build());
 }
Esempio n. 5
0
 //-------------------------------------------------------------------------
 internal static ResolvedSwaptionTrade sut()
 {
     return(ResolvedSwaptionTrade.builder().product(SWAPTION).info(TRADE_INFO).premium(PREMIUM).build());
 }