public final class JUnitUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
getFile(Class<?> clazz,
boolean throwError)
Get the HTML file corresponding to the Java.
|
static File |
getOutput(Class<?> clazz,
File input)
Get the output file.
|
static String |
getOutputName(String name)
Get the output name adjusted.
|
protected static IScenarioListener |
getScenarioCleaner(Class<?> javaClass)
Get scenario cleaner.
|
static IScenarioListener[] |
getScenarioListener(Class<?> type)
Given a class return instances for scenario listeners.
|
static List<org.junit.runners.model.FrameworkMethod> |
prepareScenarios(IRunnerScenario runner)
Prepare scenario runners.
|
static List<Class<? extends IScenarioListener>> |
scanAnnotation(Class<?> type)
Get full list of scenario listeners in annotations.
|
static boolean |
skip(Class<?> javaClass)
Check if a test class has to be skipped.
|
static boolean |
skip(Class<?> javaClass,
File in)
Check if a test class has to be skipped.
|
public static final String PATH
public static boolean skip(Class<?> javaClass)
javaClass - The fixture class.public static boolean skip(Class<?> javaClass, File in)
javaClass - The fixture class.in - The input file/resource.public static File getFile(Class<?> clazz, boolean throwError)
clazz - The test class.public static File getOutput(Class<?> clazz, File input)
clazz - The test class.input - The input file.public static String getOutputName(String name)
name - The original name.public static IScenarioListener[] getScenarioListener(Class<?> type)
type - The base object type.public static List<Class<? extends IScenarioListener>> scanAnnotation(Class<?> type)
type - A type.public static List<org.junit.runners.model.FrameworkMethod> prepareScenarios(IRunnerScenario runner)
runner - Runners.protected static IScenarioListener getScenarioCleaner(Class<?> javaClass)
javaClass - Test class.Copyright © 2016. All rights reserved.