示例#1
0
        //-------------------------------------------------------------------------
        public virtual void test_of()
        {
            ResolvedFraTrade test = ResolvedFraTrade.of(TRADE_INFO, PRODUCT);

            assertEquals(test.Product, PRODUCT);
            assertEquals(test.Info, TRADE_INFO);
        }
示例#2
0
        public virtual void test_builder()
        {
            ResolvedFraTrade test = ResolvedFraTrade.builder().product(PRODUCT).build();

            assertEquals(test.Info, TradeInfo.empty());
            assertEquals(test.Product, PRODUCT);
        }
示例#3
0
 public override bool Equals(object obj)
 {
     if (obj == this)
     {
         return(true);
     }
     if (obj != null && obj.GetType() == this.GetType())
     {
         ResolvedFraTrade other = (ResolvedFraTrade)obj;
         return(JodaBeanUtils.equal(info, other.info) && JodaBeanUtils.equal(product, other.product));
     }
     return(false);
 }
示例#4
0
 internal static ResolvedFraTrade sut2()
 {
     return(ResolvedFraTrade.builder().product(PRODUCT2).build());
 }
示例#5
0
 //-------------------------------------------------------------------------
 internal static ResolvedFraTrade sut()
 {
     return(ResolvedFraTrade.builder().info(TRADE_INFO).product(PRODUCT).build());
 }