Class ThrowSupplierTest

java.lang.Object
org.djutils.exceptions.ThrowSupplierTest

public class ThrowSupplierTest extends Object
ThrowSupplierTest tests the Supplier options in Throw.

Copyright (c) 2025-2025 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:
Alexander Verbraeck
  • Constructor Details

    • ThrowSupplierTest

      public ThrowSupplierTest()
  • Method Details

    • testThrowWhen

      @Test public void testThrowWhen()
      Test the Throw.when() methods.
    • testThrowWhenNull

      @Test public void testThrowWhenNull()
      Test the Throw.whenNull() method.
    • testThrowWhenNaN

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

      @Test public void testThrowWhenNaNException()
      Test the Throw.whenNaN() methods with another exception.
    • testThrowWhenNaNNull

      @Test public void testThrowWhenNaNNull()
      Test the Throw.whenNaN() methods with null argument.