Package org.djunits.value.vfloat.scalar
Class FloatSIScalarTest
java.lang.Object
org.djunits.value.vfloat.scalar.FloatSIScalarTest
Test.java.
Copyright (c) 2019-2024 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test all "asXX" methods.void
test casting to other scalars.void
Divide a value for every unit by every value for every unit and test the SI dimensions.void
Test the min, max, instantiateSI, interpolate, comparison methods.void
Multiply a value for every unit with every value for every unit and test the SI dimensions.
-
Constructor Details
-
FloatSIScalarTest
public FloatSIScalarTest()
-
-
Method Details
-
testAsScalar
@Test public void testAsScalar()test casting to other scalars. -
testMultiplyAll
Multiply a value for every unit with every value for every unit and test the SI dimensions.- Throws:
ClassNotFoundException
- on error finding unit
-
testDivideAll
Divide a value for every unit by every value for every unit and test the SI dimensions.- Throws:
ClassNotFoundException
- on error finding unit
-
testAsAll
@Test public void testAsAll() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException, UnitExceptionTest all "asXX" methods.- Throws:
SecurityException
- on errorNoSuchMethodException
- on errorInvocationTargetException
- on errorIllegalArgumentException
- on errorIllegalAccessException
- on errorClassNotFoundException
- on errorUnitException
- on error
-
testFloatMethods
Test the min, max, instantiateSI, interpolate, comparison methods.- Throws:
UnitException
- on error
-