Package com.epam.reportportal.utils
Class IssueUtils
- java.lang.Object
-
- com.epam.reportportal.utils.IssueUtils
-
public class IssueUtils extends java.lang.ObjectUtility class for creatingIssueobjects 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 IssuecreateIssue(Issue[] issues, java.lang.String testName, java.util.List<ParameterResource> parameters)CreatesIssueobject from the providedIssueannotation array if it is not null or empty and at least one of them suits correspondingTestFilterfilters by provided test name and parameters.static IssuecreateIssue(Issue issue, java.lang.String testName, java.util.List<ParameterResource> parameters)CreatesIssueobject from the providedIssueannotation if it is not null and passedTestFilterfilters suit the provided test name and parameters.static IssuecreateIssue(Issues issues, java.lang.String testName, java.util.List<ParameterResource> parameters)CreatesIssueobject from the providedIssuesannotation if it is not null and at least one of the annotations in the value array suits correspondingTestFilterfilters by provided test name and parameters.static IssuecreateIssue(java.util.List<Issue> issues, java.lang.String testName, java.util.List<ParameterResource> parameters)CreatesIssueobject from the provided list ofIssueannotations if it is not empty and at least one of them suits correspondingTestFilterfilters by provided test name and parameters.
-
-
-
Method Detail
-
createIssue
@Nullable public static Issue createIssue(@Nullable Issue issue, @Nonnull java.lang.String testName, @Nonnull java.util.List<ParameterResource> parameters)
CreatesIssueobject from the providedIssueannotation if it is not null and passedTestFilterfilters suit the provided test name and parameters.- Parameters:
issue- the annotationtestName- test nameparameters- 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)
CreatesIssueobject from the provided list ofIssueannotations if it is not empty and at least one of them suits correspondingTestFilterfilters by provided test name and parameters. The first suitable annotation will be taken to create the result object.- Parameters:
issues- the list of annotationstestName- test nameparameters- 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)
CreatesIssueobject from the providedIssueannotation array if it is not null or empty and at least one of them suits correspondingTestFilterfilters by provided test name and parameters. The first suitable annotation will be taken to create the result object.- Parameters:
issues- the array of annotationstestName- test nameparameters- 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)
CreatesIssueobject from the providedIssuesannotation if it is not null and at least one of the annotations in the value array suits correspondingTestFilterfilters by provided test name and parameters. The first suitable annotation will be taken to create the result object.- Parameters:
issues- the annotationtestName- test nameparameters- test parameters- Returns:
- the result object or null if the annotation is null or filters do not suit
-
-