Package org.djutils.reflection
Class ClassUtilTest
java.lang.Object
org.djutils.reflection.ClassUtilTest
public class ClassUtilTest extends Object
The JUNIT Test for
ClassUtil
.
Copyright (c) 2002-2019 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 , Peter Knoppers
-
Constructor Summary
Constructors Constructor Description ClassUtilTest()
-
Method Summary
Modifier and Type Method Description void
testClassUtilClass()
void
testClassUtilConstructors()
Tests the ClassUtil Constructorsvoid
testFieldSignature()
Test the constructors and fields of the FieldSignature class.void
testMethodSignature()
Test the constructors and fields of the MethodSignature class.void
testToClass()
Test the toClass method of the FieldSignature class.void
testToDescriptor()
Test the toDescriptor method of the FieldSignature class.
-
Constructor Details
-
ClassUtilTest
public ClassUtilTest()
-
-
Method Details
-
testClassUtilClass
public void testClassUtilClass() -
testToDescriptor
public void testToDescriptor()Test the toDescriptor method of the FieldSignature class. -
testToClass
Test the toClass method of the FieldSignature class.- Throws:
ClassNotFoundException
- if that happens uncaught; this test has failed
-
testFieldSignature
Test the constructors and fields of the FieldSignature class.- Throws:
ClassNotFoundException
- if that happens uncaught; this test has failed
-
testMethodSignature
public void testMethodSignature() throws NoSuchMethodException, SecurityException, ClassNotFoundExceptionTest the constructors and fields of the MethodSignature class.- Throws:
SecurityException
- if that happens uncaught; this test has failedNoSuchMethodException
- if that happens uncaught; this test has failedClassNotFoundException
- if that happens uncaught; this test has failed
-
testClassUtilConstructors
public void testClassUtilConstructors() throws NoSuchMethodException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetExceptionTests the ClassUtil Constructors- Throws:
NoSuchMethodException
- on errorInvocationTargetException
- on errorIllegalArgumentException
- on errorIllegalAccessException
- on errorInstantiationException
- on error
-