Package org.opentrafficsim.core.geometry
Class OTSLine3DTest
- java.lang.Object
-
- org.opentrafficsim.core.geometry.OTSLine3DTest
-
public class OTSLine3DTest extends Object
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 2 okt. 2015
- Author:
- Peter Knoppers
-
-
Constructor Summary
Constructors Constructor Description OTSLine3DTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanTest()Test the createAndCleanOTSLine3D method.voidconcatenateTest()Test the concatenate method.voidconstructorsTest()Test the constructors of OTSLine3D.voidequalsTest()Test the equals method.voidexceptionTest()Test that exception is thrown when it should be.voidextractTest()Test the extract and extractFraction methods.voidlocationExtendedTest()Test the getLocationExtended method and friends.voidlocationTest()Test getLocation method.voidnoiseFilterRamerDouglasPeuckerTest()Test the noiseFilterRamerDouglasPeuker filter method.voidoffsetLineTest()Test the offsetLine method.voidprintPath2D(Path2D path)Print a Path2D to the console.voidreverseTest()Test the reverse method.voidtestFilter()Test the noiseFilteredLine method.voidtestFind()Test the find method.voidtestFractionalProjection()Tests the fractional projection method.voidtestRadius()Test the getRadius method.voidtestTruncate()Test the truncate method.
-
-
-
Method Detail
-
constructorsTest
public final void constructorsTest() throws OTSGeometryException, NetworkExceptionTest the constructors of OTSLine3D.- Throws:
OTSGeometryException- on failureNetworkException- on failure
-
printPath2D
public final void printPath2D(Path2D path)
Print a Path2D to the console.- Parameters:
path- Path2D; the path
-
exceptionTest
public final void exceptionTest() throws OTSGeometryExceptionTest that exception is thrown when it should be.- Throws:
OTSGeometryException- should not happen; this test has failed if it does happen
-
locationExtendedTest
public final void locationExtendedTest() throws OTSGeometryExceptionTest the getLocationExtended method and friends.- Throws:
OTSGeometryException- should not happen; this test has failed if it does happen
-
locationTest
public final void locationTest() throws OTSGeometryExceptionTest getLocation method.- Throws:
OTSGeometryException- on failure
-
cleanTest
public final void cleanTest() throws OTSGeometryExceptionTest the createAndCleanOTSLine3D method.- Throws:
OTSGeometryException- should never happen
-
equalsTest
public final void equalsTest() throws OTSGeometryExceptionTest the equals method.- Throws:
OTSGeometryException- should not happen; this test has failed if it does happen
-
concatenateTest
public final void concatenateTest() throws OTSGeometryExceptionTest the concatenate method.- Throws:
OTSGeometryException- should not happen; this test has failed if it does happen
-
noiseFilterRamerDouglasPeuckerTest
public final void noiseFilterRamerDouglasPeuckerTest() throws OTSGeometryExceptionTest the noiseFilterRamerDouglasPeuker filter method.- Throws:
OTSGeometryException- if that happens uncaught, this test has failed
-
reverseTest
public final void reverseTest() throws OTSGeometryExceptionTest the reverse method.- Throws:
OTSGeometryException- should not happen; this test has failed if it does happen
-
extractTest
public final void extractTest() throws OTSGeometryExceptionTest the extract and extractFraction methods.- Throws:
OTSGeometryException- should not happen; this test has failed if it does happen
-
offsetLineTest
public final void offsetLineTest() throws OTSGeometryExceptionTest the offsetLine method. Only tests a few easy cases.- Throws:
OTSGeometryException- should not happen (if it does; this test has failed)
-
testFilter
public final void testFilter() throws OTSGeometryExceptionTest the noiseFilteredLine method.- Throws:
OTSGeometryException- should not happen (if it does, this test has failed)
-
testFractionalProjection
public final void testFractionalProjection() throws OTSGeometryExceptionTests 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
public final void testTruncate() throws OTSGeometryExceptionTest the truncate method.- Throws:
OTSGeometryException- if that happens uncaught; this test has failed
-
testRadius
public void testRadius() throws OTSGeometryExceptionTest the getRadius method.- Throws:
OTSGeometryException- when that happens uncaught; this test has failed
-
-