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
Modifier and Type Method Description void
compareValues(float[] reference, float[] got)
Compare two float arrays.void
compareValuesWithScale(org.djunits.unit.scale.Scale scale, float[] reference, float[] got)
Compare two double arrays with factor and offset (derived from a scale).void
exceptionsTest()
Test all the exception that the constructors may throw.void
instantiateListTest()
Test constructors of array, list, map with the FloatAbsoluteTemperature unit.void
instantiatorTest()
Test the constructors of FloatVector.void
parallelTest()
Test that parallelized operations work.void
siVectorTest()
Test the FloatSIVector class.
-
Constructor Details
-
FloatVectorConstructorsTest
public FloatVectorConstructorsTest()
-
-
Method Details
-
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 org.djunits.value.ValueRuntimeException, org.djunits.unit.util.UnitException, ClassNotFoundExceptionTest the FloatSIVector class.- Throws:
org.djunits.unit.util.UnitException
- if that happens uncaught; this test has failedorg.djunits.value.ValueRuntimeException
- if that happens uncaught; this test has failedClassNotFoundException
- if that happens uncaught; this test has failed
-
exceptionsTest
public void exceptionsTest() throws org.djunits.value.ValueRuntimeException, org.djunits.unit.util.UnitExceptionTest all the exception that the constructors may throw.- Throws:
org.djunits.unit.util.UnitException
- when that happens uncaught; this test has failedorg.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 valuesgot
- 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 scalereference
- double[]; the reference valuesgot
- double[] the values that should match the reference values
-