Class IssueUtils


  • public class IssueUtils
    extends java.lang.Object
    Utility class for creating Issue objects from different annotation sources taking into account test name and parameters filtering.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Issue createIssue​(Issue[] issues, java.lang.String testName, java.util.List<ParameterResource> parameters)
      Creates Issue object from the provided Issue annotation array if it is not null or empty and at least one of them suits corresponding TestFilter filters by provided test name and parameters.
      static Issue createIssue​(Issue issue, java.lang.String testName, java.util.List<ParameterResource> parameters)
      Creates Issue object from the provided Issue annotation if it is not null and passed TestFilter filters suit the provided test name and parameters.
      static Issue createIssue​(Issues issues, java.lang.String testName, java.util.List<ParameterResource> parameters)
      Creates Issue object from the provided Issues annotation if it is not null and at least one of the annotations in the value array suits corresponding TestFilter filters by provided test name and parameters.
      static Issue createIssue​(java.util.List<Issue> issues, java.lang.String testName, java.util.List<ParameterResource> parameters)
      Creates Issue object from the provided list of Issue annotations if it is not empty and at least one of them suits corresponding TestFilter filters by provided test name and parameters.
      • Methods inherited from class java.lang.Object

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

      • createIssue

        @Nullable
        public static Issue createIssue​(@Nullable
                                        Issue issue,
                                        @Nonnull
                                        java.lang.String testName,
                                        @Nonnull
                                        java.util.List<ParameterResource> parameters)
        Creates Issue object from the provided Issue annotation if it is not null and passed TestFilter filters suit the provided test name and parameters.
        Parameters:
        issue - the annotation
        testName - test name
        parameters - test parameters
        Returns:
        the result object or null if the annotation is null or filters do not suit
      • createIssue

        @Nullable
        public static Issue createIssue​(@Nullable
                                        java.util.List<Issue> issues,
                                        @Nonnull
                                        java.lang.String testName,
                                        @Nonnull
                                        java.util.List<ParameterResource> parameters)
        Creates Issue object from the provided list of Issue annotations if it is not empty and at least one of them suits corresponding TestFilter filters by provided test name and parameters. The first suitable annotation will be taken to create the result object.
        Parameters:
        issues - the list of annotations
        testName - test name
        parameters - test parameters
        Returns:
        the result object or null if the list is empty or filters do not suit
      • createIssue

        @Nullable
        public static Issue createIssue​(@Nullable
                                        Issue[] issues,
                                        @Nonnull
                                        java.lang.String testName,
                                        @Nonnull
                                        java.util.List<ParameterResource> parameters)
        Creates Issue object from the provided Issue annotation array if it is not null or empty and at least one of them suits corresponding TestFilter filters by provided test name and parameters. The first suitable annotation will be taken to create the result object.
        Parameters:
        issues - the array of annotations
        testName - test name
        parameters - test parameters
        Returns:
        the result object or null if the list is empty or filters do not suit
      • createIssue

        @Nullable
        public static Issue createIssue​(@Nullable
                                        Issues issues,
                                        @Nonnull
                                        java.lang.String testName,
                                        @Nonnull
                                        java.util.List<ParameterResource> parameters)
        Creates Issue object from the provided Issues annotation if it is not null and at least one of the annotations in the value array suits corresponding TestFilter filters by provided test name and parameters. The first suitable annotation will be taken to create the result object.
        Parameters:
        issues - the annotation
        testName - test name
        parameters - test parameters
        Returns:
        the result object or null if the annotation is null or filters do not suit