Package org.djutils.draw.line
Class PolyLine2dTest
java.lang.Object
org.djutils.draw.line.PolyLine2dTest
TestLine2d.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 PolyLine2d.final void
Test the filtering constructors.void
Test all constructors of a Line2d.void
Test the degenerate PolyLine2d.void
Test the debugging output methods.void
Test the offsetLine methods.void
Test the other methods of PolyLine2d.void
Problem with limited precision when getting location almost at end.void
Test construction of a Line2d from a Path2D with SEG_CLOSE.void
Test the projectRay method.void
Test the projectRay method.void
Test the hashCode and Equals methods.void
Test the transitionLine method.
-
Constructor Details
-
PolyLine2dTest
public PolyLine2dTest()
-
-
Method Details
-
constructorsTest
Test the constructors of PolyLine2d.- Throws:
DrawRuntimeException
- on failure
-
testPathWithClose
Test construction of a Line2d from a Path2D with SEG_CLOSE.- Throws:
DrawRuntimeException
- on unexpected error
-
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
-
testOtherMethods
Test the other methods of PolyLine2d.- Throws:
DrawRuntimeException
- if that happens uncaught; this test has failedNullPointerException
- if that happens uncaught; this test has failed
-
concatenateTest
Test the concatenate method.- Throws:
DrawRuntimeException
- should not happen; this test has failed if it does happen
-
testOffsetLine
Test the offsetLine methods.- Throws:
DrawRuntimeException
- when that happens uncaught; this test has failed
-
testProjectRayTransition
Test the projectRay method.- Throws:
DrawRuntimeException
- cannot happen
-
testProjectRay
@Test public void testProjectRay()Test the projectRay method. -
testExports
@Test public void testExports()Test the debugging output methods. -
testTransitionLine
@Test public void testTransitionLine()Test the transitionLine method. -
filterTest
Test the filtering constructors.- Throws:
DrawRuntimeException
- should never happen
-
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
-
testDegenerate
@Test public void testDegenerate()Test the degenerate PolyLine2d. -
testOTS2Problem
Problem with limited precision when getting location almost at end.- Throws:
DrawRuntimeException
- when that happens this test has triggered the problem
-