Package org.djunits.value.vfloat.vector
Class FloatSIVectorTest
- java.lang.Object
-
- org.djunits.value.vfloat.vector.FloatSIVectorTest
-
public class FloatSIVectorTest extends Object
Test.java.Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License- Author:
- Alexander Verbraeck
-
-
Constructor Summary
Constructors Constructor Description FloatSIVectorTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <AU extends AbsoluteLinearUnit<AU,RU>,A extends AbstractFloatScalarAbs<AU,A,RU,R>,AV extends AbstractFloatVectorAbs<AU,A,AV,RU,R,RV>,RU extends Unit<RU>,R extends AbstractFloatScalarRelWithAbs<AU,A,RU,R>,RV extends AbstractFloatVectorRelWithAbs<AU,A,AV,RU,R,RV>>
voidtestAsAll()
Test all "asXX" methods.void
testDimensionLess()
Test the methods that are only implemented in DimensionLess vectors.static void
verifyDimensionLessVector(float[] reference, FloatFunction operation, FloatDimensionlessVector got)
Verify the contents of a FloatDimensionlessVector.
-
-
-
Method Detail
-
testAsAll
public <AU extends AbsoluteLinearUnit<AU,RU>,A extends AbstractFloatScalarAbs<AU,A,RU,R>,AV extends AbstractFloatVectorAbs<AU,A,AV,RU,R,RV>,RU extends Unit<RU>,R extends AbstractFloatScalarRelWithAbs<AU,A,RU,R>,RV extends AbstractFloatVectorRelWithAbs<AU,A,AV,RU,R,RV>> void testAsAll() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException, UnitException
Test all "asXX" methods.- Type Parameters:
AU
- the absolute unit typeA
- the absolute scalar typeAV
- the absolute vector typeRU
- the relative unit typeR
- the relative scalar typeRV
- the relative vector type- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorInvocationTargetException
- on errorIllegalArgumentException
- on errorIllegalAccessException
- on errorClassNotFoundException
- on errorUnitException
- on error
-
testDimensionLess
public void testDimensionLess()
Test the methods that are only implemented in DimensionLess vectors.
-
verifyDimensionLessVector
public static void verifyDimensionLessVector(float[] reference, FloatFunction operation, FloatDimensionlessVector got)
Verify the contents of a FloatDimensionlessVector.- Parameters:
reference
- float[]; the values on which theoperation
needs to be applied to get the values that must be verifiedoperation
- FloatFunction; the operation that converts thereference
values to the values that must be verifiedgot
- FloatDimensionlessVector; the values that must be verified
-
-