Package org.djutils.draw.line
Class PolyLine3dTest
- java.lang.Object
-
- org.djutils.draw.line.PolyLine3dTest
-
public class PolyLine3dTest extends Object
TestLine3d.java.Copyright (c) 2020-2021 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
Constructors Constructor Description PolyLine3dTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanTest()
Test the createAndCleanLine3d method.void
concatenateTest()
Test the concatenate method.void
constructorsTest()
Test the constructors of PolyLine3d.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
printPath2D(Path2D path)
Print a Path2D to the console.void
reverseAndProjectTest()
Test the reverse and project methods.void
testConstructors()
Test all constructors of a Line2d.void
testFilter()
Test the noiseFilteredLine method.void
testFind()
Test the find method.void
testToStringHashCodeAndEquals()
Test the hashCode and Equals methods.void
testTruncate()
Test the truncate method.
-
-
-
Method Detail
-
constructorsTest
public final void constructorsTest() throws DrawException
Test the constructors of PolyLine3d.- Throws:
DrawException
- on failure
-
printPath2D
public final void printPath2D(Path2D path)
Print a Path2D to the console.- Parameters:
path
- Path2D; the path
-
testConstructors
public void testConstructors() throws DrawRuntimeException, DrawException
Test all constructors of a Line2d.- Throws:
DrawRuntimeException
- if that happens uncaught; this test has failedDrawException
- if that happens uncaught; this test has failed
-
exceptionTest
public final void exceptionTest() throws DrawException
Test that exception is thrown when it should be.- Throws:
DrawException
- should not happen; this test has failed if it does happen
-
locationExtendedTest
public final void locationExtendedTest() throws DrawException
Test the getLocationExtended method and friends.- Throws:
DrawException
- should not happen; this test has failed if it does happen
-
cleanTest
public final void cleanTest() throws DrawException
Test the createAndCleanLine3d method.- Throws:
DrawException
- should never happen
-
equalsTest
public final void equalsTest() throws DrawException
Test the equals method.- Throws:
DrawException
- should not happen; this test has failed if it does happen
-
concatenateTest
public final void concatenateTest() throws DrawException
Test the concatenate method.- Throws:
DrawException
- should not happen; this test has failed if it does happen
-
reverseAndProjectTest
public final void reverseAndProjectTest() throws DrawException
Test the reverse and project methods.- Throws:
DrawException
- should not happen; this test has failed if it does happen
-
extractTest
public final void extractTest() throws DrawException
Test the extract and extractFraction methods.- Throws:
DrawException
- should not happen; this test has failed if it does happen
-
testFilter
public final void testFilter() throws DrawException
Test the noiseFilteredLine method.- Throws:
DrawException
- should not happen (if it does, this test has failed)
-
testFind
public final void testFind() throws DrawException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException
Test the find method.- Throws:
DrawException
- 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 DrawException
Test the truncate method.- Throws:
DrawException
- if that happens uncaught; this test has failed
-
testToStringHashCodeAndEquals
public void testToStringHashCodeAndEquals() throws NullPointerException, DrawException
Test the hashCode and Equals methods.- Throws:
DrawException
- when that happens uncaught; this test has failedNullPointerException
- when that happens uncaught; this test has failed
-
-