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-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 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.voidtestConstructors()Test all constructors of a Line2d.voidtestExports()Test the debugging output methods.voidtestOffsetLine()Test the offsetLine methods.voidtestOtherMethods()Test the other methods of Line2d.voidtestPathWithClose()Test construction of a Line2d from a Path2D with SEG_CLOSE.voidtestProjectRay()Test the projectDirectedPoint method.voidtestProjectRayTransition()Test the projectRay method.
-
-
-
Method Detail
-
constructorsTest
public final void constructorsTest() throws DrawExceptionTest the constructors of PolyLine2d.- Throws:
DrawException- on failure
-
testPathWithClose
public void testPathWithClose() throws DrawExceptionTest construction of a Line2d from a Path2D with SEG_CLOSE.- Throws:
DrawException- on unexpected error
-
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
-
testOtherMethods
public void testOtherMethods() throws NullPointerException, DrawExceptionTest the other methods of Line2d.- Throws:
DrawException- if that happens uncaught; this test has failedNullPointerException- if that happens uncaught; this test has failed
-
concatenateTest
public final void concatenateTest() throws DrawExceptionTest the concatenate method.- Throws:
DrawException- should not happen; this test has failed if it does happen
-
testOffsetLine
public void testOffsetLine() throws DrawExceptionTest the offsetLine methods.- Throws:
DrawException- when that happens uncaught; this test has failed
-
testProjectRayTransition
public void testProjectRayTransition() throws DrawExceptionTest the projectRay method.- Throws:
DrawException- cannot happen
-
testProjectRay
public void testProjectRay()
Test the projectDirectedPoint method.
-
testExports
public void testExports()
Test the debugging output methods.
-
-