Exemple #1
0
        public virtual void test_builder_full()
        {
            ResolvedCmsTrade test = ResolvedCmsTrade.builder().product(PRODUCT).build();

            assertEquals(test.Info, TradeInfo.empty());
            assertEquals(test.Product, PRODUCT);
            assertEquals(test.Premium, null);
        }
Exemple #2
0
 internal static ResolvedCmsTrade sut2()
 {
     return(ResolvedCmsTrade.builder().product(PRODUCT2).build());
 }
Exemple #3
0
 //-------------------------------------------------------------------------
 internal static ResolvedCmsTrade sut()
 {
     return(ResolvedCmsTrade.builder().info(TRADE_INFO).product(PRODUCT).premium(PREMIUM).build());
 }
Exemple #4
0
        //-------------------------------------------------------------------------
        public virtual void test_resolve()
        {
            ResolvedCmsTrade expected = ResolvedCmsTrade.builder().info(TRADE_INFO).product(PRODUCT_CAP.resolve(REF_DATA)).premium(PREMIUM.resolve(REF_DATA)).build();

            assertEquals(sut().resolve(REF_DATA), expected);
        }