public class OTSLine3DTest extends Object
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
OTSLine3DTest() |
Modifier and Type | Method and Description |
---|---|
void |
cleanTest()
Test the createAndCleanOTSLine3D method.
|
void |
concatenateTest()
Test the concatenate method.
|
void |
constructorsTest()
Test the constructors of OTSLine3D.
|
void |
equalsTest()
Test the equals method.
|
void |
exceptionTest()
Test that exception is thrown when it should be.
|
void |
extractTest()
Test the extract and extractFraction methods.
|
void |
locationExtendedTest()
Test the getLocationExtended method and friends.
|
void |
locationTest()
Test getLocation method.
|
void |
noiseFilterRamerDouglasPeuckerTest()
Test the noiseFilterRamerDouglasPeuker filter method.
|
void |
offsetLineTest()
Test the offsetLine method.
|
void |
printPath2D(Path2D path)
Print a Path2D to the console.
|
void |
reverseTest()
Test the reverse method.
|
void |
testFilter()
Test the noiseFilteredLine method.
|
void |
testFind()
Test the find method.
|
void |
testFractionalProjection()
Tests the fractional projection method.
|
public final void constructorsTest() throws org.opentrafficsim.core.geometry.OTSGeometryException, org.opentrafficsim.core.network.NetworkException
OTSGeometryException
- on failureorg.opentrafficsim.core.network.NetworkException
- on failurepublic final void printPath2D(Path2D path)
path
- Path2D; the pathpublic final void exceptionTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should not happen; this test has failed if it does happenpublic final void locationExtendedTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should not happen; this test has failed if it does happenpublic final void locationTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- on failurepublic final void cleanTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should never happenpublic final void equalsTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should not happen; this test has failed if it does happenpublic final void concatenateTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should not happen; this test has failed if it does happenpublic final void noiseFilterRamerDouglasPeuckerTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- if that happens uncaught, this test has failedpublic final void reverseTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should not happen; this test has failed if it does happenpublic final void extractTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should not happen; this test has failed if it does happenpublic final void offsetLineTest() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should not happen (if it does; this test has failed)public final void testFilter() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should not happen (if it does, this test has failed)public final void testFractionalProjection() throws org.opentrafficsim.core.geometry.OTSGeometryException
OTSGeometryException
- should not happen (if it does, this test has failed)public final void testFind() throws org.opentrafficsim.core.geometry.OTSGeometryException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
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 failedCopyright © 2014–2019 Delft University of Technology. All rights reserved.