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 voidcleanTest()Test the createAndCleanLine3d method.voidconcatenateTest()Test the concatenate method.voidconstructorsTest()Test the constructors of PolyLine3d.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.voidprintPath2D(Path2D path)Print a Path2D to the console.voidreverseAndProjectTest()Test the reverse and project methods.voidtestConstructors()Test all constructors of a Line2d.voidtestFilter()Test the noiseFilteredLine method.voidtestFind()Test the find method.voidtestToStringHashCodeAndEquals()Test the hashCode and Equals methods.voidtestTruncate()Test the truncate method.
-
-
-
Method Detail
-
constructorsTest
public final void constructorsTest() throws DrawExceptionTest 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, DrawExceptionTest 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 DrawExceptionTest 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 DrawExceptionTest the getLocationExtended method and friends.- Throws:
DrawException- should not happen; this test has failed if it does happen
-
cleanTest
public final void cleanTest() throws DrawExceptionTest the createAndCleanLine3d method.- Throws:
DrawException- should never happen
-
equalsTest
public final void equalsTest() throws DrawExceptionTest the equals method.- Throws:
DrawException- should not happen; this test has failed if it does happen
-
concatenateTest
public final void concatenateTest() throws DrawExceptionTest the concatenate method.- Throws:
DrawException- should not happen; this test has failed if it does happen
-
reverseAndProjectTest
public final void reverseAndProjectTest() throws DrawExceptionTest the reverse and project methods.- Throws:
DrawException- should not happen; this test has failed if it does happen
-
extractTest
public final void extractTest() throws DrawExceptionTest the extract and extractFraction methods.- Throws:
DrawException- should not happen; this test has failed if it does happen
-
testFilter
public final void testFilter() throws DrawExceptionTest 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, InvocationTargetExceptionTest 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 DrawExceptionTest the truncate method.- Throws:
DrawException- if that happens uncaught; this test has failed
-
testToStringHashCodeAndEquals
public void testToStringHashCodeAndEquals() throws NullPointerException, DrawExceptionTest the hashCode and Equals methods.- Throws:
DrawException- when that happens uncaught; this test has failedNullPointerException- when that happens uncaught; this test has failed
-
-