コード例 #1
0
        //-------------------------------------------------------------------------
        public virtual void test_of()
        {
            ResolvedTermDepositTrade test = ResolvedTermDepositTrade.of(TRADE_INFO, DEPOSIT);

            assertEquals(test.Product, DEPOSIT);
            assertEquals(test.Info, TRADE_INFO);
        }
コード例 #2
0
        public virtual void test_builder()
        {
            ResolvedTermDepositTrade test = ResolvedTermDepositTrade.builder().product(DEPOSIT).info(TRADE_INFO).build();

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

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

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

            assertSerialization(test);
        }