Package org.djutils.exceptions
Class ThrowTest
java.lang.Object
org.djutils.exceptions.ThrowTest
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
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
Class that has a method with an exception.(package private) static interface
Interface that has a method without an exception. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test the Throw class.void
Test the Throw.whenNaN methods with another RTE.void
Test the Throw.whenNaN methods with one argument.void
Test the Throw.whenNaN methods with two arguments.void
Test the Throw.throwUnchecked() method.void
Test the Throw.whenNaN methods.void
Test the Throw.whenNaN methods with one argument.void
Test the Throw.whenNaN methods with two arguments.
-
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.
-