Class FloatVectorConstructorsTest

java.lang.Object
org.djunits.value.vfloat.vector.FloatVectorConstructorsTest

public class FloatVectorConstructorsTest
extends Object
Test constructors of FloatVector.
  • Constructor Details

  • Method Details

    • instantiatorTest

      Test the constructors of FloatVector.
      Throws:
      ClassNotFoundException - if that happens uncaught; this test has failed
      SecurityException - if that happens uncaught; this test has failed
      NoSuchMethodException - if that happens uncaught; this test has failed
      InvocationTargetException - if that happens uncaught; this test has failed
      IllegalArgumentException - if that happens uncaught; this test has failed
      IllegalAccessException - if that happens uncaught; this test has failed
      InstantiationException - if that happens uncaught; this test has failed
    • instantiateListTest

      public void instantiateListTest()
      Test constructors of array, list, map with the FloatAbsoluteTemperature unit.
    • siVectorTest

      public void siVectorTest() throws org.djunits.value.ValueRuntimeException, org.djunits.unit.util.UnitException, ClassNotFoundException
      Test the FloatSIVector class.
      Throws:
      org.djunits.unit.util.UnitException - if that happens uncaught; this test has failed
      org.djunits.value.ValueRuntimeException - if that happens uncaught; this test has failed
      ClassNotFoundException - if that happens uncaught; this test has failed
    • exceptionsTest

      public void exceptionsTest() throws org.djunits.value.ValueRuntimeException, org.djunits.unit.util.UnitException
      Test all the exception that the constructors may throw.
      Throws:
      org.djunits.unit.util.UnitException - when that happens uncaught; this test has failed
      org.djunits.value.ValueRuntimeException - when that happens uncaught; this test has failed
    • parallelTest

      public void parallelTest()
      Test that parallelized operations work.
    • compareValues

      public void compareValues​(float[] reference, float[] got)
      Compare two float arrays.
      Parameters:
      reference - float[]; the reference values
      got - float[] the values that should match the reference values
    • compareValuesWithScale

      public void compareValuesWithScale​(org.djunits.unit.scale.Scale scale, float[] reference, float[] got)
      Compare two double arrays with factor and offset (derived from a scale).
      Parameters:
      scale - Scale; the scale
      reference - double[]; the reference values
      got - double[] the values that should match the reference values