public class RunnerUtil extends Object
| Constructor and Description |
|---|
RunnerUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
categorizeTestMethods(List<org.junit.runners.model.FrameworkMethod> methodsWithNoData,
List<org.junit.runners.model.FrameworkMethod> methodsWithData,
org.junit.runners.model.TestClass testClazz,
Map<String,List<Map<String,Object>>> writableData) |
static ClassLoader |
determineClassLoader(Class<?> fieldType,
Class<?> testClass)
Determine the right class loader to use to load the class
|
static Integer |
getRepeatCount() |
static org.junit.runners.model.RunnerScheduler |
getScheduler(Class<?> testClass) |
static String |
getTestName(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.FrameworkMethod method) |
static void |
handleMethodsWithData(List<org.junit.runners.model.FrameworkMethod> methodsWithData,
List<org.junit.runners.model.FrameworkMethod> finalList,
org.junit.runners.model.TestClass testClazz,
ReportDataContainer testReportContainer) |
static void |
handleMethodsWithNoData(List<org.junit.runners.model.FrameworkMethod> methodsWithNoData,
List<org.junit.runners.model.FrameworkMethod> finalList,
ReportDataContainer testReportContainer) |
static void |
loadBeanConfiguration(Class<?> testClass) |
static void |
loadClassLevelData(Class<?> klass,
org.junit.runners.model.TestClass testClass,
Map<String,List<Map<String,Object>>> writableData)
Load any class level test data
|
static List<org.junit.runners.model.FrameworkMethod> |
testMethods(org.junit.runners.model.TestClass testClazz,
ReportDataContainer testReportContainer,
Map<String,List<Map<String,Object>>> writableData) |
public static org.junit.runners.model.RunnerScheduler getScheduler(Class<?> testClass)
public static void loadBeanConfiguration(Class<?> testClass)
testClass - TestConfigUtil.loadTestBeanConfig(Class)public static void loadClassLevelData(Class<?> klass, org.junit.runners.model.TestClass testClass, Map<String,List<Map<String,Object>>> writableData)
klass - testClass - writableData - DataLoaderUtil.loadData(Class, FrameworkMethod, org.junit.runners.model.TestClass, Map)public static void categorizeTestMethods(List<org.junit.runners.model.FrameworkMethod> methodsWithNoData, List<org.junit.runners.model.FrameworkMethod> methodsWithData, org.junit.runners.model.TestClass testClazz, Map<String,List<Map<String,Object>>> writableData)
public static void handleMethodsWithData(List<org.junit.runners.model.FrameworkMethod> methodsWithData, List<org.junit.runners.model.FrameworkMethod> finalList, org.junit.runners.model.TestClass testClazz, ReportDataContainer testReportContainer)
public static Integer getRepeatCount()
public static void handleMethodsWithNoData(List<org.junit.runners.model.FrameworkMethod> methodsWithNoData, List<org.junit.runners.model.FrameworkMethod> finalList, ReportDataContainer testReportContainer)
public static List<org.junit.runners.model.FrameworkMethod> testMethods(org.junit.runners.model.TestClass testClazz, ReportDataContainer testReportContainer, Map<String,List<Map<String,Object>>> writableData)
public static ClassLoader determineClassLoader(Class<?> fieldType, Class<?> testClass)
fieldType - testClass - public static String getTestName(org.junit.runners.model.TestClass testClass, org.junit.runners.model.FrameworkMethod method)
Copyright © 2014. All rights reserved.