Package org.djunits.value.vdouble.vector
Class DoubleVectorMethodTest
java.lang.Object
org.djunits.value.vdouble.vector.DoubleVectorMethodTest
public class DoubleVectorMethodTest 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 DoubleVectorMethodTest()
-
Method Summary
Modifier and Type Method Description <U extends org.djunits.unit.Unit<U>>
voidtestAsUnit()
Test theas
method of the SIVector class.void
testEquals()
Test the equals method.void
testImmutableVector()
Test if mutable methods give an error in case the vector is immutable.void
testInstantiateAbs()
Test the instantiateAbs method and instantiateScalarAbsSI method.void
testSpecialVectorMethodsRelWithAbs()
Test the extra methods that Absolute and Relative with Absolute matrices implement.void
testVectorMethods()
Test the standard methods of all vector classes.void
testVectorToString()
Test toString() methods.
-
Constructor Details
-
DoubleVectorMethodTest
public DoubleVectorMethodTest()
-
-
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 theas
method 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.
-