public virtual void test_of_list_none() { ImmutableList <UnitParameterSensitivity> list = ImmutableList.of(); UnitParameterSensitivities test = UnitParameterSensitivities.of(list); assertEquals(test.size(), 0); }
//------------------------------------------------------------------------- public virtual void test_empty() { UnitParameterSensitivities test = UnitParameterSensitivities.empty(); assertEquals(test.size(), 0); assertEquals(test.Sensitivities.size(), 0); }
public virtual void test_of_single() { UnitParameterSensitivities test = UnitParameterSensitivities.of(ENTRY1); assertEquals(test.size(), 1); assertEquals(test.Sensitivities, ImmutableList.of(ENTRY1)); }
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)); }
public virtual void test_of_array_none() { UnitParameterSensitivities test = UnitParameterSensitivities.of(); assertEquals(test.size(), 0); }