Package org.opentrafficsim.core.geometry
Class OtsLine3dTest
java.lang.Object
org.opentrafficsim.core.geometry.OtsLine3dTest
Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Peter Knoppers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
Test the createAndCleanOtsLine3d method.final void
Test the concatenate method.final void
Test the constructors of OtsLine3d.final void
Test the equals method.final void
Test that exception is thrown when it should be.final void
Test the extract and extractFraction methods.final void
Test the getLocationExtended method and friends.final void
Test getLocation method.final void
Test the noiseFilterRamerDouglasPeuker filter method.final void
Test the offsetLine method.final void
printPath2D
(Path2D path) Print a Path2D to the console.final void
Test the reverse method.final void
Test the noiseFilteredLine method.final void
testFind()
Test the find method.final void
Tests the fractional projection method.void
Test the getRadius method.final void
Test the truncate method.
-
Constructor Details
-
OtsLine3dTest
public OtsLine3dTest()
-
-
Method Details
-
constructorsTest
Test the constructors of OtsLine3d.- Throws:
OtsGeometryException
- on failureNetworkException
- on failure
-
printPath2D
Print a Path2D to the console.- Parameters:
path
- Path2D; the path
-
exceptionTest
Test that exception is thrown when it should be.- Throws:
OtsGeometryException
- should not happen; this test has failed if it does happen
-
locationExtendedTest
Test the getLocationExtended method and friends.- Throws:
OtsGeometryException
- should not happen; this test has failed if it does happen
-
locationTest
Test getLocation method.- Throws:
OtsGeometryException
- on failure
-
cleanTest
Test the createAndCleanOtsLine3d method.- Throws:
OtsGeometryException
- should never happen
-
equalsTest
Test the equals method.- Throws:
OtsGeometryException
- should not happen; this test has failed if it does happen
-
concatenateTest
Test the concatenate method.- Throws:
OtsGeometryException
- should not happen; this test has failed if it does happen
-
noiseFilterRamerDouglasPeuckerTest
Test the noiseFilterRamerDouglasPeuker filter method.- Throws:
OtsGeometryException
- if that happens uncaught, this test has failed
-
reverseTest
Test the reverse method.- Throws:
OtsGeometryException
- should not happen; this test has failed if it does happen
-
extractTest
Test the extract and extractFraction methods.- Throws:
OtsGeometryException
- should not happen; this test has failed if it does happen
-
offsetLineTest
Test the offsetLine method. Only tests a few easy cases.- Throws:
OtsGeometryException
- should not happen (if it does; this test has failed)
-
testFilter
Test the noiseFilteredLine method.- Throws:
OtsGeometryException
- should not happen (if it does, this test has failed)
-
testFractionalProjection
Tests the fractional projection method.- Throws:
OtsGeometryException
- should not happen (if it does, this test has failed)
-
testFind
public final void testFind() throws OtsGeometryException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptionTest the find method.- Throws:
OtsGeometryException
- if that happens uncaught; this test has failedSecurityException
- if that happens uncaught; this test has failedNoSuchMethodException
- if that happens uncaught; this test has failedInvocationTargetException
- if that happens uncaught; this test has failedIllegalArgumentException
- if that happens uncaught; this test has failedIllegalAccessException
- if that happens uncaught; this test has failed
-
testTruncate
Test the truncate method.- Throws:
OtsGeometryException
- if that happens uncaught; this test has failed
-
testRadius
Test the getRadius method.- Throws:
OtsGeometryException
- when that happens uncaught; this test has failed
-