//------------------------------------------------------------------------- public virtual void coverage() { ValueDerivatives test = ValueDerivatives.of(VALUE, DERIVATIVES); coverImmutableBean(test); assertNotNull(ValueDerivatives.meta()); ValueDerivatives test2 = ValueDerivatives.of(123.4, DoubleArray.of(1.0, 2.0, 3.0)); coverBeanEquals(test, test2); }
public virtual void test_of() { ValueDerivatives test = ValueDerivatives.of(VALUE, DERIVATIVES); assertEquals(test.Value, VALUE, 0); assertEquals(test.Derivatives, DERIVATIVES); assertEquals(test.getDerivative(0), DERIVATIVES.get(0)); assertEquals(test.getDerivative(1), DERIVATIVES.get(1)); assertEquals(test.getDerivative(2), DERIVATIVES.get(2)); }
public virtual void test_serialization() { ValueDerivatives test = ValueDerivatives.of(VALUE, DERIVATIVES); assertSerialization(test); }