Class ThrowTest

java.lang.Object
org.djutils.exceptions.ThrowTest

public class ThrowTest extends Object
The JUNIT Test for Throw class.

Copyright (c) 2002-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.

Author:
Peter Jacobs
  • Constructor Details

    • ThrowTest

      public ThrowTest()
  • Method Details

    • testThrow

      @Test public void testThrow()
      Test the Throw class.
    • testThrowWhenNaN

      @Test public void testThrowWhenNaN()
      Test the Throw.whenNaN methods.
    • testThrowWhenNaNArg1

      @Test public void testThrowWhenNaNArg1()
      Test the Throw.whenNaN methods with one argument.
    • testThrowWhenNaNArg2

      @Test public void testThrowWhenNaNArg2()
      Test the Throw.whenNaN methods with two arguments.
    • testThrowRTEWhenNaN

      @Test public void testThrowRTEWhenNaN()
      Test the Throw.whenNaN methods with another RTE.
    • testThrowRTEWhenNaNArg1

      @Test public void testThrowRTEWhenNaNArg1()
      Test the Throw.whenNaN methods with one argument.
    • testThrowRTEWhenNaNArg2

      @Test public void testThrowRTEWhenNaNArg2()
      Test the Throw.whenNaN methods with two arguments.
    • testThrowUnchecked

      @Test public void testThrowUnchecked()
      Test the Throw.throwUnchecked() method.