Package org.djutils.exceptions
Class ThrowSupplierTest
java.lang.Object
org.djutils.exceptions.ThrowSupplierTest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest the Throw.when() methods.voidTest the Throw.whenNaN() methods.voidTest the Throw.whenNaN() methods with another exception.voidTest the Throw.whenNaN() methods with null argument.voidTest the Throw.whenNull() method.
-
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.
-