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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <U extends 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.
-
-
-
Method Detail
-
testVectorMethods
public void testVectorMethods() throws ValueRuntimeException, UnitExceptionTest the standard methods of all vector classes.- Throws:
UnitException- on errorValueRuntimeException- 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 Unit<U>> void testAsUnit() throws ClassNotFoundException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, UnitException
Test theasmethod of the SIVector class.- Type Parameters:
U- the unit type- Throws:
SecurityException- on errorNoSuchMethodException- on errorInvocationTargetException- on errorIllegalArgumentException- on errorIllegalAccessException- on errorClassNotFoundException- on errorUnitException- on error
-
testEquals
public void testEquals()
Test the equals method.
-
-