Package org.djutils.exceptions
Class ThrowTest
java.lang.Object
org.djutils.exceptions.ThrowTest
The JUNIT Test for 
Throw class.
 Copyright (c) 2002-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
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classClass that has a method with an exception.(package private) static interfaceInterface that has a method without an exception. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidTest the Throw class.voidTest the Throw.whenNaN methods with another RTE.voidTest the Throw.whenNaN methods with one argument.voidTest the Throw.whenNaN methods with two arguments.voidTest the Throw.throwUnchecked() method.voidTest the Throw.whenNaN methods.voidTest the Throw.whenNaN methods with one argument.voidTest the Throw.whenNaN methods with two arguments.voidTest the Throw.whenAnyNull method. 
- 
Constructor Details
- 
ThrowTest
public ThrowTest() 
 - 
 - 
Method Details
- 
testThrow
@Test public void testThrow()Test the Throw class. - 
testWhenAnyNull
@Test public void testWhenAnyNull()Test the Throw.whenAnyNull method. - 
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. 
 -