com.atlassian.jira.webtests.util
Class TestClassUtils

java.lang.Object
  extended by com.atlassian.jira.webtests.util.TestClassUtils

public final class TestClassUtils
extends Object

Utility methods to find tests classes.

Since:
v4.0

Method Summary
protected  Object clone()
           
static List<Class<? extends junit.framework.TestCase>> getAllFuncTests()
           
static List<Class<? extends junit.framework.TestCase>> getJUni3TestClasses(String packageName, boolean recursive)
           
static List<Class<? extends junit.framework.TestCase>> getJUnit3TestClasses(String packageName)
           
static List<Class<?>> getTestClasses(String packageName, boolean recursive)
          Get all test classes, including JUnit4 POJOs.
static List<Method> getTestMethods(Class<? extends junit.framework.TestCase> testClass)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clone

protected Object clone()
                throws CloneNotSupportedException
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

getTestClasses

public static List<Class<?>> getTestClasses(String packageName,
                                            boolean recursive)
Get all test classes, including JUnit4 POJOs.

Parameters:
packageName - package name
recursive - recursive search
Returns:
list of all test classes in given package

getJUni3TestClasses

public static List<Class<? extends junit.framework.TestCase>> getJUni3TestClasses(String packageName,
                                                                                  boolean recursive)

getJUnit3TestClasses

public static List<Class<? extends junit.framework.TestCase>> getJUnit3TestClasses(String packageName)

getAllFuncTests

public static List<Class<? extends junit.framework.TestCase>> getAllFuncTests()

getTestMethods

public static List<Method> getTestMethods(Class<? extends junit.framework.TestCase> testClass)


Copyright © 2002-2012 Atlassian. All Rights Reserved.