public final class TestUtilities extends Object
Modifier and Type | Method and Description |
---|---|
protected static boolean |
annotationOverridesSuperClass(Annotation annotation)
Determines whether an annotation should override the same type of annotation on a superclass,
by using reflection to invoke the 'overrideSuperClasses' method on the annotation if it exists.
|
protected static boolean |
contains(Class[] list,
Class target) |
static Thread |
getExceptionThreader() |
static List<Class> |
getHierarchyClassesToHandle(Class testClass,
Class[] annotationClasses,
Set<String> classesHandled)
This method facilitates using annotations in a unit test class hierarchy.
|
static void |
setExceptionThreader(Thread exceptionThreader) |
static void |
waitForExceptionRouting()
Waits "indefinately" for the exception routing thread to terminate.
|
static void |
waitForExceptionRouting(long milliseconds) |
public static void waitForExceptionRouting()
public static void waitForExceptionRouting(long milliseconds)
public static Thread getExceptionThreader()
public static void setExceptionThreader(Thread exceptionThreader)
public static List<Class> getHierarchyClassesToHandle(Class testClass, Class[] annotationClasses, Set<String> classesHandled) throws Exception
Exception
- if there is a problem in reflection on an Annotation objectprotected static boolean annotationOverridesSuperClass(Annotation annotation) throws Exception
annotation
- the annotation to inspectException
- if an error occurs during reflectionCopyright © 2005–2016 The Kuali Foundation. All rights reserved.