Package dev.aherscu.qa.testing.utils
Class ClassUtilsExtensions
- java.lang.Object
-
- org.apache.commons.lang3.ClassUtils
-
- dev.aherscu.qa.testing.utils.ClassUtilsExtensions
-
public final class ClassUtilsExtensions extends org.apache.commons.lang3.ClassUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStream
getRelativeResourceAsStream(Class<?> clazz, String resourceName)
Retrieves a resource relative to specified class.-
Methods inherited from class org.apache.commons.lang3.ClassUtils
comparator, convertClassesToClassNames, convertClassNamesToClasses, getAbbreviatedName, getAbbreviatedName, getAllInterfaces, getAllSuperclasses, getCanonicalName, getCanonicalName, getCanonicalName, getCanonicalName, getClass, getClass, getClass, getClass, getComponentType, getName, getName, getName, getName, getPackageCanonicalName, getPackageCanonicalName, getPackageCanonicalName, getPackageName, getPackageName, getPackageName, getPublicMethod, getShortCanonicalName, getShortCanonicalName, getShortCanonicalName, getShortClassName, getShortClassName, getShortClassName, getSimpleName, getSimpleName, getSimpleName, getSimpleName, hierarchy, hierarchy, isAssignable, isAssignable, isAssignable, isAssignable, isInnerClass, isPrimitiveOrWrapper, isPrimitiveWrapper, isPublic, primitivesToWrappers, primitiveToWrapper, toClass, wrappersToPrimitives, wrapperToPrimitive
-
-
-
-
Method Detail
-
getRelativeResourceAsStream
public static InputStream getRelativeResourceAsStream(Class<?> clazz, String resourceName)
Retrieves a resource relative to specified class.- Parameters:
clazz
- the class from which the relative look-up should workresourceName
- the resource name to look-up for- Returns:
- the resource as an input stream
- Throws:
IllegalArgumentException
- if the resource was not foundNullPointerException
- if the resource name isnull
-
-