Пример #1
0
 @Test
 public void getter() {
   assertEquals(
       "Bond future security derivative: last trading date",
       LAST_TRADING_TIME,
       BOND_FUTURE_SECURITY.getTradingLastTime());
   assertEquals(
       "Bond future security derivative: first notice date",
       FIRST_NOTICE_TIME,
       BOND_FUTURE_SECURITY.getNoticeFirstTime());
   assertEquals(
       "Bond future security derivative: last notice date",
       LAST_NOTICE_TIME,
       BOND_FUTURE_SECURITY.getNoticeLastTime());
   assertEquals(
       "Bond future security derivative: first delivery date",
       FIRST_DELIVERY_TIME,
       BOND_FUTURE_SECURITY.getDeliveryFirstTime());
   assertEquals(
       "Bond future security derivative: last delivery date",
       LAST_DELIVERY_TIME,
       BOND_FUTURE_SECURITY.getDeliveryLastTime());
   assertEquals(
       "Bond future security derivative: basket",
       BASKET,
       BOND_FUTURE_SECURITY.getDeliveryBasket());
   assertEquals(
       "Bond future security derivative: conversion factor",
       CONVERSION_FACTOR,
       BOND_FUTURE_SECURITY.getConversionFactor());
   assertEquals(
       "Bond future security derivative: notional", NOTIONAL, BOND_FUTURE_SECURITY.getNotional());
   assertEquals(
       "Bond future security derivative: currency", CUR, BOND_FUTURE_SECURITY.getCurrency());
 }