Class PolyLine2dTest

java.lang.Object
org.djutils.draw.line.PolyLine2dTest

public class PolyLine2dTest extends Object
TestLine2d.java.

Copyright (c) 2020-2025 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, Wouter Schakel
  • Constructor Details

    • PolyLine2dTest

      public PolyLine2dTest()
  • Method Details

    • constructorsTest

      @Test public final void constructorsTest() throws DrawRuntimeException
      Test the constructors of PolyLine2d.
      Throws:
      DrawRuntimeException - on failure
    • testPathWithClose

      @Test public void testPathWithClose() throws DrawRuntimeException
      Test construction of a Line2d from a Path2D with SEG_CLOSE.
      Throws:
      DrawRuntimeException - on unexpected error
    • testConstructors

      @Test public void testConstructors() throws RuntimeException
      Test all constructors of a Line2d.
      Throws:
      RuntimeException - if that happens uncaught; this test has failed
    • testOtherMethods

      @Test public void testOtherMethods() throws NullPointerException, DrawRuntimeException
      Test the other methods of PolyLine2d.
      Throws:
      DrawRuntimeException - if that happens uncaught; this test has failed
      NullPointerException - if that happens uncaught; this test has failed
    • concatenateTest

      @Test public final void concatenateTest() throws DrawRuntimeException
      Test the concatenate method.
      Throws:
      DrawRuntimeException - should not happen; this test has failed if it does happen
    • testOffsetLine

      @Test public void testOffsetLine() throws DrawRuntimeException
      Test the offsetLine methods.
      Throws:
      DrawRuntimeException - when that happens uncaught; this test has failed
    • testProjectRayTransition

      @Test public void testProjectRayTransition() throws DrawRuntimeException
      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 public final void filterTest() throws DrawRuntimeException
      Test the filtering constructors.
      Throws:
      DrawRuntimeException - should never happen
    • testToStringHashCodeAndEquals

      @Test public void testToStringHashCodeAndEquals() throws NullPointerException, DrawRuntimeException
      Test the hashCode and Equals methods.
      Throws:
      DrawRuntimeException - when that happens uncaught; this test has failed
      NullPointerException - when that happens uncaught; this test has failed
    • testDegenerate

      @Test public void testDegenerate()
      Test the degenerate PolyLine2d.
    • testOTS2Problem

      @Test public void testOTS2Problem() throws DrawRuntimeException
      Problem with limited precision when getting location almost at end.
      Throws:
      DrawRuntimeException - when that happens this test has triggered the problem
    • getLocationProblem

      @Test public void getLocationProblem()
      Issue #82.