Ejemplo n.º 1
0
        //-------------------------------------------------------------------------
        public virtual void coverage()
        {
            SimpleSurfaceParameterMetadata test = SimpleSurfaceParameterMetadata.of(ValueType.YEAR_FRACTION, 1d, ValueType.STRIKE, 3d);

            coverImmutableBean(test);
            SimpleSurfaceParameterMetadata test2 = SimpleSurfaceParameterMetadata.of(ValueType.ZERO_RATE, 2d, ValueType.SIMPLE_MONEYNESS, 4d);

            coverBeanEquals(test, test2);
        }
Ejemplo n.º 2
0
        public virtual void test_of()
        {
            SimpleSurfaceParameterMetadata test = SimpleSurfaceParameterMetadata.of(ValueType.YEAR_FRACTION, 1d, ValueType.STRIKE, 3d);

            assertEquals(test.XValueType, ValueType.YEAR_FRACTION);
            assertEquals(test.XValue, 1d);
            assertEquals(test.YValueType, ValueType.STRIKE);
            assertEquals(test.YValue, 3d);
            assertEquals(test.Label, "YearFraction=1.0, Strike=3.0");
            assertEquals(test.Identifier, "YearFraction=1.0, Strike=3.0");
        }
Ejemplo n.º 3
0
        public virtual void test_serialization()
        {
            SimpleSurfaceParameterMetadata test = SimpleSurfaceParameterMetadata.of(ValueType.YEAR_FRACTION, 1d, ValueType.STRIKE, 3d);

            assertSerialization(test);
        }