Package org.djutils.draw.line
Class PolyLine2dTest
- java.lang.Object
-
- org.djutils.draw.line.PolyLine2dTest
-
public class PolyLine2dTest extends Object
TestLine2d.java.Copyright (c) 2020-2023 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 PolyLine2dTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconcatenateTest()Test the concatenate method.voidconstructorsTest()Test the constructors of PolyLine2d.voidfilterTest()Test the filtering constructors.voidtestConstructors()Test all constructors of a Line2d.voidtestDegenerate()Test the degenerate PolyLine2d.voidtestExports()Test the debugging output methods.voidtestOffsetLine()Test the offsetLine methods.voidtestOtherMethods()Test the other methods of PolyLine2d.voidtestOTS2Problem()Problem with limited precision when getting location almost at end.voidtestPathWithClose()Test construction of a Line2d from a Path2D with SEG_CLOSE.voidtestProjectRay()Test the projectRay method.voidtestProjectRayTransition()Test the projectRay method.voidtestToStringHashCodeAndEquals()Test the hashCode and Equals methods.voidtestTransitionLine()Test the transitionLine method.
-
-
-
Method Detail
-
constructorsTest
public final void constructorsTest() throws DrawRuntimeExceptionTest the constructors of PolyLine2d.- Throws:
DrawRuntimeException- on failure
-
testPathWithClose
public void testPathWithClose() throws DrawRuntimeExceptionTest construction of a Line2d from a Path2D with SEG_CLOSE.- Throws:
DrawRuntimeException- on unexpected error
-
testConstructors
public void testConstructors() throws DrawRuntimeException, DrawRuntimeExceptionTest all constructors of a Line2d.- Throws:
DrawRuntimeException- if that happens uncaught; this test has failedDrawRuntimeException- if that happens uncaught; this test has failed
-
testOtherMethods
public void testOtherMethods() throws NullPointerException, DrawRuntimeExceptionTest the other methods of PolyLine2d.- Throws:
DrawRuntimeException- if that happens uncaught; this test has failedNullPointerException- if that happens uncaught; this test has failed
-
concatenateTest
public final void concatenateTest() throws DrawRuntimeExceptionTest the concatenate method.- Throws:
DrawRuntimeException- should not happen; this test has failed if it does happen
-
testOffsetLine
public void testOffsetLine() throws DrawRuntimeExceptionTest the offsetLine methods.- Throws:
DrawRuntimeException- when that happens uncaught; this test has failed
-
testProjectRayTransition
public void testProjectRayTransition() throws DrawRuntimeExceptionTest the projectRay method.- Throws:
DrawRuntimeException- cannot happen
-
testProjectRay
public void testProjectRay()
Test the projectRay method.
-
testExports
public void testExports()
Test the debugging output methods.
-
testTransitionLine
public void testTransitionLine()
Test the transitionLine method.
-
filterTest
public final void filterTest() throws DrawRuntimeExceptionTest the filtering constructors.- Throws:
DrawRuntimeException- should never happen
-
testToStringHashCodeAndEquals
public void testToStringHashCodeAndEquals() throws NullPointerException, DrawRuntimeExceptionTest the hashCode and Equals methods.- Throws:
DrawRuntimeException- when that happens uncaught; this test has failedNullPointerException- when that happens uncaught; this test has failed
-
testDegenerate
public void testDegenerate()
Test the degenerate PolyLine2d.
-
testOTS2Problem
public void testOTS2Problem() throws DrawRuntimeExceptionProblem with limited precision when getting location almost at end.- Throws:
DrawRuntimeException- when that happens this test has triggered the problem
-
-