Index
All Classes and Interfaces|All Packages
A
- absFunctional() - Method in class org.djunits.util.ArrayMathTest
-
Verifies
ArrayMath.abs(double[])absolute value, including negative zero andNaN. - absNegate() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies abs and negate.
- AbsoluteExampleQuantityAQxyz(Length, Position.Reference) - Constructor for class org.djunits.quantity.def.AbsoluteQuantityTest.AbsoluteExampleQuantityAQxyz
- AbsoluteQuantityTest - Class in org.djunits.quantity.def
- AbsoluteQuantityTest() - Constructor for class org.djunits.quantity.def.AbsoluteQuantityTest
- AbsoluteQuantityTest.AbsoluteExampleQuantityAQxyz - Class in org.djunits.quantity.def
-
Absolute quantity class for test.
- AbsorbedDoseTest - Class in org.djunits.quantity
-
AbsorbedDoseTest tests the AbsorbedDose quantity class.
- AbsorbedDoseTest() - Constructor for class org.djunits.quantity.AbsorbedDoseTest
- AbsorbedDoseUnitTest - Class in org.djunits.unit.units
-
Test for AbsorbedDose.Unit class.
- AbsorbedDoseUnitTest() - Constructor for class org.djunits.unit.units.AbsorbedDoseUnitTest
- AbstractLinearUnitTest<U extends UnitInterface<U,
?>> - Class in org.djunits.unit.units -
Test for AbstractLinearUnit.
- AbstractLinearUnitTest() - Constructor for class org.djunits.unit.units.AbstractLinearUnitTest
- AbstractUnitTest<U extends UnitInterface<U,
?>> - Class in org.djunits.unit.units -
Test for AbstractUnit.
- AbstractUnitTest() - Constructor for class org.djunits.unit.units.AbstractUnitTest
- AccelerationTest - Class in org.djunits.quantity
-
AccelerationTest tests the Acceleration quantity class.
- AccelerationTest() - Constructor for class org.djunits.quantity.AccelerationTest
- AccelerationUnitTest - Class in org.djunits.unit.units
-
Test for Acceleration.Unit.
- AccelerationUnitTest() - Constructor for class org.djunits.unit.units.AccelerationUnitTest
- add(Length) - Method in class org.djunits.quantity.def.AbsoluteQuantityTest.AbsoluteExampleQuantityAQxyz
- addArraysFunctional() - Method in class org.djunits.util.ArrayMathTest
-
Verifies
ArrayMath.add(double[], double[])on a happy path and length/Null preconditions. - addIntoProcedural() - Method in class org.djunits.util.ArrayMathTest
- addScalarFunctional() - Method in class org.djunits.util.ArrayMathTest
-
Verifies
ArrayMath.add(double[], double)adds a constant to each element and returns a new array. - addSubtractRelative() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies
AbsoluteQuantity.add(Quantity)andAbsoluteQuantity.subtract(Quantity)adjust the inner relative quantity while preserving the absolute reference and the display unit. - adjugateVariants() - Method in class org.djunits.util.MatrixMathTest
-
Verifies adjugate for n=1,2,3 and n≥4 via the identity A·adj(A) = det(A)·I.
- AmountOfSubstanceTest - Class in org.djunits.quantity
-
AmountOfSubstanceTest tests the AmountOfSubstance quantity class.
- AmountOfSubstanceTest() - Constructor for class org.djunits.quantity.AmountOfSubstanceTest
- AmountOfSubstanceUnitTest - Class in org.djunits.unit.units
-
Test for AmountOfSubstance.Unit.
- AmountOfSubstanceUnitTest() - Constructor for class org.djunits.unit.units.AmountOfSubstanceUnitTest
- AngleTest - Class in org.djunits.quantity
-
AngleTest tests the Angle quantity class.
- AngleTest() - Constructor for class org.djunits.quantity.AngleTest
- AngleUnitTest - Class in org.djunits.unit.units
-
Angle.Unit test code.
- AngleUnitTest() - Constructor for class org.djunits.unit.units.AngleUnitTest
- AngularAccelerationTest - Class in org.djunits.quantity
-
AngularAccelerationTest tests the AngularAcceleration quantity class.
- AngularAccelerationTest() - Constructor for class org.djunits.quantity.AngularAccelerationTest
- AngularVelocityTest - Class in org.djunits.quantity
-
AngularVelocityTest tests the AngularVelocity quantity class.
- AngularVelocityTest() - Constructor for class org.djunits.quantity.AngularVelocityTest
- ArealObjectDensityTest - Class in org.djunits.quantity
-
ArealObjectDensityTest tests the ArealObjectDensity quantity class.
- ArealObjectDensityTest() - Constructor for class org.djunits.quantity.ArealObjectDensityTest
- ArealObjectDensityUnitTest - Class in org.djunits.unit.units
-
ArealObjectDensity.Unit test.
- ArealObjectDensityUnitTest() - Constructor for class org.djunits.unit.units.ArealObjectDensityUnitTest
- AreaTest - Class in org.djunits.quantity
-
AreaTest tests the Area quantity class.
- AreaTest() - Constructor for class org.djunits.quantity.AreaTest
- AreaUnitTest - Class in org.djunits.unit.units
-
Area.Unit test.
- AreaUnitTest() - Constructor for class org.djunits.unit.units.AreaUnitTest
- arithmeticProducesCorrectSIValues() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies
Quantity.multiply(Quantity),Quantity.divide(Quantity), andQuantity.reciprocal()when applied toSIQuantityproduce correct SI values (the unit algebra is validated inSIUnittests). - ArrayMathTest - Class in org.djunits.util
-
Unit tests for
ArrayMath. - ArrayMathTest() - Constructor for class org.djunits.util.ArrayMathTest
- asKnownQuantity() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
Quantity.as(org.djunits.unit.UnitInterface)converts to a correctly typed quantity while preserving the SI value and replacing the display unit with the requested unit. - axpyFunctional() - Method in class org.djunits.util.ArrayMathTest
-
Verifies fused AXPY
ArrayMath.axpy(double[], double[], double)and preconditions. - axpyIntoProcedural() - Method in class org.djunits.util.ArrayMathTest
B
- BASE - Static variable in class org.djunits.unit.UnitTest.Jerk.Unit
-
Base jerk unit (identity scale).
C
- CatalyticActivityTest - Class in org.djunits.quantity
-
CatalyticActivityTest tests the CatalyticActivity quantity class.
- CatalyticActivityTest() - Constructor for class org.djunits.quantity.CatalyticActivityTest
- CatalyticActivityUnitTest - Class in org.djunits.unit.units
-
CatalyticActivity.Unit test.
- CatalyticActivityUnitTest() - Constructor for class org.djunits.unit.units.CatalyticActivityUnitTest
- checkUnitNameAndAbbreviation(U, String, String) - Method in class org.djunits.unit.units.AbstractUnitTest
-
Verify the localization of the name and abbreviation.
- checkUnitRatioNameAndAbbreviation(U, double, double, String, String) - Method in class org.djunits.unit.units.AbstractLinearUnitTest
-
Verify one length conversion factor to standard unit and the localization of the name and abbreviation.
- checkUnitValueNameAndAbbreviation(Angle.Unit, double, double, String, String) - Method in class org.djunits.unit.units.AngleUnitTest
-
Verify one length conversion factor to standard unit and the localization of the name and abbreviation.
- cleanup() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Unregisters created references from the per-class registry to avoid cross-test pollution.
- compactStrings() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies concise textual and display strings for absolute quantities.
- compactStrings() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies concise textual and display strings (abbreviation correctness and spacing).
- compareToContract() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies the
Comparablecontract forQuantity.compareTo(Quantity). - comparisons() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies pairwise comparisons (lt/le/gt/ge/eq/ne) based on SI values.
- comparisonsAndReferenceConstraints() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies that comparisons (lt/le/gt/ge) and
Comparable.compareTo(Object)require identical references, otherwise anIllegalArgumentExceptionis thrown. - ConstantsTest - Class in org.djunits.util
-
Unit tests for
Constants. - ConstantsTest() - Constructor for class org.djunits.util.ConstantsTest
- constructorIsNotInstantiableButReachableViaReflection() - Method in class org.djunits.util.ArrayMathTest
-
Covers the private no-arg constructor of
ArrayMathto achieve 100% coverage of the class. - constructorNullDisplayUnitThrows() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies that the
Quantityconstructor rejects anulldisplay unit. - constructorNulls() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies that the constructor of
Position(as a representative ofAbsoluteQuantity) rejectsnullfor either the relative quantity or the reference. - constructorTest() - Method in class org.djunits.formatter.EngineeringFormatterTest
-
See if we can increase the code coverage to include the private constructor.
- constructorWithSIUnit() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies the primary constructor
new SIQuantity(double, SIUnit). - constructorWithStringAbbreviation() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies the string-abbreviation constructor
new SIQuantity(double, String). - conversions() - Method in class org.djunits.unit.units.AbsorbedDoseUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.AccelerationUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.AmountOfSubstanceUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.AngleUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.ArealObjectDensityUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.AreaUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.CatalyticActivityUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.DensityUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.DimensionlessUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.DurationUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.ElectricalCapacitanceUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.ElectricalConductanceUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.ElectricalInductanceUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.ElectricalResistanceUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.ElectricChargeUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.ElectricCurrentUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.ElectricPotentialUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.EnergyUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.EquivalentDoseUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.FlowMassUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.FlowVolumeUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.ForceUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.FrequencyUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.IlluminanceUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.LengthUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.LinearDensityUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.LinearObjectDensityUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.LuminousFluxUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.LuminousIntensityUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.MagneticFluxDensityUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.MagneticFluxUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.MassUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.PowerUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.PressureUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.RadioActivityUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.SolidAngleUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.SpeedUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.TemperatureUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.TorqueUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.VolumetricObjectDensityUnitTest
-
Verify conversion factors, English names and abbreviations.
- conversions() - Method in class org.djunits.unit.units.VolumeUnitTest
-
Verify conversion factors, English names and abbreviations.
- convertAndVerify(double, int) - Static method in class org.djunits.formatter.EngineeringFormatterTest
-
Call convert and then verify that the result is an accurate representation of the value.
- copyConstructor() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies the copy constructor
new SIQuantity(SIQuantity)produces an equal instance: same SI value and same display unit. - createAbsorbedDoseUnit() - Method in class org.djunits.unit.units.AbsorbedDoseUnitTest
-
Verify that we can create our own AbsorbedDose unit.
- createAccelerationUnit() - Method in class org.djunits.unit.units.AccelerationUnitTest
-
Verify that we can create our own Acceleration unit.
- createAmountOfSubstanceUnit() - Method in class org.djunits.unit.units.AmountOfSubstanceUnitTest
-
Verify that we can create our own AmountOfSubstance unit.
- createAngleUnit() - Method in class org.djunits.unit.units.AngleUnitTest
-
Verify that we can create our own angle unit.
- createAreaUnit() - Method in class org.djunits.unit.units.AreaUnitTest
-
Verify that we can create our own Area unit.
- createCatalyticActivityUnit() - Method in class org.djunits.unit.units.CatalyticActivityUnitTest
-
Verify that we can create our own CatalyticActivity unit.
- createDensityUnit() - Method in class org.djunits.unit.units.DensityUnitTest
-
Verify that we can create our own density unit.
- createDurationUnit() - Method in class org.djunits.unit.units.DurationUnitTest
-
Verify that we can create our own duration unit.
- createElectricalCapacitanceUnit() - Method in class org.djunits.unit.units.ElectricalCapacitanceUnitTest
-
Verify that we can create our own ElectricalCapacitance unit.
- createElectricalConductanceUnit() - Method in class org.djunits.unit.units.ElectricalConductanceUnitTest
-
Verify that we can create our own ElectricalConductance unit.
- createElectricalInductanceUnit() - Method in class org.djunits.unit.units.ElectricalInductanceUnitTest
-
Verify that we can create our own ElectricalInductance unit.
- createElectricalResistanceUnit() - Method in class org.djunits.unit.units.ElectricalResistanceUnitTest
-
Verify that we can create our own electrical resistance unit.
- createElectricChargeUnit() - Method in class org.djunits.unit.units.ElectricChargeUnitTest
-
Verify that we can create our own ElectricCharge unit.
- createElectricCurrentUnit() - Method in class org.djunits.unit.units.ElectricCurrentUnitTest
-
Verify that we can create our own ElectricCurrent unit.
- createElectricPotentialUnit() - Method in class org.djunits.unit.units.ElectricPotentialUnitTest
-
Verify that we can create our own electrical potential unit.
- createEnergyUnit() - Method in class org.djunits.unit.units.EnergyUnitTest
-
Verify that we can create our own Energy unit.
- createEquivalentDoseUnit() - Method in class org.djunits.unit.units.EquivalentDoseUnitTest
-
Verify that we can create our own EquivalentDose unit.
- createFlowMassUnit() - Method in class org.djunits.unit.units.FlowMassUnitTest
-
Verify that we can create our own FlowMass unit.
- createFLowVolumeUnit() - Method in class org.djunits.unit.units.FlowVolumeUnitTest
-
Verify that we can create our own FlowVolume unit.
- createForceUnit() - Method in class org.djunits.unit.units.ForceUnitTest
-
Verify that we can create our own Force unit.
- createFrequencyUnit() - Method in class org.djunits.unit.units.FrequencyUnitTest
-
Verify that we can create our own Frequency unit.
- createIlluminanceUnit() - Method in class org.djunits.unit.units.IlluminanceUnitTest
-
Verify that we can create our own Illuminance unit.
- createLengthUnit() - Method in class org.djunits.unit.units.LengthUnitTest
-
Verify that we can create our own length unit.
- createLinearDensityUnit() - Method in class org.djunits.unit.units.ArealObjectDensityUnitTest
-
Verify that we can create our own LinearDensity unit.
- createLinearDensityUnit() - Method in class org.djunits.unit.units.LinearDensityUnitTest
-
Verify that we can create our own LinearDensity unit.
- createLinearDensityUnit() - Method in class org.djunits.unit.units.LinearObjectDensityUnitTest
-
Verify that we can create our own LinearDensity unit.
- createLinearDensityUnit() - Method in class org.djunits.unit.units.VolumetricObjectDensityUnitTest
-
Verify that we can create our own LinearDensity unit.
- createLuminousFluxUnit() - Method in class org.djunits.unit.units.LuminousFluxUnitTest
-
Verify that we can create our own LuminousFlux unit.
- createLuminousIntensityUnit() - Method in class org.djunits.unit.units.LuminousIntensityUnitTest
-
Verify that we can create our own LuminousIntensity unit.
- createMagneticFluxDensityUnit() - Method in class org.djunits.unit.units.MagneticFluxDensityUnitTest
-
Verify that we can create our own MagneticFluxDensity unit.
- createMagneticFluxUnit() - Method in class org.djunits.unit.units.MagneticFluxUnitTest
-
Verify that we can create our own MagneticFlux unit.
- createMassUnit() - Method in class org.djunits.unit.units.MassUnitTest
-
Verify that we can create our own mass unit.
- createPowerUnitUnit() - Method in class org.djunits.unit.units.PowerUnitTest
-
Verify that we can create our own power unit.
- createPressureUnit() - Method in class org.djunits.unit.units.PressureUnitTest
-
Verify that we can create our own pressure unit.
- createRadioActivityUnit() - Method in class org.djunits.unit.units.RadioActivityUnitTest
-
Verify that we can create our own RadioActivity unit.
- createSolidAngleUnit() - Method in class org.djunits.unit.units.SolidAngleUnitTest
-
Verify that we can create our own angle unit.
- createSpeedUnit() - Method in class org.djunits.unit.units.SpeedUnitTest
-
Verify that we can create our own speed unit.
- createTempteratureUnit() - Method in class org.djunits.unit.units.TemperatureUnitTest
-
Verify that we can create our own temperature unit; i.c.
- createTorqueUnit() - Method in class org.djunits.unit.units.TorqueUnitTest
-
Verify that we can create our own Torque unit.
- createUnitless() - Method in class org.djunits.unit.units.DimensionlessUnitTest
-
Verify that we can create our own Dimensionless unit.
- createVolumeUnit() - Method in class org.djunits.unit.units.VolumeUnitTest
-
Verify that we can create our own power unit.
D
- DataGridSiTest - Class in org.djunits.vecmat.storage
-
DataGridSiTest tests equals, hashCode, equals(obj, eps) for the different DataGridSi classes.
Copyright (c) 2025-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. - DataGridSiTest() - Constructor for class org.djunits.vecmat.storage.DataGridSiTest
- DEFAULT - Static variable in class org.djunits.quantity.def.QuantityTest.ExampleQuantityAQxyz.Unit
- DEFAULT - Static variable in class org.djunits.unit.UnitsTest.QUnit
- DenseDoubleDataSiTest - Class in org.djunits.vecmat.storage
-
Unit tests for
DenseDoubleDataSi. - DenseDoubleDataSiTest() - Constructor for class org.djunits.vecmat.storage.DenseDoubleDataSiTest
- DenseFloatDataSiTest - Class in org.djunits.vecmat.storage
-
Unit tests for
DenseFloatDataSi. - DenseFloatDataSiTest() - Constructor for class org.djunits.vecmat.storage.DenseFloatDataSiTest
- DensityTest - Class in org.djunits.quantity
-
DensityTest tests the Density quantity class.
- DensityTest() - Constructor for class org.djunits.quantity.DensityTest
- DensityUnitTest - Class in org.djunits.unit.units
-
Density.Unit test.
- DensityUnitTest() - Constructor for class org.djunits.unit.units.DensityUnitTest
- deriveUnit(String, String, String, double, UnitSystem) - Method in class org.djunits.quantity.def.QuantityTest.ExampleQuantityAQxyz.Unit
- deriveUnit(String, String, String, double, UnitSystem) - Method in class org.djunits.unit.UnitTest.Jerk.Unit
- deriveUnit(String, String, String, double, UnitSystem) - Method in class org.djunits.unit.UnitTest.PerMass.Unit
- determinantVariants() - Method in class org.djunits.util.MatrixMathTest
-
Verifies determinant for n=1,2,3 (closed-form) and n≥4 (LU path).
- dimensionlessMathConstants() - Method in class org.djunits.util.ConstantsTest
-
Verifies PI, TAU, E, PHI are
DimensionlesswithUnitless.BASEand correct values. - DimensionlessTest - Class in org.djunits.quantity
-
DimensionlessTest tests the Dimensionless quantity class and the Unitless unit.
- DimensionlessTest() - Constructor for class org.djunits.quantity.DimensionlessTest
- DimensionlessUnitTest - Class in org.djunits.unit.units
-
Unitless class test (Unitless is the unit of Dimensionless).
- DimensionlessUnitTest() - Constructor for class org.djunits.unit.units.DimensionlessUnitTest
- DirectionTest - Class in org.djunits.quantity
-
DirectionTest tests the Direction absolute quantity class and its Reference handling.
- DirectionTest() - Constructor for class org.djunits.quantity.DirectionTest
- displayUnitAccessors() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies that
AbsoluteQuantity.getDisplayUnit()andAbsoluteQuantity.setDisplayUnit(org.djunits.unit.UnitInterface)delegate correctly to the inner relative quantity and that the setter is fluent. - displayUnitAccessors() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies that
Quantity.getDisplayUnit()andQuantity.setDisplayUnit(org.djunits.unit.UnitInterface)round-trip correctly and that the setter is fluent (returnsthis). - displayUnitFluentAndEquality() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies fluent
Quantity.setDisplayUnit(org.djunits.unit.UnitInterface)returnsthisand that equals/hashCode include both SI bits and the display unit. - divideFunctional() - Method in class org.djunits.util.ArrayMathTest
-
Verifies
ArrayMath.divide(double[], double[])element-wise division, including division by zero and NaN. - DoubleSparseValueTest - Class in org.djunits.vecmat.storage
-
Unit tests for
DoubleSparseValue. - DoubleSparseValueTest() - Constructor for class org.djunits.vecmat.storage.DoubleSparseValueTest
- doULPTest() - Method in class org.djunits.formatter.EngineeringFormatterTest
-
Test cleverly chosen values plus and minus one ULP.
- doWidthTest() - Method in class org.djunits.formatter.EngineeringFormatterTest
-
Check that values are formatted at optimal precision when the room is varied.
- DurationTest - Class in org.djunits.quantity
-
DurationTest tests the Duration quantity class.
- DurationTest() - Constructor for class org.djunits.quantity.DurationTest
- DurationUnitTest - Class in org.djunits.unit.units
-
Duration.Unit test.
- DurationUnitTest() - Constructor for class org.djunits.unit.units.DurationUnitTest
E
- ElectricalCapacitanceTest - Class in org.djunits.quantity
-
ElectricalCapacitanceTest tests the ElectricalCapacitance quantity class.
- ElectricalCapacitanceTest() - Constructor for class org.djunits.quantity.ElectricalCapacitanceTest
- ElectricalCapacitanceUnitTest - Class in org.djunits.unit.units
-
ElectricalCapacitance.Unit test.
- ElectricalCapacitanceUnitTest() - Constructor for class org.djunits.unit.units.ElectricalCapacitanceUnitTest
- ElectricalConductanceTest - Class in org.djunits.quantity
-
ElectricalConductanceTest tests the ElectricalConductance quantity class.
- ElectricalConductanceTest() - Constructor for class org.djunits.quantity.ElectricalConductanceTest
- ElectricalConductanceUnitTest - Class in org.djunits.unit.units
-
ElectricalConductance.Unit test.
- ElectricalConductanceUnitTest() - Constructor for class org.djunits.unit.units.ElectricalConductanceUnitTest
- ElectricalInductanceTest - Class in org.djunits.quantity
-
ElectricalInductanceTest tests the ElectricalInductance quantity class.
- ElectricalInductanceTest() - Constructor for class org.djunits.quantity.ElectricalInductanceTest
- ElectricalInductanceUnitTest - Class in org.djunits.unit.units
-
ElectricalInductance.Unit test.
- ElectricalInductanceUnitTest() - Constructor for class org.djunits.unit.units.ElectricalInductanceUnitTest
- ElectricalResistanceTest - Class in org.djunits.quantity
-
ElectricalResistanceTest tests the ElectricalResistance quantity class.
- ElectricalResistanceTest() - Constructor for class org.djunits.quantity.ElectricalResistanceTest
- ElectricalResistanceUnitTest - Class in org.djunits.unit.units
-
ElectricalResistance.Unit test.
- ElectricalResistanceUnitTest() - Constructor for class org.djunits.unit.units.ElectricalResistanceUnitTest
- ElectricChargeTest - Class in org.djunits.quantity
-
ElectricChargeTest tests the ElectricCharge quantity class.
- ElectricChargeTest() - Constructor for class org.djunits.quantity.ElectricChargeTest
- ElectricChargeUnitTest - Class in org.djunits.unit.units
-
ElectricCharge.Unit test.
- ElectricChargeUnitTest() - Constructor for class org.djunits.unit.units.ElectricChargeUnitTest
- ElectricCurrentTest - Class in org.djunits.quantity
-
ElectricCurrentTest tests the ElectricCurrent quantity class.
- ElectricCurrentTest() - Constructor for class org.djunits.quantity.ElectricCurrentTest
- ElectricCurrentUnitTest - Class in org.djunits.unit.units
-
ElectricCurrent.Unit test.
- ElectricCurrentUnitTest() - Constructor for class org.djunits.unit.units.ElectricCurrentUnitTest
- ElectricPotentialTest - Class in org.djunits.quantity
-
ElectricPotentialTest tests the ElectricPotential quantity class.
- ElectricPotentialTest() - Constructor for class org.djunits.quantity.ElectricPotentialTest
- ElectricPotentialUnitTest - Class in org.djunits.unit.units
-
ElectricalPotential.Unit test.
- ElectricPotentialUnitTest() - Constructor for class org.djunits.unit.units.ElectricPotentialUnitTest
- EmptyReference(String, String, Length, ReferenceTest.EmptyReference) - Constructor for class org.djunits.quantity.def.ReferenceTest.EmptyReference
- EnergyTest - Class in org.djunits.quantity
-
EnergyTest tests the Energy quantity class.
- EnergyTest() - Constructor for class org.djunits.quantity.EnergyTest
- EnergyUnitTest - Class in org.djunits.unit.units
-
Energy.Unit test.
- EnergyUnitTest() - Constructor for class org.djunits.unit.units.EnergyUnitTest
- EngineeringFormatterTest - Class in org.djunits.formatter
-
Test the Engineering formatter
- EngineeringFormatterTest() - Constructor for class org.djunits.formatter.EngineeringFormatterTest
- equalsHashCode() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies
equals/hashCodeconsider both the inner relative quantity and the reference identity. - equalsHashCode() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
equals/hashCodeconsider the SI value (bits) and the display unit. - equalsHashCode() - Method in class org.djunits.quantity.def.ReferenceTest
-
Verifies
equals,hashCode,toString(),containsId(). - EquivalentDoseTest - Class in org.djunits.quantity
-
EquivalentDoseTest tests the EquivalentDose quantity class.
- EquivalentDoseTest() - Constructor for class org.djunits.quantity.EquivalentDoseTest
- EquivalentDoseUnitTest - Class in org.djunits.unit.units
-
EquivalentDose.Unit test.
- EquivalentDoseUnitTest() - Constructor for class org.djunits.unit.units.EquivalentDoseUnitTest
- ExampleQuantityAQxyz(double, QuantityTest.ExampleQuantityAQxyz.Unit) - Constructor for class org.djunits.quantity.def.QuantityTest.ExampleQuantityAQxyz
F
- FloatSparseValueTest - Class in org.djunits.vecmat.storage
-
Tests for
FloatSparseValue. - FloatSparseValueTest() - Constructor for class org.djunits.vecmat.storage.FloatSparseValueTest
- FlowMassTest - Class in org.djunits.quantity
-
FlowMassTest tests the FlowMass quantity class.
- FlowMassTest() - Constructor for class org.djunits.quantity.FlowMassTest
- FlowMassUnitTest - Class in org.djunits.unit.units
-
FlowMass.Unit test.
- FlowMassUnitTest() - Constructor for class org.djunits.unit.units.FlowMassUnitTest
- FlowVolumeTest - Class in org.djunits.quantity
-
FlowVolumeTest tests the FlowVolume quantity class.
- FlowVolumeTest() - Constructor for class org.djunits.quantity.FlowVolumeTest
- FlowVolumeUnitTest - Class in org.djunits.unit.units
-
FlowVolume.Unit test.
- FlowVolumeUnitTest() - Constructor for class org.djunits.unit.units.FlowVolumeUnitTest
- ForceTest - Class in org.djunits.quantity
-
ForceTest tests the Force quantity class.
- ForceTest() - Constructor for class org.djunits.quantity.ForceTest
- ForceUnitTest - Class in org.djunits.unit.units
-
Force.Unit test.
- ForceUnitTest() - Constructor for class org.djunits.unit.units.ForceUnitTest
- format() - Method in class org.djunits.formatter.FormatTest
-
Test that size, precision and accuracy are OK.
- FormatTest - Class in org.djunits.formatter
-
Test Formatter.format for quantities.
- FormatTest() - Constructor for class org.djunits.formatter.FormatTest
- formatVariants() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies
AbsoluteQuantity.format(double)andAbsoluteQuantity.format(double, String)paths: fixed format range and E-notation range. - formatVariants() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
Quantity.format(double)for the fixed-format range, E-notation range, and non-finite values. - FrequencyTest - Class in org.djunits.quantity
-
FrequencyTest tests the Frequency quantity class.
- FrequencyTest() - Constructor for class org.djunits.quantity.FrequencyTest
- FrequencyUnitTest - Class in org.djunits.unit.units
-
Frequency.Unit test.
- FrequencyUnitTest() - Constructor for class org.djunits.unit.units.FrequencyUnitTest
G
- getBaseUnit() - Method in class org.djunits.quantity.def.QuantityTest.ExampleQuantityAQxyz.Unit
- getBaseUnit() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getBaseUnit() - Method in class org.djunits.unit.UnitsTest.QUnit
- getBaseUnit() - Method in class org.djunits.unit.UnitTest.Jerk.Unit
- getBaseUnit() - Method in class org.djunits.unit.UnitTest.PerMass.Unit
- getDisplayAbbreviation() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getDisplayAbbreviation() - Method in class org.djunits.unit.UnitsTest.QUnit
- getId() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getId() - Method in class org.djunits.unit.UnitsTest.QUnit
- getInUnitCurrentDisplay() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
Quantity.getInUnit()using the current display unit. - getInUnitExplicitTarget() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
Quantity.getInUnit(org.djunits.unit.UnitInterface)for explicit target units. - getInUnitVariants() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
- getMultiplicationFactorTo(U, U) - Method in class org.djunits.unit.units.AbstractLinearUnitTest
- getName() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getName() - Method in class org.djunits.unit.UnitsTest.QUnit
- getNameFormatsPrettyForAbsoluteQuantity() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Tests
AbsoluteQuantity.getName()usingPositionas the representative absolute quantity. - getNameFormatsPrettyForQuantityAndSIQuantity() - Method in class org.djunits.quantity.def.QuantityTest
-
Tests
Quantity.getName()for both the simple case (single leading uppercase, e.g. - getNameIsNonEmpty() - Method in class org.djunits.quantity.def.QuantityTest
-
Confirms that the pretty/localized name as returned by
Quantity.getName()is non-empty. - getNamePrettyFormatting() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies the "pretty name" behavior inherited from
Quantity.getName()for the class nameSIQuantity(camel case with internal capitals). - getScale() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getScale() - Method in class org.djunits.unit.UnitsTest.QUnit
- getSiPrefix() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getSiPrefix() - Method in class org.djunits.unit.UnitsTest.QUnit
- getStoredDisplayAbbreviation() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getStoredDisplayAbbreviation() - Method in class org.djunits.unit.UnitsTest.QUnit
- getStoredName() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getStoredName() - Method in class org.djunits.unit.UnitsTest.QUnit
- getStoredTextualAbbreviation() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getStoredTextualAbbreviation() - Method in class org.djunits.unit.UnitsTest.QUnit
- getTextualAbbreviation() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getTextualAbbreviation() - Method in class org.djunits.unit.UnitsTest.QUnit
- getUnitSystem() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- getUnitSystem() - Method in class org.djunits.unit.UnitsTest.QUnit
- gravityConstant() - Method in class org.djunits.unit.units.AccelerationUnitTest
-
Check that g is about 9.8 m/s/s.
I
- IlluminanceTest - Class in org.djunits.quantity
-
IlluminanceTest tests the Illuminance quantity class.
- IlluminanceTest() - Constructor for class org.djunits.quantity.IlluminanceTest
- IlluminanceUnitTest - Class in org.djunits.unit.units
-
Illuminance.Unit test.
- IlluminanceUnitTest() - Constructor for class org.djunits.unit.units.IlluminanceUnitTest
- instantiate(double) - Method in class org.djunits.quantity.def.QuantityTest.ExampleQuantityAQxyz
- instantiate(double) - Method in class org.djunits.unit.UnitsTest.Q
- instantiate(double) - Method in class org.djunits.unit.UnitTest.Jerk
- instantiate(double) - Method in class org.djunits.unit.UnitTest.PerMass
- instantiate(Length, Position.Reference) - Method in class org.djunits.quantity.def.AbsoluteQuantityTest.AbsoluteExampleQuantityAQxyz
- instantiateUsesCurrentDisplayUnit() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies
SIQuantity.instantiate(double)creates a new instance with the same display unit as the receiver at call time (i.e., reflects the currentgetDisplayUnit()value). - interpolateAbsolute() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
- interpolateQuantity() - Method in class org.djunits.quantity.def.QuantityTest
- inverseVariants() - Method in class org.djunits.util.MatrixMathTest
-
Verifies inverse for n=1,2,3 and n≥4, including singular matrix exceptions.
J
- Jerk(double, UnitTest.Jerk.Unit) - Constructor for class org.djunits.unit.UnitTest.Jerk
-
Construct a Jerk quantity with a unit.
L
- LengthTest - Class in org.djunits.quantity
-
LengthTest tests the Length quantity class.
- LengthTest() - Constructor for class org.djunits.quantity.LengthTest
- LengthUnitTest - Class in org.djunits.unit.units
-
Length.Unit test.
- LengthUnitTest() - Constructor for class org.djunits.unit.units.LengthUnitTest
- LinearDensityTest - Class in org.djunits.quantity
-
LinearDensityTest tests the LinearDensity quantity class.
- LinearDensityTest() - Constructor for class org.djunits.quantity.LinearDensityTest
- LinearDensityUnitTest - Class in org.djunits.unit.units
-
LinearDensity.Unit test.
- LinearDensityUnitTest() - Constructor for class org.djunits.unit.units.LinearDensityUnitTest
- LinearObjectDensityTest - Class in org.djunits.quantity
-
LinearObjectDensityTest tests the LinearObjectDensity quantity class.
- LinearObjectDensityTest() - Constructor for class org.djunits.quantity.LinearObjectDensityTest
- LinearObjectDensityUnitTest - Class in org.djunits.unit.units
-
LinearObjectDensity.Unit test.
- LinearObjectDensityUnitTest() - Constructor for class org.djunits.unit.units.LinearObjectDensityUnitTest
- LocaleFilesTest - Class in org.djunits.unit
-
LocaleFilesTest validates all locale property bundles for formatting rules and ensures abbreviations resolve in their locale.
- LocaleFilesTest() - Constructor for class org.djunits.unit.LocaleFilesTest
- luminousEfficacyDimensionality() - Method in class org.djunits.util.ConstantsTest
-
Verifies luminous efficacy dimensionality after fixing the unit string in Constants to include m^2 in the denominator.
- LuminousFluxTest - Class in org.djunits.quantity
-
LuminousFluxTest tests the LuminousFlux quantity class.
- LuminousFluxTest() - Constructor for class org.djunits.quantity.LuminousFluxTest
- LuminousFluxUnitTest - Class in org.djunits.unit.units
-
LuminousFlux.Unit test.
- LuminousFluxUnitTest() - Constructor for class org.djunits.unit.units.LuminousFluxUnitTest
- LuminousIntensityTest - Class in org.djunits.quantity
-
LuminousIntensityTest tests the LuminousIntensity quantity class.
- LuminousIntensityTest() - Constructor for class org.djunits.quantity.LuminousIntensityTest
- LuminousIntensityUnitTest - Class in org.djunits.unit.units
-
LuminousIntensity.Unit test.
- LuminousIntensityUnitTest() - Constructor for class org.djunits.unit.units.LuminousIntensityUnitTest
M
- MagneticFluxDensityTest - Class in org.djunits.quantity
-
MagneticFluxDensityTest tests the MagneticFluxDensity quantity class.
- MagneticFluxDensityTest() - Constructor for class org.djunits.quantity.MagneticFluxDensityTest
- MagneticFluxDensityUnitTest - Class in org.djunits.unit.units
-
MagneticFluxDensity.Unit test.
- MagneticFluxDensityUnitTest() - Constructor for class org.djunits.unit.units.MagneticFluxDensityUnitTest
- MagneticFluxTest - Class in org.djunits.quantity
-
MagneticFluxTest tests the MagneticFlux quantity class.
- MagneticFluxTest() - Constructor for class org.djunits.quantity.MagneticFluxTest
- MagneticFluxUnitTest - Class in org.djunits.unit.units
-
MagneticFlux.Unit test.
- MagneticFluxUnitTest() - Constructor for class org.djunits.unit.units.MagneticFluxUnitTest
- MassTest - Class in org.djunits.quantity
-
MassTest tests the Mass quantity class.
- MassTest() - Constructor for class org.djunits.quantity.MassTest
- MassUnitTest - Class in org.djunits.unit.units
-
Mass.Unit test.
- MassUnitTest() - Constructor for class org.djunits.unit.units.MassUnitTest
- Math2Test - Class in org.djunits.util
-
Unit tests for
Math2. - Math2Test() - Constructor for class org.djunits.util.Math2Test
- Matrix1x1Test - Class in org.djunits.vecmat.d1
- Matrix1x1Test() - Constructor for class org.djunits.vecmat.d1.Matrix1x1Test
- Matrix2x2Test - Class in org.djunits.vecmat.d2
- Matrix2x2Test() - Constructor for class org.djunits.vecmat.d2.Matrix2x2Test
- Matrix3x3Test - Class in org.djunits.vecmat.d3
- Matrix3x3Test() - Constructor for class org.djunits.vecmat.d3.Matrix3x3Test
- MatrixMathTest - Class in org.djunits.util
-
Unit tests for
MatrixMath. - MatrixMathTest() - Constructor for class org.djunits.util.MatrixMathTest
- MatrixNxMTest - Class in org.djunits.vecmat.dnxm
- MatrixNxMTest() - Constructor for class org.djunits.vecmat.dnxm.MatrixNxMTest
- MatrixNxNTest - Class in org.djunits.vecmat.dn
- MatrixNxNTest() - Constructor for class org.djunits.vecmat.dn.MatrixNxNTest
- maxAbsValues() - Method in class org.djunits.util.Math2Test
-
Verifies
Math2.maxAbs(double...)with negative/positive values and sentinels. - maxMin() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies
AbsoluteQuantity.max(AbsoluteQuantity, AbsoluteQuantity[])andAbsoluteQuantity.min(AbsoluteQuantity, AbsoluteQuantity[])for identical references and that mixing references raises anIllegalArgumentException. - maxMin() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
Quantity.max(Quantity, Quantity[])andQuantity.min(Quantity, Quantity[])selection. - maxValues() - Method in class org.djunits.util.Math2Test
-
Verifies
Math2.max(double...)for typical values, extremes, and sentinel behavior. - medianVariants() - Method in class org.djunits.util.Math2Test
-
Verifies
Math2.median(double...)across odd/even sizes, NaN filtering, single-value, and all-NaN inputs. - minAbsValues() - Method in class org.djunits.util.Math2Test
-
Verifies
Math2.minAbs(double...)with negative/positive values (including -0.0) and sentinels. - minValues() - Method in class org.djunits.util.Math2Test
-
Verifies
Math2.min(double...)for typical values, extremes, and sentinel behavior. - MomentumTest - Class in org.djunits.quantity
-
MomentumTest tests the Momentum quantity class.
- MomentumTest() - Constructor for class org.djunits.quantity.MomentumTest
- mu0TimesEpsilon0TimesCSquaredIsOne() - Method in class org.djunits.util.ConstantsTest
-
Verifies the physical identity μ0 · ε0 · c² ≈ 1 (dimensionless).
- multiplyFunctional() - Method in class org.djunits.util.ArrayMathTest
-
Verifies
ArrayMath.multiply(double[], double[])element-wise product and preconditions. - multiplyRectangularAndErrors() - Method in class org.djunits.util.MatrixMathTest
-
Verifies rectangular matrix multiplication and length-mismatch precondition errors.
N
- NoRegisterUnit() - Constructor for class org.djunits.unit.UnitsTest.NoRegisterUnit
- numberConversions() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies that
Number-derived conversions reflect the SI value semantics forAbsoluteQuantity. - numberConversions() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies that
Number-derived conversions reflect the SI value semantics (rounding for int/long).
O
- ofParses() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies successful parsing via
AbsoluteQuantity.of(double, String, AbsoluteQuantity, AbstractReference)and error branches fornullparameters, empty unit string, and unknown units. - ofParses() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies successful parsing via
Quantity.of(double, String, Quantity)and its error branches fornullparameters, empty unit string, and unknown unit. - ofParsesAndValidates() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies
SIQuantity.of(double, String)happy path and error handling. - ofSi(double) - Method in class org.djunits.quantity.def.QuantityTest.ExampleQuantityAQxyz.Unit
- ofSi(double) - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- ofSi(double) - Method in class org.djunits.unit.UnitsTest.QUnit
- ofSi(double) - Static method in class org.djunits.unit.UnitTest.Jerk
-
Factory: SI value.
- ofSi(double) - Method in class org.djunits.unit.UnitTest.Jerk.Unit
- ofSi(double) - Static method in class org.djunits.unit.UnitTest.PerMass
-
Create a PerMass quantity from an SI (BASE) value, i.e. in 1/kg.
- ofSi(double) - Method in class org.djunits.unit.UnitTest.PerMass.Unit
- org.djunits.formatter - package org.djunits.formatter
- org.djunits.quantity - package org.djunits.quantity
- org.djunits.quantity.def - package org.djunits.quantity.def
- org.djunits.unit - package org.djunits.unit
- org.djunits.unit.scale - package org.djunits.unit.scale
- org.djunits.unit.si - package org.djunits.unit.si
- org.djunits.unit.system - package org.djunits.unit.system
- org.djunits.unit.units - package org.djunits.unit.units
- org.djunits.util - package org.djunits.util
- org.djunits.vecmat.d1 - package org.djunits.vecmat.d1
- org.djunits.vecmat.d2 - package org.djunits.vecmat.d2
- org.djunits.vecmat.d3 - package org.djunits.vecmat.d3
- org.djunits.vecmat.dn - package org.djunits.vecmat.dn
- org.djunits.vecmat.dnxm - package org.djunits.vecmat.dnxm
- org.djunits.vecmat.storage - package org.djunits.vecmat.storage
- org.djunits.vecmat.table - package org.djunits.vecmat.table
P
- PER_KILOGRAM - Static variable in class org.djunits.unit.UnitTest.PerMass.Unit
-
Base per-kilo unit (1/kg).
- PerMass(double, UnitTest.PerMass.Unit) - Constructor for class org.djunits.unit.UnitTest.PerMass
-
Construct a PerMass quantity with a value in the provided unit.
- pinLocale() - Static method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Pin the default
Localefor predictable formatting/parsing behavior. - pinLocale() - Static method in class org.djunits.quantity.def.QuantityTest
-
Pin the default
Localefor predictable formatting/parsing behavior. - pinLocale() - Static method in class org.djunits.quantity.SIQuantityTest
-
Pin the default
Localefor predictable formatting/parsing behavior across environments. - PositionTest - Class in org.djunits.quantity
-
PositionTest tests the Position absolute quantity class and its Reference handling.
- PositionTest() - Constructor for class org.djunits.quantity.PositionTest
- PowerTest - Class in org.djunits.quantity
-
PowerTest tests the Power quantity class.
- PowerTest() - Constructor for class org.djunits.quantity.PowerTest
- PowerUnitTest - Class in org.djunits.unit.units
-
Power.Unit test.
- PowerUnitTest() - Constructor for class org.djunits.unit.units.PowerUnitTest
- powVariants() - Method in class org.djunits.util.Math2Test
-
Verifies
Math2.pow(int, int)for diverse cases, including the negative-exponent error. - PressureTest - Class in org.djunits.quantity
-
PressureTest tests the Pressure quantity class.
- PressureTest() - Constructor for class org.djunits.quantity.PressureTest
- PressureUnitTest - Class in org.djunits.unit.units
-
Pressure.Unit test.
- PressureUnitTest() - Constructor for class org.djunits.unit.units.PressureUnitTest
- privateConstructorCoverage() - Method in class org.djunits.util.Math2Test
-
Covers the private no-arg constructor of
Math2to attain full coverage of the class. - privateConstructorCoverage() - Method in class org.djunits.util.MatrixMathTest
-
Covers the private constructor of
MatrixMathvia reflection for complete coverage.
Q
- Q(double, UnitsTest.QUnit) - Constructor for class org.djunits.unit.UnitsTest.Q
- quantityAndReferenceAccessors() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies the accessors
AbsoluteQuantity.getQuantity()andAbsoluteQuantity.getReference(). - QuantityTableTest - Class in org.djunits.vecmat.table
-
Unit tests for
QuantityTable. - QuantityTableTest() - Constructor for class org.djunits.vecmat.table.QuantityTableTest
- QuantityTest - Class in org.djunits.quantity.def
- QuantityTest() - Constructor for class org.djunits.quantity.def.QuantityTest
- QuantityTest.ExampleQuantityAQxyz - Class in org.djunits.quantity.def
-
Quantity class for test.
- QuantityTest.ExampleQuantityAQxyz.Unit - Class in org.djunits.quantity.def
-
The unit for ExampleQuantityAQxyz.
- QUnit() - Constructor for class org.djunits.unit.UnitsTest.QUnit
R
- RadioActivityTest - Class in org.djunits.quantity
-
RadioActivityTest tests the RadioActivity quantity class.
- RadioActivityTest() - Constructor for class org.djunits.quantity.RadioActivityTest
- RadioActivityUnitTest - Class in org.djunits.unit.units
-
RadioActivity.Unit test.
- RadioActivityUnitTest() - Constructor for class org.djunits.unit.units.RadioActivityUnitTest
- reciprocalFunctional() - Method in class org.djunits.util.ArrayMathTest
-
Verifies
ArrayMath.reciprocal(double[])including reciprocal of 0 and Infinity. - ReferenceTest - Class in org.djunits.quantity.def
-
ReferenceTest tests the AbstractReference registry, including per-class isolation of reference ids, duplicate detection within a class, and snapshot behavior of the returned reference map.
- ReferenceTest() - Constructor for class org.djunits.quantity.def.ReferenceTest
- ReferenceTest.EmptyReference - Class in org.djunits.quantity.def
-
Empty reference class.
- relativeToVariants() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies
AbsoluteQuantity.relativeTo(AbstractReference)for: identity transform (same reference) direct parent/child transform (A ⇄ B) multi-level transform (C ⇄ A via B) unrelated roots (should throw) Graph (SI offsets): A=0, B=A+2, C=B+1 (=A+3). - restoreLocale() - Static method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Restore the default
Localefor the FORMAT category. - restoreLocale() - Static method in class org.djunits.quantity.def.QuantityTest
-
Restore the default
Localefor the FORMAT category. - restoreLocale() - Static method in class org.djunits.quantity.SIQuantityTest
-
Restore the default
Localefor the FORMAT category after all tests complete.
S
- scaleByFunctional() - Method in class org.djunits.util.ArrayMathTest
-
Verifies
ArrayMath.scaleBy(double[], double)scaling by a scalar and preconditions. - scaleIntoProcedural() - Method in class org.djunits.util.ArrayMathTest
- ScaleTest - Class in org.djunits.unit.scale
-
ScaleTest tests the different types of conversion scales for units.
- ScaleTest() - Constructor for class org.djunits.unit.scale.ScaleTest
- setSiPrefix(String) - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- setSiPrefix(String) - Method in class org.djunits.unit.UnitsTest.QUnit
- setSiPrefix(SIPrefix) - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- setSiPrefix(SIPrefix) - Method in class org.djunits.unit.UnitsTest.QUnit
- setSiPrefixKilo(String) - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- setSiPrefixKilo(String) - Method in class org.djunits.unit.UnitsTest.QUnit
- setSiPrefixPer(String) - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- setSiPrefixPer(String) - Method in class org.djunits.unit.UnitsTest.QUnit
- setup() - Method in class org.djunits.quantity.AbsorbedDoseTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.AccelerationTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.AmountOfSubstanceTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.AngleTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.AngularAccelerationTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.AngularVelocityTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.ArealObjectDensityTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.AreaTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.CatalyticActivityTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Establishes a small reference graph for tests.
- setup() - Method in class org.djunits.quantity.def.ReferenceTest
-
Set Locale.US for consistent formatting.
- setup() - Method in class org.djunits.quantity.DensityTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.DimensionlessTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.quantity.DirectionTest
-
Setup correct locale for test.
- setup() - Method in class org.djunits.quantity.DurationTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.ElectricalCapacitanceTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.ElectricalConductanceTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.ElectricalInductanceTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.ElectricalResistanceTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.ElectricChargeTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.ElectricCurrentTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.ElectricPotentialTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.EnergyTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.EquivalentDoseTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.FlowMassTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.FlowVolumeTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.ForceTest
-
Setup uniform locale before the tests.
- setup() - Method in class org.djunits.quantity.FrequencyTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.IlluminanceTest
-
Use standard locale for tests.
- setup() - Method in class org.djunits.quantity.LengthTest
-
Use standard locale for all tests.
- setup() - Method in class org.djunits.quantity.LinearDensityTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.LinearObjectDensityTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.LuminousFluxTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.LuminousIntensityTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.MagneticFluxDensityTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.MagneticFluxTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.MassTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.MomentumTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.PositionTest
-
Set Locale.US for consistent number parsing and formatting.
- setup() - Method in class org.djunits.quantity.PowerTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.PressureTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.RadioActivityTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.SolidAngleTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.SpeedTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.TemperatureDifferenceTest
-
Standard locale for the tests.
- setup() - Method in class org.djunits.quantity.TemperatureTest
-
Set Locale.US for consistent number parsing and formatting.
- setup() - Method in class org.djunits.quantity.TimeTest
-
Set Locale.US for consistent number parsing and formatting.
- setup() - Method in class org.djunits.quantity.TorqueTest
-
Set a predictable locale before each test.
- setup() - Method in class org.djunits.quantity.VolumeTest
-
Set a predictable locale before each test.
- setup() - Method in class org.djunits.quantity.VolumetricObjectDensityTest
-
Set a deterministic locale.
- setup() - Method in class org.djunits.unit.units.AbsorbedDoseUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.AccelerationUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.AmountOfSubstanceUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.AngleUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.ArealObjectDensityUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.AreaUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.CatalyticActivityUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.DensityUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.DimensionlessUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.DurationUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.ElectricalCapacitanceUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.ElectricalConductanceUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.ElectricalInductanceUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.ElectricalResistanceUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.ElectricChargeUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.ElectricCurrentUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.ElectricPotentialUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.EnergyUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.EquivalentDoseUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.FlowMassUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.FlowVolumeUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.ForceUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.FrequencyUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.IlluminanceUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.LengthUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.LinearDensityUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.LinearObjectDensityUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.LuminousFluxUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.LuminousIntensityUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.MagneticFluxDensityUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.MagneticFluxUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.MassUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.PowerUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.PressureUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.RadioActivityUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.SolidAngleUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.SpeedUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.TemperatureUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.TorqueUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.VolumetricObjectDensityUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- setup() - Method in class org.djunits.unit.units.VolumeUnitTest
-
Set the locale to "US" so we know what texts should be retrieved from the resources.
- SI - Static variable in class org.djunits.unit.UnitTest.Jerk.Unit
-
SI/base handle for
UnitTest.Jerk.ofSi(double). - SI - Static variable in class org.djunits.unit.UnitTest.PerMass.Unit
-
Handle for
UnitTest.PerMass.ofSi(double)after prefix generation. - SI_UNIT - Static variable in class org.djunits.unit.UnitTest.Jerk.Unit
-
SI dimensions for jerk: m/s^3.
- SI_UNIT - Static variable in class org.djunits.unit.UnitTest.PerMass.Unit
-
SI dimensions of per-mass: 1/kg.
- siConstantsDimensionalityAndValues() - Method in class org.djunits.util.ConstantsTest
-
Verifies dimensionality and representative numeric values for fundamental constants.
- SIPrefixTest - Class in org.djunits.unit.si
-
Tests for
SIPrefixandSIPrefixes. - SIPrefixTest() - Constructor for class org.djunits.unit.si.SIPrefixTest
- siQuantityArithmetic() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
Quantity.multiply(Quantity),Quantity.divide(Quantity), andQuantity.reciprocal()produceSIQuantitywith correct SI values (unit algebra correctness is validated in SIQuantity/unit tests). - SIQuantityTest - Class in org.djunits.quantity
-
Unit tests for
SIQuantity. - SIQuantityTest() - Constructor for class org.djunits.quantity.SIQuantityTest
- siUnit() - Method in class org.djunits.quantity.def.QuantityTest.ExampleQuantityAQxyz.Unit
- siUnit() - Method in class org.djunits.unit.UnitsTest.NoRegisterUnit
- siUnit() - Method in class org.djunits.unit.UnitsTest.QUnit
- siUnit() - Method in class org.djunits.unit.UnitTest.Jerk
- siUnit() - Method in class org.djunits.unit.UnitTest.Jerk.Unit
- siUnit() - Method in class org.djunits.unit.UnitTest.PerMass
- siUnit() - Method in class org.djunits.unit.UnitTest.PerMass.Unit
- siUnitMatches() - Method in class org.djunits.quantity.def.QuantityTest
-
Ensures that
Quantity.siUnit()returns the correct SI unit for the quantity family. - siUnitReturnsCurrentUnit() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies
SIQuantity.siUnit()returns the current display unit (for SIQuantity this is its own SI unit). - SIUnitTest - Class in org.djunits.unit.si
-
Unit tests for
SIUnit. - SIUnitTest - Class in org.djunits.unit.units
-
SIUnitTest tests a few remaining methods of the SIUnit class.
- SIUnitTest() - Constructor for class org.djunits.unit.si.SIUnitTest
- SIUnitTest() - Constructor for class org.djunits.unit.units.SIUnitTest
- siValueInvariant() - Method in class org.djunits.quantity.def.QuantityTest
-
Ensures that the SI value returned by
Quantity.si()is invariant under changes to the display unit. - SolidAngleTest - Class in org.djunits.quantity
-
SolidAngleTest tests the SolidAngle quantity class.
- SolidAngleTest() - Constructor for class org.djunits.quantity.SolidAngleTest
- SolidAngleUnitTest - Class in org.djunits.unit.units
-
SolidAngle.Unit test.
- SolidAngleUnitTest() - Constructor for class org.djunits.unit.units.SolidAngleUnitTest
- SparseDoubleDataSiTest - Class in org.djunits.vecmat.storage
-
Unit tests for
SparseDoubleDataSi. - SparseDoubleDataSiTest() - Constructor for class org.djunits.vecmat.storage.SparseDoubleDataSiTest
- SparseFloatDataSiTest - Class in org.djunits.vecmat.storage
-
Unit tests for
SparseFloatDataSi. - SparseFloatDataSiTest() - Constructor for class org.djunits.vecmat.storage.SparseFloatDataSiTest
- SpeedTest - Class in org.djunits.quantity
-
SpeedTest tests the Speed quantity class.
- SpeedTest() - Constructor for class org.djunits.quantity.SpeedTest
- SpeedUnitTest - Class in org.djunits.unit.units
-
Speed.Unit test.
- SpeedUnitTest() - Constructor for class org.djunits.unit.units.SpeedUnitTest
- subtract(AbsoluteQuantityTest.AbsoluteExampleQuantityAQxyz) - Method in class org.djunits.quantity.def.AbsoluteQuantityTest.AbsoluteExampleQuantityAQxyz
- subtract(Length) - Method in class org.djunits.quantity.def.AbsoluteQuantityTest.AbsoluteExampleQuantityAQxyz
- subtractAbsolute() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies
AbsoluteQuantity.subtract(AbsoluteQuantity)aligns references and returns the relative difference. - subtractFunctional() - Method in class org.djunits.util.ArrayMathTest
-
Verifies
ArrayMath.subtract(double[], double[])element-wise difference and preconditions. - sumAbsValues() - Method in class org.djunits.util.Math2Test
-
Verifies
Math2.sumAbs(double...)produces the sum of absolute values and sentinel behavior. - sumMean() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies
AbsoluteQuantity.sum(AbsoluteQuantity, AbsoluteQuantity[])andAbsoluteQuantity.mean(AbsoluteQuantity, AbsoluteQuantity[])for identical references, and ensures that the reference and display unit of the first argument are preserved. - sumMean() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
Quantity.sum(Quantity, Quantity[])andQuantity.mean(Quantity, Quantity[])and that the display unit of the first argument is preserved in the result. - sumSqrValues() - Method in class org.djunits.util.Math2Test
-
Verifies
Math2.sumSqr(double...)produces the sum of squares and sentinel behavior. - sumValues() - Method in class org.djunits.util.Math2Test
-
Verifies
Math2.sum(double...)with typical inputs and sentinel behavior. - symmetryChecks() - Method in class org.djunits.util.MatrixMathTest
-
Verifies symmetry checks with default and explicit tolerances.
T
- TemperatureDifferenceTest - Class in org.djunits.quantity
-
TemperatureDifferenceTest tests the TemperatureDifference quantity class.
- TemperatureDifferenceTest() - Constructor for class org.djunits.quantity.TemperatureDifferenceTest
- TemperatureTest - Class in org.djunits.quantity
-
TemperatureTest tests the Temperature absolute quantity class and its Reference handling.
- TemperatureTest() - Constructor for class org.djunits.quantity.TemperatureTest
- TemperatureUnitTest - Class in org.djunits.unit.units
-
Temperature.Unit test.
- TemperatureUnitTest() - Constructor for class org.djunits.unit.units.TemperatureUnitTest
- testAbsorbedDose() - Method in class org.djunits.quantity.AbsorbedDoseTest
-
Test the basic features.
- testAbstractUnitConstructorValidation() - Method in class org.djunits.unit.UnitTest
-
Constructor validation in
AbstractUnit: null or empty fields must be rejected. - testAbstractUnitEqualsHashCodeToString() - Method in class org.djunits.unit.UnitTest
- testAcceleration() - Method in class org.djunits.quantity.AccelerationTest
-
Test the basic features.
- testAccessorsAndIndexing() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify size, x() quantities, xSi(), si() copy semantics, and get(index) branches.
- testAccessorsAndIndexing() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify size, x()/y() quantities, xSi()/ySi(), si() copy semantics, and get(index) branches.
- testAccessorsAndIndexingCol() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify size, x/y/z quantities, xSi/ySi/zSi, si(), get(index) (Col).
- testAccessorsAndIndexingRow() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify size, x/y/z quantities, xSi/ySi/zSi, si() copy semantics, and get(index) branches (Row).
- testAddDirection() - Method in class org.djunits.quantity.AngleTest
-
Test add(Direction): result SI equals direction + angle; display unit propagation is indirect in Direction, so we validate SI arithmetic here.
- testAddGetAndPerClassIsolation() - Method in class org.djunits.quantity.def.ReferenceTest
-
Verify that references can be added and retrieved by id for a specific Reference subclass, and that the same id can be reused safely in a different Reference subclass (per-class isolation; no cross-quantity collisions).
- testAddSubtractMatrix() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
VectorMatrix.add(Quantity)andsubtract(VM)with another matrix. - testAddSubtractMatrix() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
VectorMatrix.add(Quantity)andsubtract(VM)with another matrix. - testAddSubtractMatrix() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
add(VM)andsubtract(VM)element-wise for matrices. - testAddSubtractQuantity() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
VectorMatrix.add(Quantity)andsubtract(Q)with quantities. - testAddSubtractQuantity() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
VectorMatrix.add(Quantity)andsubtract(Q)with quantities. - testAddSubtractQuantity() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
add(Q)andsubtract(Q)with quantities. - testAddWithPosition() - Method in class org.djunits.quantity.LengthTest
-
Test Length.add(Position): reference propagation, display unit propagation, and SI math.
- testAdjugate() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
Matrix1x1.adjugate()for a generic 1x1 matrix. - testAdjugate() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
Matrix2x2.adjugate()for a generic 2x2 matrix. - testAdjugateAllBranches() - Method in class org.djunits.util.MatrixMathTest
-
Test the
adjugate(double[], int)method for correctness and full branch coverage. - testAlgebraAndStats() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify vector/matrix algebra defaults and statistics.
- testAlgebraAndStats() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify add/sub (Q & VM), negate/abs/scaleBy, stats on 2x3 matrix.
- testAlgebraCol() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify vector algebra operations for
VectorN.Col: element-wiseadd/subtract(V),add/subtract(Q),negate(),abs(), andscaleBy(double). - testAlgebraRow() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify vector algebra operations for
VectorN.Row: element-wiseadd/subtract(V),add/subtract(Q),negate(),abs(), andscaleBy(double). - testAllConstructors() - Method in class org.djunits.quantity.TemperatureTest
-
Test all Temperature constructors, ensuring that value, unit, and reference are interpreted correctly and that the correct default reference is applied when no explicit reference is provided.
- testAllLocaleFilesKeyFormat() - Method in class org.djunits.unit.LocaleFilesTest
-
Validate that all keys in each locale bundle match one of the allowed patterns.
- testAmountOfSubstance() - Method in class org.djunits.quantity.AmountOfSubstanceTest
-
Test the basic features.
- testAngleBasics() - Method in class org.djunits.quantity.AngleTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, and siUnit.
- testAngularAccelerationBasics() - Method in class org.djunits.quantity.AngularAccelerationTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testAngularVelocityBasics() - Method in class org.djunits.quantity.AngularVelocityTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testAreaBasics() - Method in class org.djunits.quantity.AreaTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testArealObjectDensityBasics() - Method in class org.djunits.quantity.ArealObjectDensityTest
-
Test the basic features: constructors, constants, parsing, instantiate, siUnit, and ofSi.
- testArealObjectDensityOperations() - Method in class org.djunits.quantity.ArealObjectDensityTest
-
Test arithmetic operations and reciprocal.
- testAreaOperations() - Method in class org.djunits.quantity.AreaTest
-
Test arithmetic: divide/multiply combinations and reciprocal.
- testArithmetic() - Method in class org.djunits.quantity.PositionTest
-
Test subtract(Position) → Length, add(Length) → Position, subtract(Length) → Position, and check that display units propagate correctly from the absolute quantity.
- testArithmetic() - Method in class org.djunits.quantity.TemperatureTest
-
Test addition and subtraction of relative quantities, subtraction of absolute temperatures, and correct propagation of display units.
- testArithmetic() - Method in class org.djunits.quantity.TimeTest
-
Test subtract(Time) → Duration, add(Duration) → Time, subtract(Duration) → Time, and check display-unit propagation from the absolute quantity.
- testArrayConstructor() - Method in class org.djunits.unit.si.SIUnitTest
-
Verifies the int[9]-array constructor: Null and wrong-length arrays are rejected. Input array is defensively copied.
- testAs() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
Matrix1x1.as(UnitInterface)succeeds when SI units match (e.g., m ↔ km), and throws when SI units mismatch (e.g., length ↔ time). - testAs() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify as(targetUnit) succeeds for a unit with identical SI dimension and fails for mismatched dimension.
- testAs() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
Matrix2x2.as(UnitInterface)succeeds when SI units match (e.g., m ↔ km), and throws when SI units mismatch (e.g., length ↔ time). - testAs() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify as(targetUnit) succeeds for a unit with identical SI dimension and fails for mismatched dimension.
- testAs() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
Matrix3x3.as(UnitInterface)succeeds when SI units match (e.g., m ↔ km), and throws when SI units mismatch (e.g., length ↔ time). - testAs() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify as(targetUnit) succeeds for m↔km and fails for mismatched SI unit (Row & Col).
- testAs() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify
MatrixNxN.as(UnitInterface)success (m↔km) and failure (dimension mismatch). - testAs() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Test as(): converting the table to a different display unit but identical SI unit.
- testAsMatrix1x1() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify that
asMatrix1x1()preserves SI and display unit for a 1x1 matrix, and throwsIllegalStateExceptionfor other N (N=2 and N=3). - testAsMatrix2x2() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify that
asMatrix2x2()preserves SI and display unit for a 2x2 matrix, and throwsIllegalStateExceptionfor other N (tested with N=1 and N=3). - testAsMatrix3x3() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify that
asMatrix3x3()preserves SI and display unit for a 3x3 matrix, and throwsIllegalStateExceptionfor other N (tested with N=2 and N=4). - testAsMatrixConversions() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify as* matrix conversions and shape checks.
- testAsMatrixNxN() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify that
asMatrixNxN()preserves SI data and display unit for square matrices (tested with 1x1 and 4x4), and throwsIllegalStateExceptionfor non-square shapes (tested with 2x3 and 3x2). - testAsMatrixNxN() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify that
asMatrixNxN()preserves SI data and display unit for square matrices (tested with 1x1 and 4x4), and throwsIllegalStateExceptionfor non-square shapes (tested with 2x3 and 3x2). - testAsMethodsUnitConversion() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify that all asXXX() methods correctly preserve SI values and correctly assign display units.
- testAsTargetUnit() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify as(targetUnit) success (m↔km) and failure (dimension mismatch).
- testAsVectorConversions() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify as* vector conversions for 2/3/N Col and Row, plus shape checks.
- testAsVectorNCol() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify that
asVectorNCol(): Preserves SI data and display unit forN x 1matrices (tested with N=4 and N=1), ThrowsIllegalStateExceptionwhen the matrix has more than one column (e.g.,N x 2). SI correctness is validated via both the row-majorsi()array and element access on the returned vector. - testAsVectorNCol() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify that
asVectorNCol(): Preserves SI data and display unit forN x 1matrices (tested with N=4 and N=1), ThrowsIllegalStateExceptionwhen the matrix has more than one column (e.g.,N x 2). SI correctness is validated via both the row-majorsi()array and element access on the returned vector. - testAsVectorNRow() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify that
asVectorNRow(): Preserves SI data and display unit for1 x Nmatrices (tested with N=4 and N=1), ThrowsIllegalStateExceptionwhen the matrix has more than one row (e.g.,2 x N). SI correctness is validated via both the row-majorsi()array and element access on the returned vector. - testAsVectorNRow() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify that
asVectorNRow(): Preserves SI data and display unit for1 x Nmatrices (tested with N=4 and N=1), ThrowsIllegalStateExceptionwhen the matrix has more than one row (e.g.,2 x N). SI correctness is validated via both the row-majorsi()array and element access on the returned vector. - testBasicAlgebraCol() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify add(Q), subtract(Q), add(V), subtract(V), negate(), abs(), scaleBy(double) for Col.
- testBasicAlgebraCol() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify add(Q), subtract(Q), add(V), subtract(V), negate(), abs(), scaleBy() (Col).
- testBasicAlgebraRow() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify add(Q), subtract(Q), add(V), subtract(V), negate(), abs(), scaleBy(double) for Vector1.
- testBasicAlgebraRow() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify add(Q), subtract(Q), add(V), subtract(V), negate(), abs(), scaleBy(double) for Row.
- testBasicAlgebraRow() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify add(Q), subtract(Q), add(V), subtract(V), negate(), abs(), scaleBy() (Row).
- testBasics() - Method in class org.djunits.quantity.DirectionTest
-
Test constructors, parsing, ofSi, instantiate, and siUnit.
- testBasics() - Method in class org.djunits.quantity.TorqueTest
-
Test constructors, constants, string parsing, SI conversions, instantiate, siUnit(), and ofSi().
- testBasics() - Method in class org.djunits.quantity.VolumetricObjectDensityTest
-
Test constructors, constants, SI conversions, instantiate, siUnit(), copy.
- testBasicShapeAndValue() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
VectorMatrix.rows(),VectorMatrix.cols(),VectorMatrix.get(int, int)and relative/absolute flag. - testBasicShapeAndValue() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
VectorMatrix.rows(),VectorMatrix.cols(),VectorMatrix.get(int, int)and relative/absolute flag. - testBasicShapeAndValue() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
VectorMatrix.rows(),VectorMatrix.cols(),VectorMatrix.get(int, int)and relative/absolute flag. - testBundleUtf8ControlLoadsFiles() - Method in class org.djunits.unit.UnitsTest
-
Verify the UTF-8 ResourceBundle loader can read localized files and retrieve non-ASCII content.
- testCardinality() - Method in class org.djunits.vecmat.storage.DataGridSiTest
-
Test cardinality() with different types.
- testCardinality() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify
DenseDoubleDataSi.cardinality()semantics: counts non-zero entries (treats +/-0.0 as zero; counts NaN and infinities as non-zero). - testCardinality() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test cardinality semantics: counts non-zero entries; counts NaN and infinity as non-zero.
- testCardinality() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test cardinality method.
- testCardinality() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Test cardinality.
- testCatalyticActivityBasics() - Method in class org.djunits.quantity.CatalyticActivityTest
-
Test the basic features: constructors, constants, parsing, SI conversions (including prefixes), instantiate, siUnit, and ofSi.
- testCatalyticActivityOperations() - Method in class org.djunits.quantity.CatalyticActivityTest
-
Test arithmetic: divide/multiply combinations.
- testCol3ScalarExtraction() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify scalar array extraction helpers on a
Vector3.Col(3x1) and their 1-based variants. - testCol3SiArrayExtractionAndSiAt() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify SI-array extraction helpers on a
Vector3.Coland direct SI element access usingsi(row, col)andmsi(row, col)including bounds. - testCol3VectorExtractionSpec() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify vector extraction helpers on a
Vector3.Col(3x1) for both 0-based and 1-based variants. - testColNScalarExtraction() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify scalar array extraction helpers on a
VectorN.Col(4x1) and their 1-based variants. - testColNSiArrayExtractionAndSiAt() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify SI-array extraction helpers on a
VectorN.Coland direct SI element access usingsi(row, col)andmsi(row, col)including bounds. - testColNVectorExtractionSpec() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify vector extraction helpers on a
VectorN.Col(4x1) for both 0-based and 1-based variants. - testColScalarExtraction() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify scalar array extraction helpers on a
Vector2.Col(2x1) and their 1-based variants. - testColSiArrayExtractionAndSiAt() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify SI-array extraction helpers on a
Vector2.Coland direct SI element access usingsi(row, col)andmsi(row, col)including bounds. - testColTimesRow() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify Col⋅Row = 2x2 matrix with plus-unit composition.
- testColTimesRow() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Col·Row → Matrix3x3 with plus-unit composition.
- testColVectorExtractionSpec() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify vector extraction helpers on a
Vector2.Col(2x1) for both 0-based and 1-based variants. - testComparisonOperators() - Method in class org.djunits.quantity.PositionTest
-
Test lt, le, gt, ge, eq, ne, compareTo, including mismatched-reference errors.
- testComparisonOperators() - Method in class org.djunits.quantity.TemperatureTest
-
Test lt, le, gt, ge, eq, ne, compareTo, and mismatched-reference error cases.
- testComparisonOperators() - Method in class org.djunits.quantity.TimeTest
-
Test lt, le, gt, ge, eq, ne, compareTo.
- testConstantsAndBaseBehavior() - Method in class org.djunits.unit.UnitlessTest
-
Verify constants and base behavior:
Unitless.SI_UNIT,Unitless.BASE, IDs/names/displays, system, and scale factor. - testConstructor() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify constructor.
- testConstructor() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Test basic constructor behavior: correct dimensions and display unit.
- testConstructorAndShapeCol() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify that a
VectorN.Colconstructed from display values stores SI internally and reports correct shape properties (rows, cols, size, orientation). - testConstructorAndShapeRow() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify that a
VectorN.Rowconstructed from display values stores SI internally and reports correct shape properties (rows, cols, size, orientation). - testConstructorAndSiStorage() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify that constructor interprets values in the provided display unit and converts to SI storage.
- testConstructorAndSiStorage() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify that constructor interprets values in the provided display unit and converts to SI storage.
- testConstructorAndSiStorageCol() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify that constructor interprets values in display unit and stores SI internally (Col).
- testConstructorAndSiStorageRow() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify that constructor interprets values in display unit and stores SI internally (Row).
- testConstructors() - Method in class org.djunits.quantity.PositionTest
-
Test all Position constructors: (value, unit, reference), (value, abbreviation, reference), and (Length, reference).
- testConstructors() - Method in class org.djunits.quantity.TimeTest
-
Test all Time constructors: (value, unit, reference), (value, abbreviation, reference), and (Duration, reference), as well as ofSi(..., reference).
- testConstructorValidation() - Method in class org.djunits.unit.scale.ScaleTest
-
Test constructors against illegal arguments.
- testCopy() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify
DenseDoubleDataSi.copy()creates a deep copy (independent backing array). - testCopy() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test deep copy semantics of
copy(). - testCopy() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test deep copy of sparseData and indexes.
- testCopy() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Test deep copy.
- testCtor2DArrayValidationCopyingAndOrder() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify constructor with
double[][]validates inputs, performs a safe copy, and preserves row-major ordering. - testCtor2DFloatArray() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test constructor(float[][]) for safe-copy semantics, validation, row-major correctness, and ragged-row exact exception class.
- testCtorCollection() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test constructor(Collection) including bounds errors and SI conversion.
- testCtorCollection() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Constructor(Collection): row/col bounds + SI.
- testCtorDenseData() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test constructor(double[],r,c) and sparse conversion.
- testCtorDenseData() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Constructor: double[] denseData.
- testCtorDenseFloatData() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Constructor: float[] denseData.
- testCtorDenseQArray() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Constructor: Q[] denseData to sparse safe copy.
- testCtorDoubleArrayValidationAndExposure() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify constructor with
double[]validates inputs and sets geometry and backing reference as specified (no safe copy). - testCtorFloatArrayValidation() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test validation paths for constructor(float[],r,c).
- testCtorFloatMatrix() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Constructor: float[][] densely.
- testCtorMatrix() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test constructor(double[][]) including ragged checking and safe-copy semantics.
- testCtorMatrix() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Constructor: double[][] densely.
- testCtorMatrixQ() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test constructor(Q[][]) incl. ragged detection, SI conversion, and safe copies.
- testCtorMatrixQ() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Constructor(Q[][]): SI conversion + ragged detection + sparse copy.
- testCtorQArrayDense() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test constructor(Q[], rows, cols) and verify no size check and correct sparse generation.
- testCtorQArraySparse() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test constructor(Q[], indexes, rows, cols) with SI-conversion and validation.
- testCtorQuantity() - Method in class org.djunits.vecmat.storage.DoubleSparseValueTest
-
Test constructor(row,col,Quantity) including SI-conversion and null-check.
- testCtorQuantity() - Method in class org.djunits.vecmat.storage.FloatSparseValueTest
-
Test constructor(row,col,Q) including SI-conversion and null-check.
- testCtorQuantity2DArraySIConversion() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify constructor with
Q[][]validates inputs, performs a safe copy, and writes SI values; unit conversions must be respected (e.g., km to m, cm to m). - testCtorQuantityArray() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test constructor(Q[][]) for safe-copy, SI conversion, and ragged detection.
- testCtorSI() - Method in class org.djunits.vecmat.storage.DoubleSparseValueTest
-
Test constructor(row,col,si) and valid SI assignment.
- testCtorSI() - Method in class org.djunits.vecmat.storage.FloatSparseValueTest
-
Test constructor(row,col,si) and negative index detection.
- testCtorSparseQArray() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Constructor: Q[] sparseData + indexes + safe copy.
- testCtorValueUnit() - Method in class org.djunits.vecmat.storage.DoubleSparseValueTest
-
Test constructor(row,col,valueInUnit,unit) including toBaseValue conversion.
- testCtorValueUnit() - Method in class org.djunits.vecmat.storage.FloatSparseValueTest
-
Test constructor(row,col,valueInUnit,unit) including conversion to SI.
- testCustomUnitJerk() - Method in class org.djunits.unit.UnitTest
-
Verify that a newly defined unit (Jerk) behaves correctly: SI-prefix generation on a base-scale unit, Derivation and Units registry lookups, UnitInterface.ofSi(...) creates the correct quantity, quantityInUnit(...) sets SI value and display unit.
- testD(double, int) - Static method in class org.djunits.formatter.EngineeringFormatterTest
-
Print result of main value and value plus or minus one ULP.
- testDefaultRowColMethods() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test DataGrid.getRowArray and getColArray.
- testDensityBasics() - Method in class org.djunits.quantity.DensityTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testDensityOperations() - Method in class org.djunits.quantity.DensityTest
-
Test arithmetic operations.
- testDeriveUnitInvalidFactors() - Method in class org.djunits.unit.UnitlessTest
-
Verify
deriveUnit(...)rejects invalid factors (0, < 0, non-finite) viaLinearScale's constructor. - testDeriveUnitLinearAndGuard() - Method in class org.djunits.unit.UnitTest
-
Verify that
AbstractUnit.deriveUnit(String, String, String, double, UnitSystem)multiplies linear factors and throws for non-linear scales. - testDeriveUnitLinearScale() - Method in class org.djunits.unit.UnitlessTest
-
Verify
Unitless.deriveUnit(String, String, String, double, UnitSystem)on a unit with linear scale composes factors multiplicatively. - testDeriveUnitThrowsForNonLinearScale() - Method in class org.djunits.unit.UnitlessTest
- testDeterminantAndTrace() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify determinant as scalar and as quantity, and trace.
- testDeterminantAndTrace() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify determinant as scalar and as quantity, and trace.
- testDeterminantTraceAdjugateIdentity() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify determinant as scalar and as quantity, and trace; also test the identity A · adj(A) = det(A) · I.
- testDimensionlessBasics() - Method in class org.djunits.quantity.DimensionlessTest
-
Test the basic features: constructors, constants, parsing, instantiate, siUnit, and ofSi.
- testDimensionlessOperations() - Method in class org.djunits.quantity.DimensionlessTest
-
Test arithmetic operations and reciprocal for Dimensionless.
- testDimless() - Method in class org.djunits.unit.si.SIUnitTest
-
Verifies the
SIUnit.DIMLESSinstance and basic renderers. - testDivideDimensionless() - Method in class org.djunits.quantity.AngularVelocityTest
-
Test divide(AngularVelocity) -> Dimensionless.
- testDivideElements() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Test divideElements(): Hadamard division of two tables.
- testDuplicateIdWithinSameClassThrows() - Method in class org.djunits.quantity.def.ReferenceTest
-
Adding two references with the same id to the same Reference subclass must throw an IllegalArgumentException on the second attempt.
- testDurationBasics() - Method in class org.djunits.quantity.DurationTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testDurationOperations() - Method in class org.djunits.quantity.DurationTest
-
Test arithmetic (divide, multiply, reciprocal) and add(Time) behavior.
- testElectricalCapacitanceBasics() - Method in class org.djunits.quantity.ElectricalCapacitanceTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testElectricalCapacitanceOperations() - Method in class org.djunits.quantity.ElectricalCapacitanceTest
-
Test arithmetic (divide, multiply) behavior.
- testElectricalConductanceBasics() - Method in class org.djunits.quantity.ElectricalConductanceTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testElectricalConductanceOperations() - Method in class org.djunits.quantity.ElectricalConductanceTest
-
Test arithmetic (divide, multiply, reciprocal) behavior.
- testElectricalInductanceBasics() - Method in class org.djunits.quantity.ElectricalInductanceTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testElectricalInductanceOperations() - Method in class org.djunits.quantity.ElectricalInductanceTest
-
Test arithmetic (divide) behavior.
- testElectricalResistanceBasics() - Method in class org.djunits.quantity.ElectricalResistanceTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testElectricalResistanceOperations() - Method in class org.djunits.quantity.ElectricalResistanceTest
-
Test arithmetic (divide, multiply, reciprocal) behavior.
- testElectricChargeBasics() - Method in class org.djunits.quantity.ElectricChargeTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testElectricChargeOperations() - Method in class org.djunits.quantity.ElectricChargeTest
-
Test arithmetic (divide variants) behavior.
- testElectricCurrentBasics() - Method in class org.djunits.quantity.ElectricCurrentTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testElectricCurrentOperations() - Method in class org.djunits.quantity.ElectricCurrentTest
-
Test arithmetic (divide, multiply) behavior.
- testElectricPotentialBasics() - Method in class org.djunits.quantity.ElectricPotentialTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testElectricPotentialOperations() - Method in class org.djunits.quantity.ElectricPotentialTest
-
Test arithmetic (divide, multiply) behavior.
- testEmptyStringEntriesInMaps() - Method in class org.djunits.unit.si.SIPrefixTest
-
Verify presence and numeric semantics for "" in the public maps now that you allow empty-string as the “no SI prefix” marker.
- testEnergyBasics() - Method in class org.djunits.quantity.EnergyTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testEnergyOperations() - Method in class org.djunits.quantity.EnergyTest
-
Test arithmetic (divide, multiply) behavior with related quantities.
- testEnumConstantsPresence() - Method in class org.djunits.unit.si.SIPrefixTest
-
Enum constants presence and basic invariants.
- testEqualityContracts() - Method in class org.djunits.unit.system.UnitSystemTest
-
Equality/hashCode minimal contracts (identity-based unless overridden).
- Reflexivity (x.equals(x))
- Distinct user-defined instances are not the same reference; equals may or may not be overridden. - testEquals() - Method in class org.djunits.vecmat.storage.DataGridSiTest
-
Test equals() with other DataGridSi instances.
- testEquals0() - Method in class org.djunits.vecmat.storage.DataGridSiTest
-
Test equals() with other DataGridSi instances with zeroes.
- testEqualsAndHashCode() - Method in class org.djunits.unit.si.SIUnitTest
-
Equality and hashCode contracts across construction paths and negatives.
- testEqualsEps() - Method in class org.djunits.vecmat.storage.DataGridSiTest
-
Test equals(obj, eps) with other DataGridSi instances.
- testEqualsHash() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify
equals/hashCodefor equal and different data. - testEqualsHash() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify equals/hashCode.
- testEqualsHash() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify equals/hashCode.
- testEqualsHashCode() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
- testEqualsHashCode() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify equals/hashCode and type-sensitive equality (Row vs Col), and that display unit changes do not affect equals.
- testEqualsHashCode() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
- testEqualsHashCode() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify equals/hashCode and type-sensitive equality (Row vs Col), and that display unit changes do not affect equals.
- testEqualsHashCode() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
- testEqualsHashCode() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify equals() and hashCode() methods.
- testEqualsHashCode() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify equality and hash code contracts.
- testEqualsHashCode() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test equals and hashCode semantics.
- testEqualsHashCode() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test equals() and hashCode().
- testEqualsHashCode() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Test equals and hashCode.
- testEqualsHashCodeContracts() - Method in class org.djunits.unit.scale.ScaleTest
-
equals/hashCode: symmetry, transitivity, and inequality with close-but-different parameters.
- testEqualsHashCodeToString() - Method in class org.djunits.unit.UnitlessTest
-
Basic object contract checks for equals, hashCode, and toString.
- testEquivalentDoseBasics() - Method in class org.djunits.quantity.EquivalentDoseTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testEquivalentDoseOperations() - Method in class org.djunits.quantity.EquivalentDoseTest
-
Test arithmetic (divide) behavior.
- testExponentAlgebra() - Method in class org.djunits.unit.si.SIUnitTest
-
Exponent algebra: plus, minus, invert, pow.
- testFactorsExponentResolution() - Method in class org.djunits.unit.si.SIPrefixTest
-
FACTORS map: exponent → prefix.
- testFactoryArray() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify
MatrixNxN.of(double[], UnitInterface)rejects nulls, wrong lengths, and converts to SI. - testFactoryArray() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify of(double[], rows, cols, U) rejects nulls/bad sizes and converts display→SI.
- testFactoryArray() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify of(double[], rows, cols, U) rejects nulls/bad sizes and converts display→SI.
- testFactoryGrid() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify
MatrixNxN.of(double[][], UnitInterface)checks 4x4 shape and converts to SI. - testFactoryGrid() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify of(double[][],U) checks rectangular shape and converts display→SI.
- testFactoryGrid() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify of(double[][],U) checks rectangular shape and converts display→SI.
- testFactoryOfArray() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
Matrix1x1.of(double[], UnitInterface)rejects nulls and wrong sizes, and converts using the display unit. - testFactoryOfArray() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
Matrix2x2.of(double[], UnitInterface)rejects nulls and wrong sizes, and converts using the display unit. - testFactoryOfArray() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
Matrix3x3.of(double[], UnitInterface)rejects nulls and wrong sizes, and converts using the display unit. - testFactoryOfGrid() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
Matrix1x1.of(double[][], UnitInterface)validation and SI conversion. - testFactoryOfGrid() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
Matrix2x2.of(double[][], UnitInterface)validation and SI conversion. - testFactoryOfGrid() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
Matrix3x3.of(double[][], UnitInterface)validation and SI conversion. - testFactoryQuantityGrid() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify of(Q[][],U) accepts per-cell units via DenseDoubleData and sets display unit.
- testFactoryQuantityGrid() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify of(Q[][],U) accepts per-cell units via DenseDoubleData and sets display unit.
- testFlowMassBasics() - Method in class org.djunits.quantity.FlowMassTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testFlowMassOperations() - Method in class org.djunits.quantity.FlowMassTest
-
Test arithmetic operations with related quantities.
- testFlowVolumeBasics() - Method in class org.djunits.quantity.FlowVolumeTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testFlowVolumeOperations() - Method in class org.djunits.quantity.FlowVolumeTest
-
Test arithmetic operations with related quantities.
- testFluentAndRelative() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify setDisplayUnit returns
this(fluent) and that isRelative aligns with Length semantics. - testFluentAndRelative() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify setDisplayUnit returns
this(fluent) and that isRelative aligns with Length semantics. - testFluentAndToString() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify that
VectorMatrix.setDisplayUnit(org.djunits.unit.UnitInterface)returnsthisfor fluent usage and thatVectorN.toString()andVectorN.toString(org.djunits.unit.UnitInterface)contain correct orientation and unit abbreviation. - testForceBasics() - Method in class org.djunits.quantity.ForceTest
-
Test the basic features: constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testForceOperations() - Method in class org.djunits.quantity.ForceTest
-
Test arithmetic operations with related quantities.
- testFormattingVariants() - Method in class org.djunits.unit.si.SIUnitTest
-
Formatting variants: plain (with/without separator), caret powers, and HTML, for two representative units.
- testFrequencyBasics() - Method in class org.djunits.quantity.FrequencyTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testFrequencyOperations() - Method in class org.djunits.quantity.FrequencyTest
-
Test arithmetic operations.
- testGenerateSiPrefixes() - Method in class org.djunits.unit.UnitTest
-
SI-prefix generation: guard paths and positive paths.
- testGetAndGetDataArray() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test getDataArray generates dense layout correctly and is a safe copy.
- testGetAndGetDataArray() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
get() and getDataArray(): binary search hit/miss + safe copy.
- testGetBounds() - Method in class org.djunits.vecmat.storage.DataGridSiTest
-
Test get() with wrong bounds.
- testGetColArray() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify that
DataGridSi.getColArray(int)returns a dense copy with correct values and enforces bounds. - testGetColArray() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test
getColArrayincluding bounds checking. - testGetDataArrayCopy() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Verify that
getDataArray()returns a *new* double array each call and does not expose the internal float[]. - testGetDataArrayExposure() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify exposure semantics of
DenseDoubleDataSi.getDataArray()(no safe copy). - testGetOutOfBounds() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify that
get(int,int)throws for all out-of-bounds row/col combinations. - testGetOutOfBounds() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test all out-of-bounds read conditions.
- testGetReferenceMapIsSnapshot() - Method in class org.djunits.quantity.def.ReferenceTest
-
getReferenceMap() must return a snapshot (defensive copy) of the internal registry of the corresponding Reference subclass.
- testGetRowArray() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify that
DataGridSi.getRowArray(int)returns a dense copy with correct values and enforces bounds. - testGetRowArray() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test
getRowArrayincluding bounds checking. - testGetScalarArray() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify
Vector.getScalarArray()returns a Q[] (not Object[]) with the correct order and values. - testGetScalarArray() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify
Vector.getScalarArray()returns a Q[] (not Object[]) with the correct order and values. - testGetScalarArray() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify getScalarArray returns a Q[3] with values in order x,y,z (Row and Col).
- testGetScalarArray() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify that
VectorN.getScalarArray()returns aQ[]of correct length and component types, with entries in the expected x..n order. - testGetSiPrefixPerValidKeys() - Method in class org.djunits.unit.si.SIPrefixTest
-
getSiPrefixPer(String) should return proper results for valid keys, including the empty string "" to indicate "no SI prefix" in the per-unit set.
- testGetSiPrefixValidKeys() - Method in class org.djunits.unit.si.SIPrefixTest
-
getSiPrefix(String) should return proper results for valid keys, including the empty string "" to indicate "no SI prefix".
- testGradeScaleAdditional() - Method in class org.djunits.unit.scale.ScaleTest
-
GradeScale: more trigonometric sanity tests and round-trips.
- testHadamard() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify Hadamard element-wise operations: invert, multiply, divide.
- testHadamard() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify Hadamard element-wise operations: invert, multiply, divide.
- testHadamard() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify Hadamard element-wise operations: invert, multiply, divide.
- testHadamard() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify element-wise Hadamard operations and unit composition.
- testHadamard() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify Hadamard invert/multiply/divide with unit composition.
- testHadamardCol() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify Hadamard element-wise operations and correct unit composition.
- testHadamardCol() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify Hadamard element-wise operations and correct unit composition.
- testHadamardCol() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify Hadamard operations and result-unit composition (Col).
- testHadamardCol() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify element-wise Hadamard operations on a
VectorN.Col:invertElements(),multiplyElements(V),divideElements(V)and validate result-unit composition. - testHadamardRow() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify Hadamard element-wise operations and correct unit composition.
- testHadamardRow() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify Hadamard operations and result-unit composition (Row).
- testHadamardRow() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify element-wise Hadamard operations on a
VectorN.Row:invertElements(),multiplyElements(V),divideElements(V)and validate result-unit composition viaSIUnit.add(SIUnit, SIUnit)andSIUnit.subtract(SIUnit, SIUnit). - testHashCode() - Method in class org.djunits.vecmat.storage.DataGridSiTest
-
Test hashCode() with other DataGridSi instances.
- testIdentityAndLinearRoundTrip() - Method in class org.djunits.unit.scale.ScaleTest
-
Extra round-trip checks for IdentityScale and LinearScale.
- testIlluminanceBasics() - Method in class org.djunits.quantity.IlluminanceTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testIlluminanceOperations() - Method in class org.djunits.quantity.IlluminanceTest
-
Test arithmetic operations.
- testIndexing() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify
Vector.get(int)andVector.get(int)with valid and invalid indices; this test ensures the index addressing follows the intended semantics: a row vector reads from(0, index-1), a column vector from(index-1, 0). - testIndexingAndValues() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Ensure index-related methods do not throw for valid bounds and that value retrieval uses display unit.
- testIndexingAndValues() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Ensure index-related methods do not throw for valid bounds and that value retrieval uses display unit.
- testIndexingAndValues() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Ensure index-related methods do not throw for valid bounds and that value retrieval uses display unit.
- testInstantiate() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
Matrix1x1.instantiateSi(double[])creates a new matrix with the same display unit and the provided SI values. - testInstantiate() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
Matrix2x2.instantiateSi(double[])creates a new matrix with the same display unit and the provided SI values. - testInstantiate() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
Matrix3x3.instantiateSi(double[])creates a new matrix with the same display unit and the provided SI. - testInstantiateNew() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test instantiateNew method.
- testInstantiateNew() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Test instantiateNew.
- testInstantiateNewError() - Method in class org.djunits.vecmat.storage.DataGridSiTest
-
Test instantiateNew() with a length error for different types.
- testInstantiateNewNewDims() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify
DenseDoubleDataSi.instantiateNew(double[], int, int)for new shape and argument validation. - testInstantiateNewNewDims() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test
instantiateNew(double[], r, c)for correct reshape and error handling. - testInstantiateNewSameDims() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify
DenseDoubleDataSi.instantiateNew(double[])returns a new instance with same shape and exposed backing. - testInstantiateNewSameDims() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test
instantiateNew(double[])conversion double→float and geometry preservation. - testInstantiateSi() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify
MatrixNxN.instantiateSi(double[])preserves display unit and adopts SI values. - testInstantiateSi() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify instantiateSi preserves display unit and adopts provided SI.
- testInstantiateSi() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Test instantiateSi(double[]): produces new instance with SI data replaced.
- testInstantiateSiArray() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify
Vector1.instantiateSi(double[])delegates to the (xSi) variant and enforces length=1. - testInstantiateSiArray() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify
Vector2.instantiateSi(double[])delegates to the (xSi,ySi) variant and enforces length=2. - testInstantiateSiArrayCol() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify instantiateSi(double[]) enforces length=3 and delegates (Col).
- testInstantiateSiArrayCol() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify instantiateSi(double[]) enforces length=3 and delegates (Col).
- testInstantiateSiArrayRow() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify instantiateSi(double[]) enforces length=3 and delegates (Row).
- testInstantiateSiArrayRow() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify instantiateSi(double[]) enforces length=3 and delegates (Row).
- testIntegrationWithSIUnit() - Method in class org.djunits.unit.system.UnitSystemTest
-
Integration test: SIUnit.getUnitSystem() should report an SI-based system (e.g., SI_BASE).
- testInverseAdjugate() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify
MatrixNxN.inverse()throws on singular andMatrixNxN.adjugate()shape. - testInverseAndIdentity() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
Matrix1x1.inverse()and multiplication with its inverse gives the identity (numerically). - testInverseAndIdentity() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
Matrix2x2.inverse()and multiplication with its inverse gives the identity (numerically). - testInverseAndIdentity() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
Matrix3x3.inverse()and multiplication with its inverse gives the identity (numerically). - testInverseThrowsOnSingular() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify that
Matrix1x1.inverse()throws on singular matrices. - testInverseThrowsOnSingular() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify that
Matrix2x2.inverse()throws on singular matrices. - testInverseThrowsOnSingular() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify that
Matrix3x3.inverse()throws on singular matrices. - testInvertElements() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Test invertElements(): works elementwise, produces SIQuantity output.
- testIsBaseScale() - Method in class org.djunits.unit.scale.ScaleTest
-
isBaseScale() checks across scale classes.
- testIterator() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify the iterator over Q values yields x in the vector's display unit and is consistent with get().
- testIterator() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify the iterator over Q values yields x then y in the vector's display unit and is consistent with get().
- testIterator() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify iterator order and unit for Row and Col.
- testIterator() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify that the
Iterableinterface is implemented correctly: the iterator produces Q values in natural order and throwsNoSuchElementExceptionat the end. - testKiloAndPerKiloBehavior() - Method in class org.djunits.unit.si.SIPrefixTest
-
KILO-default maps: KILO and PER_KILO.
- testLengthBasicsAndParsing() - Method in class org.djunits.quantity.LengthTest
-
Test constructors, constants, parsing (incl. error branches), SI conversions, instantiate, siUnit, and ofSi.
- testLengthErrors() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test length errors.
- testLengthErrors() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Test length errors.
- testLengthOperations() - Method in class org.djunits.quantity.LengthTest
-
Test arithmetic operations (divide/multiply variants) and reciprocal.
- testLinearDensityBasics() - Method in class org.djunits.quantity.LinearDensityTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testLinearDensityOperations() - Method in class org.djunits.quantity.LinearDensityTest
-
Test arithmetic operations.
- testLinearObjectDensityBasics() - Method in class org.djunits.quantity.LinearObjectDensityTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testLinearObjectDensityOperations() - Method in class org.djunits.quantity.LinearObjectDensityTest
-
Test arithmetic operations.
- testLinearScaleNumDenConstructorValidation() - Method in class org.djunits.unit.scale.ScaleTest
-
Constructor validation for LinearScale(numerator, denominator).
- testLinearScaleNumDenCorrectness() - Method in class org.djunits.unit.scale.ScaleTest
-
Correctness for LinearScale(numerator, denominator) using the km/h ↔ m/s example.
- testLocalizedAbbreviationsResolveForAllLocales() - Method in class org.djunits.unit.LocaleFilesTest
-
For every locale, ensure each 'unit.
- testLocalizedDisplayAndName() - Method in class org.djunits.unit.UnitsTest
-
Verify localized display and name lookup and fallback behavior. - Present localized display (e.g., DE Ångström has display U+212B) - Fallback to stored display/name when not present in the bundle.
- testLocalizedQuantityNameFallback() - Method in class org.djunits.unit.UnitsTest
-
Verify
Units.localizedQuantityName(Locale, String)falls back to the provided default when the key is missing for a given locale. - testLocalizedResolveFrAndDe() - Method in class org.djunits.unit.UnitsTest
-
Verify localized resolution for French and German where abbreviations differ from US. - FR:
unit.Frequency.rpm.abbr = tr/min- DE:unit.Power.hp(M).abbr = PS,unit.Speed.kt.abbr = kn - testLookupInputValidationDesired() - Method in class org.djunits.unit.si.SIPrefixTest
-
Lookup functions: desired public input checking (null/blank/unknown).
- testLuminousFluxBasics() - Method in class org.djunits.quantity.LuminousFluxTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testLuminousFluxOperations() - Method in class org.djunits.quantity.LuminousFluxTest
-
Test arithmetic operations.
- testLuminousIntensityBasics() - Method in class org.djunits.quantity.LuminousIntensityTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testLuminousIntensityOperations() - Method in class org.djunits.quantity.LuminousIntensityTest
-
Test arithmetic operations.
- testMagneticFluxBasics() - Method in class org.djunits.quantity.MagneticFluxTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testMagneticFluxDensityBasics() - Method in class org.djunits.quantity.MagneticFluxDensityTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testMagneticFluxDensityOperations() - Method in class org.djunits.quantity.MagneticFluxDensityTest
-
Test arithmetic operations.
- testMagneticFluxOperations() - Method in class org.djunits.quantity.MagneticFluxTest
-
Test arithmetic operations.
- testMapsAreUnmodifiable() - Method in class org.djunits.unit.si.SIPrefixTest
-
Public maps should be unmodifiable.
- testMassBasics() - Method in class org.djunits.quantity.MassTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testMassOperations() - Method in class org.djunits.quantity.MassTest
-
Test arithmetic operations.
- testMatrixMultiply() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify standard 1x1 matrix multiplication.
- testMatrixMultiply() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify standard 2x2 matrix multiplication.
- testMatrixMultiply() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify standard 3x3 matrix multiplication (A·B).
- testMatrixNxMAsMatrixConversions() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify MatrixNxM conversions to fixed-size matrices preserve SI data and display unit, and that shape checks throw IllegalStateException for the mismatch branches covered.
- testMatrixNxMAsQuantityTable() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify MatrixNxM conversions to quantity table preserve SI data and display unit, and that shape checks throw IllegalStateException for the mismatch branches covered.
- testMatrixNxMAsVectorConversions() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify MatrixNxM conversions to fixed-size vectors and matrices preserve SI data and display unit, and that shape checks throw IllegalStateException with both row- and column-mismatch branches covered.
- testMatrixTimesVector() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify multiplication with a column vector.
- testMatrixTimesVector() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify multiplication with a column vector.
- testMatrixTimesVector() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify multiplication with a column vector (A·v).
- testMomentumBasics() - Method in class org.djunits.quantity.MomentumTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testMomentumOperations() - Method in class org.djunits.quantity.MomentumTest
-
Test arithmetic operations.
- testMultiply() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify matrixxmatrix and matrixxvector multiplication with unit composition.
- testMultiply2x2And3x3() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify Nx2 x 2x2 and Nx3 x 3x3 multiplication variants.
- testMultiplyDivide() - Method in class org.djunits.quantity.AbsorbedDoseTest
-
Test multiply and divide.
- testMultiplyDivide() - Method in class org.djunits.quantity.AccelerationTest
-
Test multiply and divide.
- testMultiplyDivide() - Method in class org.djunits.quantity.AmountOfSubstanceTest
-
Test multiply and divide.
- testMultiplyDivide() - Method in class org.djunits.quantity.AngleTest
-
Test multiply and divide methods specific to Angle.
- testMultiplyDivide() - Method in class org.djunits.quantity.AngularAccelerationTest
-
Test multiply and divide methods specific to AngularAcceleration.
- testMultiplyElements() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Test multiplyElements(): Hadamard product of two tables.
- testMultiplyGeneral() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify general (NxM)x(MxP) multiplication and unit composition.
- testMultiplyMatrix1x1() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
(Mx1) x (1x1) -> (Mx1).
- testMultiplyMatrix2x2() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
(Mx2) x (2x2) -> (Mx2).
- testMultiplyMatrix3x3() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
(Mx3) x (3x3) -> (Mx3).
- testMultiplyMatrixNxNDoubleAndFloatBranches() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
(NxM) x (MxP) where rhs is NxN: verify both branches of getDataGrid().isDouble() by constructing a double-backed and a float-backed MatrixNxN.
- testMultiplyNxMWithNxMDoubleRhs() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify (2x3) x (3x2) multiplication with a double-backed RHS matrix: Numeric correctness via si() and si(r,c). Unit composition via as(Area.Unit.*). Result shape (2x2).
- testMultiplyNxMWithNxMFloatRhs() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify (2x3) x (3x2) multiplication with a float-backed RHS matrix to cover the DenseFloatDataSi branch.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Test multiply/divide by scalar and as() method.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Test multiply/divide by scalar and as() method.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Test multiply/divide by scalar and as() method.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Test multiply/divide by scalar and as() method.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Test multiply/divide by scalar and as() method.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Test multiply/divide by scalar and as() method.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Test multiply/divide by scalar and as() method.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Test multiply/divide by scalar and as() method.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Test multiply/divide by scalar and as() method.
- testMultiplyScalarAs() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Test multiply/divide by scalar and as() method.
- testMultiplyVector() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify A(Nx2)·v2 and A(Nx3)·v3 and A(NxM)·vN return VectorN.Col with correct unit.
- testMultiplyVector1() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
(Mx1) x (1x1) -> (Mx1) MatrixNxM<SIQuantity, SIUni>.
- testMultiplyVector2Col() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
(Mx2) x (2x1) -> (Mx1) VectorN.Col<SIQuantity, SIUnit>.
- testMultiplyVector3Col() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
(Mx3) x (3x1) -> (Mx1) VectorN.Col<SIQuantity, SIUnit>.
- testMultiplyVectorNCol() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
(MxN) x (Nx1) -> (Mx1) VectorN.Col<SIQuantity, SIUnit>.
- testNegateAbsScaleBy() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
- testNegateAbsScaleBy() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
- testNegateAbsScaleBy() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
negate(),abs(), andscaleBy(double). - testNineArgConstructor() - Method in class org.djunits.unit.si.SIUnitTest
-
Verifies the 9-argument convenience constructor stores exponents in the documented order.
- testNormalize() - Method in class org.djunits.quantity.AngleTest
-
Test normalize for both double and Angle overloads.
- testNormFrobenius() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify Frobenius norm.
- testNorms() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify Frobenius norm and default
norm(). - testNorms() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify
norm()equalsnormL2()and norms compute correct quantities. - testNorms() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify Frobenius norm and default
norm(). - testNorms() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify
norm()equalsnormL2()and norms compute correct quantities. - testNorms() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify norm(), normL1(), normL2(), normLp(p), normLinf() (Row & Col).
- testNorms() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify
norm(),normL1(),normL2(),normLp(int), andnormLinf()for both Row and Col vectors;norm()is expected to equalnormL2()per theNormeddefault. - testObjectContracts() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify equals/hashCode and type sensitivity; toString contains orientation and unit; setDisplayUnit is fluent.
- testOfCol() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Test the of() methods for Col.
- testOfRow() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Test the of() methods for Row.
- testOfSiConcreteSmoke() - Method in class org.djunits.unit.UnitTest
-
Smoke-tests that
UnitInterface.ofSi(double)on concrete units produces the right quantity type and SI value. - testOfSiCreatesQuantity() - Method in class org.djunits.unit.si.SIUnitTest
-
Smoke test:
SIUnit.ofSi(double)returns anSIQuantity. - testOperations() - Method in class org.djunits.quantity.TorqueTest
-
Test all arithmetic operations provided by Torque.
- testOperations() - Method in class org.djunits.quantity.VolumetricObjectDensityTest
-
Test all arithmetic operator methods.
- testOperationsAndDisplayPropagation() - Method in class org.djunits.quantity.DirectionTest
-
Test arithmetic with proper reference handling and display-unit propagation.
- testParsing() - Method in class org.djunits.quantity.PositionTest
-
Test parsing of textual values via valueOf(text, ref) and of(value, unitString, ref).
- testParsing() - Method in class org.djunits.quantity.TimeTest
-
Test parsing of textual values via valueOf(text, reference) and of(value, unitString, reference), including error paths.
- testParsing() - Method in class org.djunits.unit.si.SIUnitTest
-
Parsing: happy-path and edge cases, including disambiguation of
srvssandmolvsm. - testParsingErrorBranches() - Method in class org.djunits.quantity.FrequencyTest
-
Test error branches of valueOf and of (null, empty, unknown unit, and general parse error surface).
- testParsingErrorBranches() - Method in class org.djunits.quantity.LinearDensityTest
-
Test error branches of valueOf and of (null, empty, unknown unit, and general parse error surface).
- testParsingErrorBranches() - Method in class org.djunits.quantity.LinearObjectDensityTest
-
Test error branches of valueOf and of (null, empty, unknown unit, and general parse error surface).
- testParsingErrorBranches() - Method in class org.djunits.quantity.LuminousFluxTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.LuminousIntensityTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.MagneticFluxDensityTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.MagneticFluxTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.MassTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.MomentumTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.PowerTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.PressureTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.RadioActivityTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.SolidAngleTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.SpeedTest
-
Test valueOf/of error branches with the custom Throw/NumberParser logic.
- testParsingErrorBranches() - Method in class org.djunits.quantity.TemperatureDifferenceTest
-
Test error branches of valueOf and of (null, empty, unknown unit, malformed number).
- testParsingErrorBranches() - Method in class org.djunits.quantity.VolumeTest
-
Test valueOf/of error branches with the custom Throw/NumberParser logic.
- testParsingErrors() - Method in class org.djunits.quantity.TorqueTest
-
Test all parsing error branches: null, empty, unknown unit, malformed numeric value, and of() error paths.
- testParsingErrors() - Method in class org.djunits.quantity.VolumetricObjectDensityTest
-
Test parsing error branches: null text, empty text, unknown unit, malformed number, null unitString, empty unitString, unknown unitString.
- testParsingWithDerivedAndPrefixedUnits() - Method in class org.djunits.quantity.LinearObjectDensityTest
-
Test parsing with SI-prefixed and imperial units resolved via Units registry.
- testParsingWithDerivedUnits() - Method in class org.djunits.quantity.LinearDensityTest
-
Test valueOf/of with a derived linear unit (register unit first) and unit resolution.
- testPerKiloUnitGenerationAndSemantics() - Method in class org.djunits.unit.UnitTest
-
Verify per-kilo prefix generation and semantics for a test-local quantity
PerMass(unit 1/kg). - testPerUnitPrefixesValues() - Method in class org.djunits.unit.si.SIPrefixTest
-
PER_UNIT (reciprocal) prefixes map: presence and representative reciprocal values.
- testPowerBasics() - Method in class org.djunits.quantity.PowerTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testPowerOperations() - Method in class org.djunits.quantity.PowerTest
-
Test arithmetic operations.
- testPredefinedSystems() - Method in class org.djunits.unit.system.UnitSystemTest
-
Predefined systems must be present, non-null, and have non-empty id and name.
- testPrefixedAndCgsUnits() - Method in class org.djunits.quantity.MagneticFluxDensityTest
-
Test parsing and numeric correctness with prefixed SI units and CGS Gauss.
- testPrefixedAndCgsUnits() - Method in class org.djunits.quantity.MagneticFluxTest
-
Test parsing and numeric correctness with prefixed SI units and CGS unit "Mx".
- testPressureBasics() - Method in class org.djunits.quantity.PressureTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testPressureOperations() - Method in class org.djunits.quantity.PressureTest
-
Test arithmetic operations.
- testPrimaryConstructorLinearScale() - Method in class org.djunits.unit.UnitlessTest
-
Verify the primary constructor
Unitless(String, String, double, UnitSystem)sets id/name/system and creates aLinearScalewith the requested positive factor. - testProtectedConstructor() - Method in class org.djunits.vecmat.storage.SparseDoubleDataSiTest
-
Test protected constructor(double[], int[], r, c) via reflection-like access through copy().
- testProtectedConstructor() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
Test protected constructor(float[], int[], r, c) via reflection-like access through copy().
- testQuantityTableAsMatrixConversions() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify QuantityTable conversions to fixed-size matrices preserve SI data and display unit, and that shape checks throw IllegalStateException for the mismatch branches covered.
- testQuantityTableAsMatrixNxM() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify QuantityTable conversions to quantity table preserve SI data and display unit, and that shape checks throw IllegalStateException for the mismatch branches covered.
- testQuantityTableAsVectorConversions() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify QuantityTable conversions to fixed-size vectors and matrices preserve SI data and display unit, and that shape checks throw IllegalStateException with both row- and column-mismatch branches covered.
- testRadioActivityBasics() - Method in class org.djunits.quantity.RadioActivityTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testRadioActivityOperations() - Method in class org.djunits.quantity.RadioActivityTest
-
Test arithmetic operations.
- testReferenceBehavior() - Method in class org.djunits.quantity.PositionTest
-
Test that Position.Reference.add and get work, and test simple reference offset transformations with relativeTo.
- testReferenceBehavior() - Method in class org.djunits.quantity.TimeTest
-
Test Reference.get for built-ins and simple add/get with offset.
- testReferenceConversion() - Method in class org.djunits.quantity.TemperatureTest
-
Test the correctness of reference conversions using relativeTo(...), including built-in references (KELVIN, CELSIUS, FAHRENHEIT) and a dynamically added reference with its own offset.
- testReferencesAddGetAndOffsets() - Method in class org.djunits.quantity.DirectionTest
-
Test the static Reference registry and chained reference offsets.
- testRegisteredUnitsSafeTopLevelCopy() - Method in class org.djunits.unit.UnitsTest
-
Verify
Units.registeredUnits()returns a safe top-level copy: mutating the returned map does not affect the internal UNIT_MAP. - testRegisterUnregister() - Method in class org.djunits.unit.UnitsTest
-
Test register/unregister and retrieving localication for unknown quantities.
- testRenderingNoMutation() - Method in class org.djunits.unit.scale.ScaleTest
-
Rendering should not mutate internal state (smoke check for all scales).
- testRenderingNoMutation() - Method in class org.djunits.unit.si.SIUnitTest
-
Immutability: calling the various renderers must not mutate internal state.
- testResolveUsLocaleParsing() - Method in class org.djunits.unit.UnitsTest
-
Verify US-locale resolution of common unit abbreviations via
Units.resolve(Class, String). - testRow3ScalarExtraction() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify scalar array extraction helpers on a
Vector3.Row(1x3) and their 1-based variants. - testRow3SiArrayExtractionAndSiAt() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify SI-array extraction helpers on a
Vector3.Rowand direct SI element access usingsi(row, col)andmsi(row, col)including bounds. - testRow3VectorExtractionSpec() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify vector extraction helpers on a
Vector3.Row(1x3) for both 0-based and 1-based variants. - testRowColDefaults() - Method in class org.djunits.vecmat.storage.SparseFloatDataSiTest
-
DataGrid.getRowArray / getColArray: correctness + bounds.
- testRowDotCol() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify Row⋅Col = scalar with plus-unit composition.
- testRowDotCol() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Row·Col → scalar; unit composition with SIUnit.plus.
- testRowNScalarExtraction() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify scalar array extraction helpers on a
VectorN.Row(1x4) and their 1-based variants. - testRowNSiArrayExtractionAndSiAt() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify SI-array extraction helpers on a
VectorN.Rowand direct SI element access usingsi(row, col)andmsi(row, col)including bounds. - testRowNVectorExtractionSpec() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify vector extraction helpers on a
VectorN.Row(1x4) for both 0-based and 1-based variants. - testRowScalarExtraction() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify scalar array extraction helpers on a
Vector2.Row(1x2) and their 1-based variants. - testRowsColsAndGet() - Method in class org.djunits.vecmat.storage.DenseDoubleDataSiTest
-
Verify basic getters
rows(),cols(), andget(int,int)on a simple 2x3 matrix. - testRowsColsGet() - Method in class org.djunits.vecmat.storage.DenseFloatDataSiTest
-
Test
rows(),cols(), andget(int,int)for normal behavior. - testRowSiArrayExtractionAndSiAt() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify SI-array extraction helpers on a
Vector2.Rowand direct SI element access usingsi(row, col)andmsi(row, col)including bounds. - testRowTimesMatrix() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify Row⋅Matrix2x2 = Col with plus-unit composition.
- testRowTimesMatrix() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Row·Matrix3x3 → Col with plus-unit composition.
- testRowVectorExtractionSpec() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify vector extraction helpers on a
Vector2.Row(1x2) for both 0-based and 1-based variants. - testScalarExtraction() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify scalar array extraction helpers on
VectorMatrix. - testScalarExtraction() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify scalar array extraction helpers on
VectorMatrix. - testScalarExtraction() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify scalar array extraction helpers on
VectorMatrix. - testScalarExtraction() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify scalar array extraction helpers on
VectorMatrix. - testScalarExtraction() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify scalar extraction helpers:
getScalars,getRowScalars,getColumnScalars, andgetDiagonalScalars. - testScalarExtraction() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify scalar extraction helpers.
- testScalarExtraction() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify scalar extraction helpers.
- testScale() - Method in class org.djunits.unit.scale.ScaleTest
-
Test the correct implementation of scales.
- testSecondaryConstructorAndNulls() - Method in class org.djunits.unit.UnitlessTest
-
Verify the secondary constructor
Unitless(String, String, String, Scale, UnitSystem)accepts an explicit scale and sets fields properly. - testSetDisplayUnit() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify that
VectorMatrix.setDisplayUnit(UnitInterface)only affects presentation and not SI storage. - testSetDisplayUnit() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify that
VectorMatrix.setDisplayUnit(UnitInterface)only affects presentation and not SI storage. - testSetDisplayUnit() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify that
VectorMatrix.setDisplayUnit(UnitInterface)only affects presentation and not SI storage. - testSetDisplayUnit() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify that
VectorMatrix.setDisplayUnit(UnitInterface)only affects presentation (not SI storage). - testSetDisplayUnit() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
setDisplayUnit only affects presentation; SI unchanged.
- testSetGetSiPrefix() - Method in class org.djunits.unit.UnitTest
-
Verify
UnitInterface.setSiPrefix(SIPrefix),UnitInterface.setSiPrefix(String),UnitInterface.setSiPrefixKilo(String), andUnitInterface.setSiPrefixPer(String)on a fresh, test-only unit instance (to avoid mutating shared singletons). - testShapeAndTranspose() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify rows(), cols(), and isColumnVector() for both Row and Col; verify transpose preserves SI values and unit.
- testShapeAndTranspose() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify rows(), cols(), and isColumnVector() for both Row and Col; verify transpose preserves SI values and unit.
- testShapeAndTranspose() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify rows(), cols(), isColumnVector(), and transpose for both Row and Col.
- testShapeAndValue() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
- testShapeAndValue() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify rows/cols/value/isRelative on a 3x2 matrix.
- testSiAbbreviationsDefensiveCopy() - Method in class org.djunits.unit.si.SIUnitTest
-
Verifies that
SIUnit.siAbbreviations()returns a defensive copy. - testSiArrayExtraction() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify si array extraction helpers on
VectorMatrix. - testSiArrayExtraction() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify si array extraction helpers on
VectorMatrix. - testSiArrayExtraction() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify si array extraction helpers on
VectorMatrix. - testSiArrayExtraction() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify double array extraction helpers on
VectorMatrix. - testSiArrayExtraction() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify SI extraction helpers:
getRowSi,getColumnSi, andgetDiagonalSi. - testSiArrayExtraction() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify double extraction helpers.
- testSiArrayExtraction() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify double extraction helpers.
- testSingleLevelOffsetStillWorks() - Method in class org.djunits.quantity.def.ReferenceTest
-
Sanity-check a single-level offset: define B = A + 10 m (for Position), and verify that 0 @ B equals +10 relative to A.
- testSIPrefix() - Method in class org.djunits.unit.units.SIUnitTest
-
Test SIPrefix methods.
- testSiprefixConstructorAndGetters() - Method in class org.djunits.unit.si.SIPrefixTest
-
Constructor validation for
SIPrefix. - testSiprefixesEnumToStringAndValueOf() - Method in class org.djunits.unit.si.SIPrefixTest
-
SIPrefixes enum toString() should equal the enum constant name, and valueOf(toString()) should round-trip to the same constant.
- testSiUnitAndOfSi() - Method in class org.djunits.unit.UnitlessTest
-
Verify SI mapping:
Unitless.siUnit()andUnitless.ofSi(double). - testSolidAngleBasics() - Method in class org.djunits.quantity.SolidAngleTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testSolidAngleOperations() - Method in class org.djunits.quantity.SolidAngleTest
-
Test arithmetic operations.
- testSpecialDoubleBehavior() - Method in class org.djunits.unit.scale.ScaleTest
-
Extremes and special doubles — adapt depending on the intended contract.
- testSpeedBasics() - Method in class org.djunits.quantity.SpeedTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testSpeedOperations() - Method in class org.djunits.quantity.SpeedTest
-
Test arithmetic operations.
- testSquareOps() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify transpose, determinant/trace/normFrobenius, symmetry checks.
- testStandardMethods() - Method in class org.djunits.unit.units.AbsorbedDoseUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.AccelerationUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.AmountOfSubstanceUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.AngleUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.ArealObjectDensityUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.AreaUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.CatalyticActivityUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.DensityUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.DimensionlessUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.DurationUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.ElectricalCapacitanceUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.ElectricalConductanceUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.ElectricalInductanceUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.ElectricalResistanceUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.ElectricChargeUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.ElectricCurrentUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.ElectricPotentialUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.EnergyUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.EquivalentDoseUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.FlowMassUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.FlowVolumeUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.ForceUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.FrequencyUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.IlluminanceUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.LengthUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.LinearDensityUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.LinearObjectDensityUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.LuminousFluxUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.LuminousIntensityUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.MagneticFluxDensityUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.MagneticFluxUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.MassUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.PowerUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.PressureUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.RadioActivityUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.SolidAngleUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.SpeedUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.TemperatureUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.TorqueUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.VolumetricObjectDensityUnitTest
-
Check the standard methods.
- testStandardMethods() - Method in class org.djunits.unit.units.VolumeUnitTest
-
Check the standard methods.
- testStaticFactoriesAndParsing() - Method in class org.djunits.quantity.TemperatureTest
-
Test static constructors ofSi, valueOf, and of, including correct interpretation of unit strings, handling of references, and error paths.
- testStaticOperations() - Method in class org.djunits.quantity.PositionTest
-
Test the static operations inherited from AbsoluteQuantity: interpolate, min, max, sum, and mean.
- testStaticOperations() - Method in class org.djunits.quantity.TemperatureTest
-
Test the aggregate static operations defined in AbsoluteQuantity: max, min, sum, mean, and interpolate.
- testStaticOperations() - Method in class org.djunits.quantity.TimeTest
-
Test the static operations inherited from AbsoluteQuantity: interpolate, min, max, sum, and mean, using the same reference.
- testStatistics() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify statistics: min, max, mean, median, mode, sum.
- testStatistics() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify statistics: min, max, mean, median, mode, sum.
- testStatisticsCol() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify statistics for a Col vector: min, max, mean, median, mode, and sum.
- testStatisticsCol() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify
min,max,mean,median,mode, andsumon aVectorN.Colwith inputs in kilometers; assertions are made against SI values in meters. - testStatisticsRow() - Method in class org.djunits.vecmat.d3.Vector3Test
-
Verify statistics for a Row vector: min, max, mean, median, mode, and sum.
- testStatisticsRow() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify
min,max,mean,median,mode, andsumon an unsorted odd-lengthVectorN.Rowinput (to avoid even-median ambiguity). - testStats() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify
mean,median,min,max,mode, andsum. - testStats() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify
mean,median,min,max,mode, andsum. - testStats() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify
mean,median,min,max,mode, andsum. - testStoredVsLocalizedGetters() - Method in class org.djunits.unit.UnitTest
-
Sanity: stored vs (potentially localized) getters return non-null strings; stored is stable.
- testSymmetry() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify symmetry and skew-symmetry checks with and without tolerances.
- testSymmetry() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify symmetry and skew-symmetry checks with and without tolerances.
- testSymmetry() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify symmetry and skew-symmetry checks with and without tolerances.
- testTemperatureDifferenceBasics() - Method in class org.djunits.quantity.TemperatureDifferenceTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit, and ofSi.
- testTemperatureDifferenceOperations() - Method in class org.djunits.quantity.TemperatureDifferenceTest
-
Test arithmetic operations and add(Temperature).
- testTemperatureUnitLazyReferenceInit() - Method in class org.djunits.quantity.TemperatureTest
-
Test the lazy initializer for temperature references.
- testToString() - Method in class org.djunits.unit.units.SIUnitTest
-
Test toString() methods.
- testToString() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Call
VectorMatrix.toString()andVectorMatrix.toString(UnitInterface)for coverage. - testToString() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify toString() and toString(unit) contain orientation tag and unit abbreviation.
- testToString() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Call
VectorMatrix.toString()andVectorMatrix.toString(UnitInterface)for coverage. - testToString() - Method in class org.djunits.vecmat.d2.Vector2Test
-
Verify toString() and toString(unit) contain orientation tag and unit abbreviation.
- testToString() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
- testToString() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify
VectorMatrix.toString()andVectorMatrix.toString(UnitInterface)include unit abbreviation. - testToString() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
toString and toString(unit) include unit abbreviation.
- testToString() - Method in class org.djunits.vecmat.storage.DoubleSparseValueTest
-
Test toString formatting for basic sanity.
- testToString() - Method in class org.djunits.vecmat.storage.FloatSparseValueTest
-
Test that toString() contains all relevant fields.
- testTranspose() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify transpose on a 1x1 matrix.
- testTranspose() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify transpose on a 2x2 matrix.
- testTranspose() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify transpose on a 3x3 matrix.
- testTranspose() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify transpose() method.
- testUnitBehavior() - Method in class org.djunits.quantity.AngleTest
-
Test the Angle.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.AngularAccelerationTest
-
Test the AngularAcceleration.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.AngularVelocityTest
-
Test the AngularVelocity.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.ArealObjectDensityTest
-
Test the ArealObjectDensity.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.AreaTest
-
Test the Area.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.CatalyticActivityTest
-
Test the CatalyticActivity.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.DensityTest
-
Test the Density.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.DurationTest
-
Test the Duration.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.ElectricalCapacitanceTest
-
Test the ElectricalCapacitance.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.ElectricalConductanceTest
-
Test the ElectricalConductance.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.ElectricalInductanceTest
-
Test the ElectricalInductance.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.ElectricalResistanceTest
-
Test the ElectricalResistance.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.ElectricChargeTest
-
Test the ElectricCharge.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.ElectricCurrentTest
-
Test the ElectricCurrent.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.ElectricPotentialTest
-
Test the ElectricPotential.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.EnergyTest
-
Test the Energy.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.EquivalentDoseTest
-
Test the EquivalentDose.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.FlowMassTest
-
Test the FlowMass.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.FlowVolumeTest
-
Test the FlowVolume.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.ForceTest
-
Test the Force.Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.FrequencyTest
-
Test the Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.IlluminanceTest
-
Test the Unit behavior: base/si unit, deriving linear units, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.LengthTest
-
Test Unit behavior: base/si unit, ofSi, deriveUnit (linear), and non-linear branch throwing UnitRuntimeException.
- testUnitBehavior() - Method in class org.djunits.quantity.LinearDensityTest
-
Test the Unit behavior: base/si unit, deriving linear units, Unit.ofSi delegation, and exception branch for non-linear scale.
- testUnitBehavior() - Method in class org.djunits.quantity.LinearObjectDensityTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, non-linear derivation exception branch, and prefix-generated units.
- testUnitBehavior() - Method in class org.djunits.quantity.LuminousFluxTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, and non-linear derivation exception branch.
- testUnitBehavior() - Method in class org.djunits.quantity.LuminousIntensityTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, and non-linear derivation exception branch.
- testUnitBehavior() - Method in class org.djunits.quantity.MagneticFluxDensityTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, non-linear derivation exception branch, and registry of prefixed units.
- testUnitBehavior() - Method in class org.djunits.quantity.MagneticFluxTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, non-linear derivation exception branch, and registry of prefixed units.
- testUnitBehavior() - Method in class org.djunits.quantity.MassTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, non-linear derivation exception branch, and registry sanity.
- testUnitBehavior() - Method in class org.djunits.quantity.MomentumTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, and non-linear derivation exception branch.
- testUnitBehavior() - Method in class org.djunits.quantity.PowerTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, non-linear derivation exception branch, and registry sanity.
- testUnitBehavior() - Method in class org.djunits.quantity.PressureTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, non-linear derivation exception branch, and registry sanity.
- testUnitBehavior() - Method in class org.djunits.quantity.RadioActivityTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, and non-linear derivation exception branch.
- testUnitBehavior() - Method in class org.djunits.quantity.SolidAngleTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, non-linear derivation exception branch, and registry sanity.
- testUnitBehavior() - Method in class org.djunits.quantity.SpeedTest
-
Test the Unit behavior: base/si unit, Unit.ofSi delegation, deriving linear units, non-linear derivation exception branch.
- testUnitBehavior() - Method in class org.djunits.quantity.TorqueTest
-
Test unit derivation.
- testUnitBehavior() - Method in class org.djunits.quantity.VolumeTest
-
Test unit derivation behavior.
- testUnitBehavior() - Method in class org.djunits.quantity.VolumetricObjectDensityTest
-
Test unit behavior.
- testUnitClassNameForNested() - Method in class org.djunits.unit.UnitsTest
-
Verify
Units.unitClassName(Class)returns nested names (e.g., "Length.Unit") rather than just "Unit", and trims package name. - testUnitConversions() - Method in class org.djunits.quantity.SpeedTest
-
Test unit conversions for a selection of defined units.
- testUnitConversions() - Method in class org.djunits.quantity.TorqueTest
-
Test correctness of unit conversions for Nm, meter-kilogram-force, pound-foot, and pound-inch.
- testUnitConversionsAndRegistry() - Method in class org.djunits.quantity.VolumeTest
-
Test a selection of unit conversions (SI, SI-derived, imperial/US customary, astronomical), and registry resolution sanity.
- testUnitExceptions() - Method in class org.djunits.unit.UnitExceptionsTest
-
Test the UnitException and the UnitRuntimeException using the djutils-test project.
- testUnitInterfaceDefaultConversions() - Method in class org.djunits.unit.UnitTest
-
Verify
UnitInterface.toBaseValue(double)andUnitInterface.fromBaseValue(double)forward to the underlyingScaleand work for base and derived units. - testUnitInterfaceGetters() - Method in class org.djunits.unit.si.SIUnitTest
-
Verifies
UnitInterfacegetters exposed bySIUnit. - testUnitInterfaceMetadata() - Method in class org.djunits.unit.UnitTest
-
Verify basic metadata and identity of units (id/name/abbreviations/system/scale) without assuming localization.
- testUnitInterfaceQuantityInUnit() - Method in class org.djunits.unit.UnitTest
-
Verify
UnitInterface.quantityInUnit(double)constructs a quantity with correct SI value and display unit. - testUnitlessBehavior() - Method in class org.djunits.quantity.DimensionlessTest
-
Test the Unitless behavior: siUnit, base unit, ofSi, deriveUnit linear success, and exception branch for non-linear scale.
- testUnitPosContainsOnlyPositivePrefixes() - Method in class org.djunits.unit.si.SIPrefixTest
-
UNIT_POS prefixes contain only factors > 1 (no milli/centi/...).
- testUnitPrefixesPresenceAndValues() - Method in class org.djunits.unit.si.SIPrefixTest
-
Basic presence and values in UNIT prefixes map.
- testUnitReferenceInitializationAndDeriveUnit() - Method in class org.djunits.quantity.TemperatureTest
-
Test the behavior of Temperature.Unit, including lazy reference initialization, derived-unit creation, base/SI-unit behavior, and error handling.
- testUnitResolution() - Method in class org.djunits.quantity.TemperatureDifferenceTest
-
Unit resolution sanity (relies on Temperature.Unit registration).
- testUnitsAndPrefixes() - Method in class org.djunits.quantity.MassTest
-
Test prefixed SI units and selected special/imperial units.
- testUnitsAndPrefixes() - Method in class org.djunits.quantity.PowerTest
-
Test SI prefixes and legacy/alternate systems units.
- testUnitsAndPrefixes() - Method in class org.djunits.quantity.PressureTest
-
Test SI prefixes and alternate units (bar/mbar, atm/torr, at, Ba, mercury heights, imperial/US, MTS).
- testUnitsAndPrefixes() - Method in class org.djunits.quantity.RadioActivityTest
-
Test SI prefixes and non-SI units: Curie family and Rutherford.
- testUserDefinedConstructorValidation() - Method in class org.djunits.unit.system.UnitSystemTest
-
Constructor validation for user-defined systems.
- null id/name → NullPointerException
- empty/blank id/name → IllegalArgumentException
- valid id/name → getters return the same, toString non-empty - testVectorExtraction() - Method in class org.djunits.vecmat.dn.MatrixNxNTest
-
Verify scalar extraction helpers:
getRowVector,getColumnVector, andgetDiagonalVector. - testVectorExtraction() - Method in class org.djunits.vecmat.dnxm.MatrixNxMTest
-
Verify vector extraction helpers.
- testVectorExtraction() - Method in class org.djunits.vecmat.table.QuantityTableTest
-
Verify vector extraction helpers.
- testVectorExtractionSpec() - Method in class org.djunits.vecmat.d1.Matrix1x1Test
-
Verify vector extraction helpers (
getRow,getColumn,getDiagonal) behave per spec. - testVectorExtractionSpec() - Method in class org.djunits.vecmat.d1.Vector1Test
-
Verify vector extraction helpers (
getRowVector,getColumnVector) behave per spec. - testVectorExtractionSpec() - Method in class org.djunits.vecmat.d2.Matrix2x2Test
-
Verify vector extraction helpers (
getRow,getColumn,getDiagonal) behave per spec. - testVectorExtractionSpec() - Method in class org.djunits.vecmat.d3.Matrix3x3Test
-
Verify vector extraction helpers (
getRow,getColumn,getDiagonal) behave per spec: this test expects non-null vectors of appropriate type and unit. - testVectorNasVectorConversionsRowAndCol() - Method in class org.djunits.vecmat.dn.VectorNTest
-
Verify that VectorN.
Coland VectorN.Rowconvert to Vector1/Vector2/Vector3 variants with preserved SI data and display unit; and that illegal shapes throwIllegalStateException. - testVolumeBasics() - Method in class org.djunits.quantity.VolumeTest
-
Test constructors, constants, parsing, SI conversions, instantiate, siUnit(), and ofSi().
- testVolumeOperations() - Method in class org.djunits.quantity.VolumeTest
-
Test arithmetic operations: divide(Volume) → Dimensionless (incl. divide-by-zero) multiply(Density) → Mass multiply(Pressure) → Energy divide(Length) → Area divide(Area) → Length multiply(LinearObjectDensity) → Area divide(Duration) → FlowVolume divide(FlowVolume) → Duration reciprocal() → VolumetricObjectDensity
- testZeroComparisonsAndNumericConversions() - Method in class org.djunits.quantity.PositionTest
-
Test lt0, le0, gt0, ge0, eq0, ne0 and numeric Number conversions.
- testZeroComparisonsAndNumericConversions() - Method in class org.djunits.quantity.TimeTest
-
Test lt0, le0, gt0, ge0, eq0, ne0 and numeric Number conversions.
- testZeroComparisonsNumericConversions() - Method in class org.djunits.quantity.TemperatureTest
-
Test eq0, ne0, lt0, le0, gt0, ge0 and verify that Number conversions (intValue, longValue, floatValue, doubleValue) match SI values.
- TimeTest - Class in org.djunits.quantity
-
TimeTest tests the Time absolute quantity class and its Reference handling.
- TimeTest() - Constructor for class org.djunits.quantity.TimeTest
- TorqueTest - Class in org.djunits.quantity
-
TorqueTest tests the Torque quantity class.
- TorqueTest() - Constructor for class org.djunits.quantity.TorqueTest
- TorqueUnitTest - Class in org.djunits.unit.units
-
Torque.Unit test.
- TorqueUnitTest() - Constructor for class org.djunits.unit.units.TorqueUnitTest
- toStringSIPrefixed() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies that
AbsoluteQuantity.toStringSIPrefixed()delegates to the inner relative quantity and produces a sensible SI prefix when possible. - toStringSIPrefixed() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
Quantity.toStringSIPrefixed()both for an in-range SI-prefix selection and an out-of-range fallback to E-notation. - toStringVariants() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies
AbsoluteQuantity.toString()variants, ensuring that whenwithUnit=truethe reference id is appended as " (refId)" and that the verbose flag adds the "Abs " prefix. - toStringVariants() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies
Quantity.toString()variants, including verbose/type flags and unit suppression. - toStringVariants() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies representative
Quantity.toString()variants for anSIQuantity: default form, explicit target unit, verbose flag, and unit suppression. - traceOfMatrix() - Method in class org.djunits.util.MatrixMathTest
-
Verifies
MatrixMath.trace(double[], int)on simple matrices.
U
- ulpTest() - Method in class org.djunits.formatter.EngineeringFormatterTest
-
Run ulpTest with both values of the parameter.
- Unit(String, String, double, UnitSystem) - Constructor for class org.djunits.unit.UnitTest.Jerk.Unit
-
ctor with factor.
- Unit(String, String, double, UnitSystem) - Constructor for class org.djunits.unit.UnitTest.PerMass.Unit
-
Construct a PerMass unit with an explicit (linear) scale factor to BASE (1/kg).
- Unit(String, String, String, Scale, UnitSystem) - Constructor for class org.djunits.unit.UnitTest.Jerk.Unit
-
full ctor.
- Unit(String, String, String, Scale, UnitSystem) - Constructor for class org.djunits.unit.UnitTest.PerMass.Unit
-
Construct a PerMass unit with explicit textual/display abbreviations and a provided
Scale. - Unit(String, String, Scale, UnitSystem) - Constructor for class org.djunits.quantity.def.QuantityTest.ExampleQuantityAQxyz.Unit
- UnitExceptionsTest - Class in org.djunits.unit
-
Test the UnitException, the UnitRuntimeException, and the NonInvertibleMatrixException classes.
- UnitExceptionsTest() - Constructor for class org.djunits.unit.UnitExceptionsTest
- unitHashCodeEqualsTest() - Method in class org.djunits.unit.units.UnitTest
-
hashCode() and equals().
- UnitlessTest - Class in org.djunits.unit
-
Unit tests for
Unitless. - UnitlessTest() - Constructor for class org.djunits.unit.UnitlessTest
- UnitsTest - Class in org.djunits.unit
-
Unit tests for the
Unitsutility covering US parsing, localization lookups, bundle loading, nested-class naming, and safe-copy behavior. - UnitsTest() - Constructor for class org.djunits.unit.UnitsTest
- UnitsTest.NoRegisterUnit - Class in org.djunits.unit
-
UnitInterface class that does not register itself.
- UnitsTest.Q - Class in org.djunits.unit
-
Quantity Q.
- UnitsTest.QUnit - Class in org.djunits.unit
-
UnitInterface Length class that does not register itself.
- UnitSystemTest - Class in org.djunits.unit.system
-
Tests for
UnitSystem. - UnitSystemTest() - Constructor for class org.djunits.unit.system.UnitSystemTest
- unitTest() - Method in class org.djunits.unit.units.UnitTest
-
Test the units.
- UnitTest - Class in org.djunits.unit.units
-
Generic Unit class test.
- UnitTest - Class in org.djunits.unit
-
Tests for
UnitInterface,AbstractUnit, and representative concrete units. - UnitTest() - Constructor for class org.djunits.unit.units.UnitTest
- UnitTest() - Constructor for class org.djunits.unit.UnitTest
- UnitTest.Jerk - Class in org.djunits.unit
-
Minimal Jerk quantity to exercise
AbstractUnitextensibility inside the test. - UnitTest.Jerk.Unit - Class in org.djunits.unit
-
Unit for Jerk (m/s^3).
- UnitTest.PerMass - Class in org.djunits.unit
-
A minimal test-local quantity representing a "per mass" value (unit: 1/kg), used to verify correct behavior of per-kilo SI-prefix generation on
AbstractUnit. - UnitTest.PerMass.Unit - Class in org.djunits.unit
-
Unit for
UnitTest.PerMass(SI dimension: 1/kg).
V
- valueOfAcceptsEmptyUnitForDimensionless() - Method in class org.djunits.quantity.def.QuantityTest
-
Unitless special-case coverage: When the example is
Dimensionless, an empty (or whitespace-only) unit token must be accepted and interpreted asUnitless.BASE. - valueOfInvalids() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies error handling in
Quantity.valueOf(String, Quantity). - valueOfParses() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies successful parsing via
AbsoluteQuantity.valueOf(String, AbsoluteQuantity, AbstractReference)and error branches fornullparameters, empty text, and unknown units. - valueOfParses() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies successful parsing via
Quantity.valueOf(String, Quantity)with and without a space between number and unit. - valueOfParsesAndValidates() - Method in class org.djunits.quantity.SIQuantityTest
-
Verifies
SIQuantity.valueOf(String)happy path and error handling. - Vector1Test - Class in org.djunits.vecmat.d1
-
Unit tests for
Vector1(bothVector1andVector1) with concrete quantityLengthand unitLength.Unit. - Vector1Test() - Constructor for class org.djunits.vecmat.d1.Vector1Test
- Vector2Test - Class in org.djunits.vecmat.d2
-
Unit tests for
Vector2(bothVector2.ColandVector2.Row) with concrete quantityLengthand unitLength.Unit. - Vector2Test() - Constructor for class org.djunits.vecmat.d2.Vector2Test
- Vector3Test - Class in org.djunits.vecmat.d3
-
Unit tests for
Vector3(bothVector3.ColandVector3.Row) with concrete quantityLengthand unitLength.Unit. - Vector3Test() - Constructor for class org.djunits.vecmat.d3.Vector3Test
- VectorNTest - Class in org.djunits.vecmat.dn
-
Comprehensive unit tests for
VectorN, validating bothVectorN.RowandVectorN.Colimplementations with concrete quantityLengthand display units fromLength.Unit. - VectorNTest() - Constructor for class org.djunits.vecmat.dn.VectorNTest
- verifyResult(double, String, int) - Static method in class org.djunits.formatter.EngineeringFormatterTest
-
Check that a double value is represented by a string as accurately as possible; i.e. the last digit in the mantissa is rounded correctly.
- VolumeTest - Class in org.djunits.quantity
-
VolumeTest tests the Volume quantity class.
- VolumeTest() - Constructor for class org.djunits.quantity.VolumeTest
- VolumetricObjectDensityTest - Class in org.djunits.quantity
-
VolumetricObjectDensityTest tests the VolumetricObjectDensity quantity class.
- VolumetricObjectDensityTest() - Constructor for class org.djunits.quantity.VolumetricObjectDensityTest
- VolumetricObjectDensityUnitTest - Class in org.djunits.unit.units
-
VolumetricObjectDensity.Unit test.
- VolumetricObjectDensityUnitTest() - Constructor for class org.djunits.unit.units.VolumetricObjectDensityUnitTest
- VolumeUnitTest - Class in org.djunits.unit.units
-
Volume.Unit test.
- VolumeUnitTest() - Constructor for class org.djunits.unit.units.VolumeUnitTest
W
- widthTest() - Method in class org.djunits.formatter.EngineeringFormatterTest
-
Run widthTest with both values of the parameter.
Z
- zeroComparisons() - Method in class org.djunits.quantity.def.AbsoluteQuantityTest
-
Verifies zero-comparison helpers (lt0/le0/gt0/ge0/eq0/ne0) for
AbsoluteQuantity. - zeroComparisons() - Method in class org.djunits.quantity.def.QuantityTest
-
Verifies zero-comparison helpers (lt0/le0/gt0/ge0/eq0/ne0).
All Classes and Interfaces|All Packages