Package org.opentrafficsim.base.geometry
Class OtsLine2dTest
java.lang.Object
org.opentrafficsim.base.geometry.OtsLine2dTest
Copyright (c) 2013-2024 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 voidTest the createAndCleanOtsLine2d method.final voidTest the concatenate method.final voidTest the constructors of OtsLine2d.final voidTest the equals method.final voidTest that exception is thrown when it should be.final voidTest the extract and extractFraction methods.final voidTest the getLocationExtended method and friends.final voidTest getLocation method.final voidTest the offsetLine method.final voidprintPath2D(Path2D path) Print a Path2D to the console.final voidTest the reverse method.final voidtestFind()Test the find method.final voidTests the fractional projection method.voidTest the getRadius method.final voidTest the truncate method.
-
Constructor Details
-
OtsLine2dTest
public OtsLine2dTest()
-
-
Method Details
-
constructorsTest
@Test public final void constructorsTest()Test the constructors of OtsLine2d. -
printPath2D
Print a Path2D to the console.- Parameters:
path- the path
-
exceptionTest
@Test public final void exceptionTest()Test that exception is thrown when it should be. -
locationExtendedTest
@Test public final void locationExtendedTest()Test the getLocationExtended method and friends. -
locationTest
@Test public final void locationTest()Test getLocation method. -
cleanTest
@Test public final void cleanTest()Test the createAndCleanOtsLine2d method. -
equalsTest
@Test public final void equalsTest()Test the equals method. -
concatenateTest
@Test public final void concatenateTest()Test the concatenate method. -
reverseTest
@Test public final void reverseTest()Test the reverse method. -
extractTest
@Test public final void extractTest()Test the extract and extractFraction methods. -
offsetLineTest
@Test public final void offsetLineTest()Test the offsetLine method. Only tests a few easy cases. -
testFractionalProjection
@Test public final void testFractionalProjection()Tests the fractional projection method. -
testFind
@Test public final void testFind() throws NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptionTest the find method.- Throws:
SecurityException- 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 public final void testTruncate()Test the truncate method. -
testRadius
@Test public void testRadius()Test the getRadius method.
-