public class SpockFeatureNameExtractor extends Object implements TestNameExtractor
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_ATTR
Name of the attribute in the
TestAnnotationNames.SPOCK_METHOD_FQ_ANNO_NAME holding static name of the test |
| Constructor and Description |
|---|
SpockFeatureNameExtractor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getTestNameForMethod(MethodInfo methodInfo)
Returns name of the test corresponding with this test method or
null if such test name could not be
determined. |
static boolean |
isClassWithSpecAnnotations(Modifiers modifiers) |
public static final String NAME_ATTR
TestAnnotationNames.SPOCK_METHOD_FQ_ANNO_NAME holding static name of the test@Nullable public String getTestNameForMethod(@NotNull MethodInfo methodInfo)
TestNameExtractornull if such test name could not be
determined.getTestNameForMethod in interface TestNameExtractormethodInfo - test method for which we look for a test namenull if not foundpublic static boolean isClassWithSpecAnnotations(Modifiers modifiers)
Copyright © 2024 OpenClover.org. All rights reserved.