Package org.djunits.value.vfloat.vector
Class FloatVectorMethodTest
java.lang.Object
org.djunits.value.vfloat.vector.FloatVectorMethodTest
public class FloatVectorMethodTest extends Object
Test the incrementBy, etc. methods.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Peter Knoppers
-
Constructor Summary
Constructors Constructor Description FloatVectorMethodTest() -
Method Summary
Modifier and Type Method Description <U extends org.djunits.unit.Unit<U>>
voidtestAsUnit()Test theasmethod of the SIVector class.voidtestEquals()Test the equals method.voidtestImmutableVector()Test if mutable methods give an error in case the vector is immutable.voidtestInstantiateAbs()Test the instantiateAbs method and instantiateScalarAbsSI method.voidtestSpecialVectorMethodsRelWithAbs()Test the extra methods that Absolute and Relative with Absolute matrices implement.voidtestVectorMethods()Test the standard methods of all vector classes.voidtestVectorToString()Test toString() methods.
-
Constructor Details
-
FloatVectorMethodTest
public FloatVectorMethodTest()
-
-
Method Details
-
testVectorMethods
public void testVectorMethods() throws org.djunits.value.ValueRuntimeException, org.djunits.unit.util.UnitExceptionTest the standard methods of all vector classes.- Throws:
org.djunits.unit.util.UnitException- on errororg.djunits.value.ValueRuntimeException- on error
-
testImmutableVector
public void testImmutableVector()Test if mutable methods give an error in case the vector is immutable. -
testVectorToString
public void testVectorToString()Test toString() methods. TODO: expand? -
testSpecialVectorMethodsRelWithAbs
public void testSpecialVectorMethodsRelWithAbs()Test the extra methods that Absolute and Relative with Absolute matrices implement. -
testInstantiateAbs
public void testInstantiateAbs()Test the instantiateAbs method and instantiateScalarAbsSI method. -
testAsUnit
public <U extends org.djunits.unit.Unit<U>> void testAsUnit() throws ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, org.djunits.unit.util.UnitExceptionTest theasmethod of the SIVector class.- Type Parameters:
U- the unit type- Throws:
SecurityException- on errorNoSuchMethodException- on errorInvocationTargetException- on errorIllegalArgumentException- on errorIllegalAccessException- on errorClassNotFoundException- on errororg.djunits.unit.util.UnitException- on error
-
testEquals
public void testEquals()Test the equals method.
-