From 7e0085d63fea5abdfbdb18d55d10dba79553ed3b Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Wed, 13 Nov 2024 14:26:18 +0300 Subject: [PATCH] EPMRPP-93641 revert constructors --- .../reportportal/entity/item/issue/IssueType.java | 9 +++++++++ .../entity/project/email/SenderCase.java | 13 +++++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueType.java b/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueType.java index 7190d65fd..a653f5737 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueType.java +++ b/src/main/java/com/epam/ta/reportportal/entity/item/issue/IssueType.java @@ -67,6 +67,15 @@ public class IssueType implements Serializable { @Column(name = "hex_color", length = 7) private String hexColor; + public IssueType(IssueGroup issueGroup, String locator, String longName, String shortName, + String hexColor) { + this.issueGroup = issueGroup; + this.locator = locator; + this.longName = longName; + this.shortName = shortName; + this.hexColor = hexColor; + } + @Override public boolean equals(Object o) { if (this == o) { diff --git a/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCase.java b/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCase.java index 8943eabc1..b38622afa 100644 --- a/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCase.java +++ b/src/main/java/com/epam/ta/reportportal/entity/project/email/SenderCase.java @@ -103,4 +103,17 @@ public class SenderCase implements Serializable { @Column(name = "attributes_operator") private LogicalOperator attributesOperator; + + public SenderCase(String ruleName, Set recipients, Set launchNames, + Set launchAttributeRules, SendCase sendCase, + boolean enabled, String type, LogicalOperator attributesOperator) { + this.ruleName = ruleName; + this.recipients = recipients; + this.launchNames = launchNames; + this.launchAttributeRules = launchAttributeRules; + this.sendCase = sendCase; + this.enabled = enabled; + this.type = type; + this.attributesOperator = attributesOperator; + } }