Class ExceptionTest

java.lang.Object
org.djutils.test.ExceptionTest

public final class ExceptionTest extends Object
ExceptionTest has a generic test method for testing an exception with four constructors.

Copyright (c) 2024-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:
Alexander Verbraeck, Wouter Schakel
  • Method Details

    • testExceptionClass

      public static void testExceptionClass(Class<? extends Exception> clazz)
      Test exception class on constructors: empty, only message, only Throwable, message and Throwable.
      Parameters:
      clazz - exception class to test.