Package org.djutils.draw.line
Class PolyLine3dTest
java.lang.Object
org.djutils.draw.line.PolyLine3dTest
TestLine3d.java.
Copyright (c) 2020-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
Test the concatenate method.final void
Test the constructors of PolyLine3d.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 filtering constructors.final void
Test the getLocationExtended method and friends.static String
marker
(double x, double y) Draw a X marker.final void
printPath2D
(Path2D path) Print a Path2D to the console.final void
Test the reverse and project methods.void
Test all constructors of a Line2d.void
Test the degenerate PolyLine3d.void
Test the debugging output methods.final void
testFind()
Test the find method.final void
Test other methods of PolyLine3d.void
Problem with limited precision when getting location almost at end.void
Test for a problem that occurred in OTS2.void
Test the hashCode and Equals methods.void
Test the transitionLine method.final void
Test the truncate method.
-
Constructor Details
-
PolyLine3dTest
public PolyLine3dTest()
-
-
Method Details
-
constructorsTest
Test the constructors of PolyLine3d.- Throws:
DrawRuntimeException
- on failure
-
printPath2D
Print a Path2D to the console.- Parameters:
path
- Path2D; the path
-
testConstructors
Test all constructors of a Line2d.- Throws:
DrawRuntimeException
- if that happens uncaught; this test has failedDrawRuntimeException
- if that happens uncaught; this test has failed
-
exceptionTest
Test that exception is thrown when it should be.- Throws:
DrawRuntimeException
- should not happen; this test has failed if it does happen
-
locationExtendedTest
Test the getLocationExtended method and friends.- Throws:
DrawRuntimeException
- should not happen; this test has failed if it does happen
-
filterTest
Test the filtering constructors.- Throws:
DrawRuntimeException
- should never happen
-
equalsTest
Test the equals method.- Throws:
DrawRuntimeException
- should not happen; this test has failed if it does happen
-
concatenateTest
Test the concatenate method.- Throws:
DrawRuntimeException
- should not happen; this test has failed if it does happen
-
reverseAndProjectTest
Test the reverse and project methods.- Throws:
DrawRuntimeException
- should not happen; this test has failed if it does happen
-
extractTest
Test the extract and extractFraction methods.- Throws:
DrawRuntimeException
- should not happen; this test has failed if it does happen
-
testOtherMethods
Test other methods of PolyLine3d.- Throws:
DrawRuntimeException
- should not happen (if it does, this test has failed)
-
testFind
@Test public final void testFind() throws DrawRuntimeException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptionTest the find method.- Throws:
DrawRuntimeException
- 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:
DrawRuntimeException
- if that happens uncaught; this test has failed
-
testExports
@Test public void testExports()Test the debugging output methods. -
testToStringHashCodeAndEquals
Test the hashCode and Equals methods.- Throws:
DrawRuntimeException
- when that happens uncaught; this test has failedNullPointerException
- when that happens uncaught; this test has failed
-
testProjectProblem
Test for a problem that occurred in OTS2.- Throws:
DrawRuntimeException
- when that happens, this test has failed
-
testTransitionLine
@Test public void testTransitionLine()Test the transitionLine method. -
testDegenerate
@Test public void testDegenerate()Test the degenerate PolyLine3d. -
marker
Draw a X marker.- Parameters:
x
- double; x locationy
- double; y location- Returns:
- String
-
testOTS2Problem
Problem with limited precision when getting location almost at end.- Throws:
DrawRuntimeException
- when that happens this test has triggered the problem
-