FixedIncomeCalculatorFactory { public static String getCalculatorName(final InstrumentDerivativeVisitor<?, ?> calculator) { if (calculator == null) { return null; } return s_instanceNames.get(calculator.getClass()); } private  FixedIncomeCalculatorFactory(); static InstrumentDerivativeVisitor<?, ?> getCalculator(final String name); static String getCalculatorName(final InstrumentDerivativeVisitor<?, ?> calculator); static final String PRESENT_VALUE; static final String PRESENT_VALUE_COUPON_SENSITIVITY; static final String PRESENT_VALUE_SENSITIVITY; static final String PV01; static final String PAR_RATE; static final String PAR_RATE_CURVE_SENSITIVITY; static final String PAR_RATE_PARALLEL_SENSITIVITY; static final PresentValueCalculator PRESENT_VALUE_CALCULATOR; static final PresentValueCouponSensitivityCalculator PRESENT_VALUE_COUPON_SENSITIVITY_CALCULATOR; static final PresentValueCurveSensitivityCalculator PRESENT_VALUE_SENSITIVITY_CALCULATOR; static final PV01Calculator PV01_CALCULATOR; static final ParRateCalculator PAR_RATE_CALCULATOR; static final ParRateCurveSensitivityCalculator PAR_RATE_CURVE_SENSITIVITY_CALCULATOR; static final ParRateParallelSensitivityCalculator PAR_RATE_PARALLEL_SENSITIVITY_CALCULATOR; static final String DELTA; static final DeltaBlackCalculator DELTA_CALCULATOR; }
@Test public void testNullCalculator() { assertNull(FixedIncomeCalculatorFactory.getCalculatorName(null)); }