Class AbsVector1Test

java.lang.Object
org.djunits.vecmat.d1.AbsVector1Test

public class AbsVector1Test extends Object
Tests for AbsVector1.

This class provides exhaustive coverage of AbsVector1 and AbsVector1.Row and all inherited functionality from AbsVector, AbsVectorMatrix and Value.

Copyright (c) 2026-2026 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djunits.org. The DJUNITS project is distributed under a three-clause BSD-style license.

Author:
Alexander Verbraeck
  • Constructor Details

    • AbsVector1Test

      public AbsVector1Test()
  • Method Details

    • testCtorBase

      @Test public void testCtorBase()
      Test constructor and base methods such as rows(), cols(), size() for AbsVector1.
    • testCtorBaseExceptions

      @Test public void testCtorBaseExceptions()
      Test exceptions for AbsVector1 constructor.
    • testInstantiate

      @Test public void testInstantiate()
      Test instantiate() and instantiateSi() for column matrices.
    • testStaticFactories

      @Test public void testStaticFactories()
      Test all of() and ofSi() static factories for column matrices.
    • testAbsStaticFactories

      @Test public void testAbsStaticFactories()
      Test of(A) and of(A[]) static factories.
    • testScalarAndSiArray

      @Test public void testScalarAndSiArray()
      Test scalar and SI array extraction for AbsVector1.
    • testMinMaxMedian

      @Test public void testMinMaxMedian()
      Test min(), max() and median() for AbsVector1.
    • testTranspose

      @Test public void testTranspose()
      Test transpose().
    • testAddSubtract

      @Test public void testAddSubtract()
      Test add() and subtract() methods for AbsVector1.
    • testIterator

      @Test public void testIterator()
      Test iterator for AbsVector1.
    • testToString

      @Test public void testToString()
      Test toString() for AbsVector1.
    • testEqualsHashCode

      @Test public void testEqualsHashCode()
      Test equals(), hashCode() for AbsVector1.
    • testAsFunctions

      @Test @DisplayName("AbsVector1 as() functions test") public void testAsFunctions()
      Test as() functions.