예제 #1
0
        //-------------------------------------------------------------------------
        public virtual void test_withCurrency()
        {
            FxIndexSensitivity @base = FxIndexSensitivity.of(GBP_USD_WM_OBS, USD, GBP, SENSITIVITY_VALUE);

            assertSame(@base.withCurrency(GBP), @base);

            FxIndexSensitivity test     = @base.withCurrency(JPY);
            FxIndexSensitivity expected = FxIndexSensitivity.of(GBP_USD_WM_OBS, USD, JPY, SENSITIVITY_VALUE);

            assertEquals(test, expected);
        }