Exemple #1
0
        public virtual void test_builder()
        {
            ResolvedIborFixingDepositTrade test = ResolvedIborFixingDepositTrade.builder().product(DEPOSIT).info(TRADE_INFO).build();

            assertEquals(test.Product, DEPOSIT);
            assertEquals(test.Info, TRADE_INFO);
        }
Exemple #2
0
        //-------------------------------------------------------------------------
        public virtual void test_of()
        {
            ResolvedIborFixingDepositTrade test = ResolvedIborFixingDepositTrade.of(TRADE_INFO, DEPOSIT);

            assertEquals(test.Product, DEPOSIT);
            assertEquals(test.Info, TRADE_INFO);
        }
Exemple #3
0
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            ResolvedIborFixingDepositTrade test1 = ResolvedIborFixingDepositTrade.builder().product(DEPOSIT).info(TRADE_INFO).build();

            coverImmutableBean(test1);
            ResolvedIborFixingDepositTrade test2 = ResolvedIborFixingDepositTrade.builder().product(DEPOSIT).build();

            coverBeanEquals(test1, test2);
        }
Exemple #4
0
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         ResolvedIborFixingDepositTrade other = (ResolvedIborFixingDepositTrade)obj;
         return(JodaBeanUtils.equal(info, other.info) && JodaBeanUtils.equal(product, other.product));
     }
     return(false);
 }
Exemple #5
0
        public virtual void test_serialization()
        {
            ResolvedIborFixingDepositTrade test = ResolvedIborFixingDepositTrade.builder().product(DEPOSIT).info(TRADE_INFO).build();

            assertSerialization(test);
        }