Class Utils


  • public class Utils
    extends java.lang.Object
    Utility 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_TRANSFORM  
      static java.util.Map<io.cucumber.plugin.event.Status,​java.lang.String> LOG_LEVEL_MAPPING  
      static java.util.Map<io.cucumber.plugin.event.Status,​com.epam.reportportal.listeners.ItemStatus> STATUS_MAPPING  
      static java.lang.String TAG_KEY  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String buildName​(java.lang.String prefix, java.lang.String infix, java.lang.String argument)
      Generate name representation
      static 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 name
        argument - - 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