Package org.djunits.value.vfloat.vector
Class FloatVectorConstructorsTest
- java.lang.Object
-
- org.djunits.value.vfloat.vector.FloatVectorConstructorsTest
-
public class FloatVectorConstructorsTest extends Object
Test constructors of FloatVector.
-
-
Constructor Summary
Constructors Constructor Description FloatVectorConstructorsTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompareValues(float[] reference, float[] got)Compare two float arrays.voidcompareValuesWithScale(Scale scale, float[] reference, float[] got)Compare two double arrays with factor and offset (derived from a scale).voidexceptionsTest()Test all the exception that the constructors may throw.voidinstantiateListTest()Test constructors of array, list, map with the FloatAbsoluteTemperature unit.voidinstantiatorTest()Test the constructors of FloatVector.voidparallelTest()Test that parallelized operations work.voidsiVectorTest()Test the FloatSIVector class.
-
-
-
Method Detail
-
instantiatorTest
public void instantiatorTest() throws ClassNotFoundException, NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptionTest the constructors of FloatVector.- Throws:
ClassNotFoundException- if that happens uncaught; this test has failedSecurityException- if that happens uncaught; this test has failedNoSuchMethodException- if that happens uncaught; this test has failedInvocationTargetException- if that happens uncaught; this test has failedIllegalArgumentException- if that happens uncaught; this test has failedIllegalAccessException- if that happens uncaught; this test has failedInstantiationException- 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 ValueRuntimeException, UnitException, ClassNotFoundExceptionTest the FloatSIVector class.- Throws:
UnitException- if that happens uncaught; this test has failedValueRuntimeException- if that happens uncaught; this test has failedClassNotFoundException- if that happens uncaught; this test has failed
-
exceptionsTest
public void exceptionsTest() throws ValueRuntimeException, UnitExceptionTest all the exception that the constructors may throw.- Throws:
UnitException- when that happens uncaught; this test has failedValueRuntimeException- 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 valuesgot- float[] the values that should match the reference values
-
compareValuesWithScale
public void compareValuesWithScale(Scale scale, float[] reference, float[] got)
Compare two double arrays with factor and offset (derived from a scale).- Parameters:
scale- Scale; the scalereference- double[]; the reference valuesgot- double[] the values that should match the reference values
-
-