public class TestCaseIdUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getCodeRef(java.lang.reflect.Executable executable)
Generates a text code reference by consuming a
Executable |
static <T> java.lang.String |
getParametersForTestCaseId(java.lang.reflect.Executable executable,
java.util.List<T> parameters)
Returns a string of parameters values, separated by comma and embraced by '[]'.
|
static <T> TestCaseIdEntry |
getTestCaseId(java.lang.reflect.Executable executable,
java.util.List<T> parameters)
Generates Test Case ID based on an executable reference and a list of parameters
|
static <T> TestCaseIdEntry |
getTestCaseId(java.util.List<T> parameters)
Generates Test Case ID based on a list of parameters
|
static <T> TestCaseIdEntry |
getTestCaseId(java.lang.String codeRef,
java.util.List<T> parameters)
Generates Test Case ID based on a code reference and a list of parameters
|
static <T> TestCaseIdEntry |
getTestCaseId(TestCaseId annotation,
java.lang.reflect.Executable executable,
java.util.List<T> parameters)
Generates a
TestCaseIdEntry |
static <T> TestCaseIdEntry |
getTestCaseId(TestCaseId annotation,
java.lang.reflect.Executable executable,
java.lang.String codRef,
java.util.List<T> parameters)
Generates a
TestCaseIdEntry |
static <T> TestCaseIdEntry |
getTestCaseId(TestCaseId annotation,
java.lang.reflect.Executable executable,
java.lang.String codRef,
java.util.List<T> parameters,
java.lang.Object testInstance)
Generates a
TestCaseIdEntry |
@Nonnull
public static java.lang.String getCodeRef(@Nonnull
java.lang.reflect.Executable executable)
Executableexecutable - an executable or constructor, the value should not be null@Nullable
public static <T> java.lang.String getParametersForTestCaseId(java.lang.reflect.Executable executable,
java.util.List<T> parameters)
T - a type of parametersexecutable - a constructor or methodparameters - a list of parameter values@Nullable public static <T> TestCaseIdEntry getTestCaseId(@Nullable TestCaseId annotation, @Nullable java.lang.reflect.Executable executable, @Nullable java.util.List<T> parameters)
TestCaseIdEntryT - a type of parametersannotation - a TestCaseId annotation instanceexecutable - a constructor or method for TestCaseIdKey scanparameters - a list of parameter values@Nullable public static <T> TestCaseIdEntry getTestCaseId(@Nullable TestCaseId annotation, @Nullable java.lang.reflect.Executable executable, @Nullable java.lang.String codRef, @Nullable java.util.List<T> parameters)
TestCaseIdEntryT - a type of parametersannotation - a TestCaseId annotation instanceexecutable - a constructor or method for TestCaseIdKey scancodRef - a code reference to use to generate the IDparameters - a list of parameter values@Nullable public static <T> TestCaseIdEntry getTestCaseId(@Nullable TestCaseId annotation, @Nullable java.lang.reflect.Executable executable, @Nullable java.lang.String codRef, @Nullable java.util.List<T> parameters, @Nullable java.lang.Object testInstance)
TestCaseIdEntryT - a type of parametersannotation - a TestCaseId annotation instanceexecutable - a constructor or method for TestCaseIdKey scancodRef - a code reference to use to generate the IDparameters - a list of parameter valuestestInstance - an instance of the current test, used in template processing@Nullable public static <T> TestCaseIdEntry getTestCaseId(@Nullable java.lang.reflect.Executable executable, @Nullable java.util.List<T> parameters)
T - parameters typeexecutable - a Executable objectparameters - a list of parameters@Nullable public static <T> TestCaseIdEntry getTestCaseId(@Nullable java.lang.String codeRef, @Nullable java.util.List<T> parameters)
T - parameters typecodeRef - a code referenceparameters - a list of parameters@Nullable public static <T> TestCaseIdEntry getTestCaseId(@Nullable java.util.List<T> parameters)
T - parameters typeparameters - a list of parameters