示例#1
0
        public virtual void test_of_list_none()
        {
            ImmutableList <UnitParameterSensitivity> list = ImmutableList.of();
            UnitParameterSensitivities test = UnitParameterSensitivities.of(list);

            assertEquals(test.size(), 0);
        }
示例#2
0
        //-------------------------------------------------------------------------
        public virtual void test_empty()
        {
            UnitParameterSensitivities test = UnitParameterSensitivities.empty();

            assertEquals(test.size(), 0);
            assertEquals(test.Sensitivities.size(), 0);
        }
示例#3
0
        public virtual void test_of_single()
        {
            UnitParameterSensitivities test = UnitParameterSensitivities.of(ENTRY1);

            assertEquals(test.size(), 1);
            assertEquals(test.Sensitivities, ImmutableList.of(ENTRY1));
        }
示例#4
0
        public virtual void test_of_list_normalized()
        {
            ImmutableList <UnitParameterSensitivity> list = ImmutableList.of(ENTRY1, ENTRY2);
            UnitParameterSensitivities test = UnitParameterSensitivities.of(list);

            assertEquals(test.size(), 1);
            assertEquals(test.Sensitivities, ImmutableList.of(ENTRY_TOTAL_1_2));
        }
示例#5
0
        public virtual void test_of_array_none()
        {
            UnitParameterSensitivities test = UnitParameterSensitivities.of();

            assertEquals(test.size(), 0);
        }