public virtual void test_of_list_size1() { PointSensitivities test = PointSensitivityBuilder.of(ImmutableList.of(SENS)).build(); assertEquals(test.size(), 1); assertEquals(test.Sensitivities.get(0), SENS); }
public virtual void test_of_array_size1() { PointSensitivities test = PointSensitivityBuilder.of(SENS).build(); assertEquals(test.size(), 1); assertEquals(test.Sensitivities.get(0), SENS); }
public virtual void test_of_List() { PointSensitivities test = PointSensitivities.of(Lists.newArrayList(CS1, CS2)); assertEquals(test.Sensitivities, ImmutableList.of(CS1, CS2)); assertEquals(test.size(), 2); }
public virtual void test_of_list_size0() { PointSensitivities test = PointSensitivityBuilder.of(ImmutableList.of()).build(); assertEquals(test.size(), 0); }
public virtual void test_of_array_size0() { PointSensitivities test = PointSensitivityBuilder.of().build(); assertEquals(test.size(), 0); }