Package com.epam.reportportal.cucumber
Class Utils
- java.lang.Object
-
- com.epam.reportportal.cucumber.Utils
-
public class Utils extends java.lang.ObjectUtility class for static methods
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.function.Function<java.util.List<io.cucumber.plugin.event.Argument>,java.util.List<?>>ARGUMENTS_TRANSFORMstatic java.util.Map<io.cucumber.plugin.event.Status,java.lang.String>LOG_LEVEL_MAPPINGstatic java.util.Map<io.cucumber.plugin.event.Status,com.epam.reportportal.listeners.ItemStatus>STATUS_MAPPINGstatic java.lang.StringTAG_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringbuildName(java.lang.String prefix, java.lang.String infix, java.lang.String argument)Generate name representationstatic java.util.Set<java.lang.String>getTags(io.cucumber.core.gherkin.Feature feature)Parses a feature source and return all declared tags before the feature.
-
-
-
Field Detail
-
TAG_KEY
public static final java.lang.String TAG_KEY
- See Also:
- Constant Field Values
-
STATUS_MAPPING
public static final java.util.Map<io.cucumber.plugin.event.Status,com.epam.reportportal.listeners.ItemStatus> STATUS_MAPPING
-
LOG_LEVEL_MAPPING
public static final java.util.Map<io.cucumber.plugin.event.Status,java.lang.String> LOG_LEVEL_MAPPING
-
ARGUMENTS_TRANSFORM
public static final java.util.function.Function<java.util.List<io.cucumber.plugin.event.Argument>,java.util.List<?>> ARGUMENTS_TRANSFORM
-
-
Method Detail
-
buildName
public static java.lang.String buildName(@Nullable java.lang.String prefix, @Nullable java.lang.String infix, @Nullable java.lang.String argument)Generate name representation- Parameters:
prefix- - substring to be prepended at the beginning (optional)infix- - substring to be inserted between keyword and nameargument- - main text to process- Returns:
- transformed string
-
getTags
@Nonnull public static java.util.Set<java.lang.String> getTags(@Nonnull io.cucumber.core.gherkin.Feature feature)Parses a feature source and return all declared tags before the feature.- Parameters:
feature- Cucumber's Feature object- Returns:
- tags set
-
-