Package org.djunits.value.vfloat.vector
Class FloatVectorConstructorsTest
java.lang.Object
org.djunits.value.vfloat.vector.FloatVectorConstructorsTest
Test constructors of FloatVector.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compareValues
(float[] reference, float[] got) Compare two float arrays.void
compareValuesWithScale
(Scale scale, float[] reference, float[] got) Compare two float arrays with factor and offset (derived from a scale).void
Test all the exception that the constructors may throw.void
Test that parallelized operations work.void
Test the FloatSIVector class.void
test float[] constructors.void
test List<Float> constructors.void
test List<Scalar> constructors.void
test Map<Integer, Float> constructors.void
test Map<Integer, Scalar> constructors.void
test Scalar[] constructors.
-
Constructor Details
-
FloatVectorConstructorsTest
public FloatVectorConstructorsTest()
-
-
Method Details
-
testFloatConstructors
@Test public void testFloatConstructors() throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptiontest float[] constructors.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorInvocationTargetException
- on errorIllegalArgumentException
- on errorIllegalAccessException
- on errorInstantiationException
- on error
-
testScalarConstructors
@Test public void testScalarConstructors() throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptiontest Scalar[] constructors.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorInvocationTargetException
- on errorIllegalArgumentException
- on errorIllegalAccessException
- on errorInstantiationException
- on error
-
testListFloatConstructors
@Test public void testListFloatConstructors() throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptiontest List<Float> constructors.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorInvocationTargetException
- on errorIllegalArgumentException
- on errorIllegalAccessException
- on errorInstantiationException
- on error
-
testListScalarConstructors
@Test public void testListScalarConstructors() throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptiontest List<Scalar> constructors.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorInvocationTargetException
- on errorIllegalArgumentException
- on errorIllegalAccessException
- on errorInstantiationException
- on error
-
testMapFloatConstructors
@Test public void testMapFloatConstructors() throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptiontest Map<Integer, Float> constructors.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorInvocationTargetException
- on errorIllegalArgumentException
- on errorIllegalAccessException
- on errorInstantiationException
- on error
-
testMapScalarConstructors
@Test public void testMapScalarConstructors() throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptiontest Map<Integer, Scalar> constructors.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorInvocationTargetException
- on errorIllegalArgumentException
- on errorIllegalAccessException
- on errorInstantiationException
- on error
-
siVectorConstructors
@Test public void siVectorConstructors() 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
Test 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
@Test 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
Compare two float arrays with factor and offset (derived from a scale).- Parameters:
scale
- Scale; the scalereference
- float[]; the reference valuesgot
- float[] the values that should match the reference values
-