Jagger
 All Classes Namespaces Files Functions Variables Enumerator Groups Pages
TestEntity.java
Go to the documentation of this file.
1 package com.griddynamics.jagger.engine.e1.services.data.service;
2 
3 import com.griddynamics.jagger.dbapi.dto.TaskDataDto;
4 import com.griddynamics.jagger.util.Decision;
5 
6 import java.util.Date;
7 
16 public class TestEntity {
17 
18  private Long id;
19  private String name;
20  private String description;
21 
23  private String load;
24  private Integer clockValue;
25  private String terminationStrategy;
26  private Date startDate;
27  private Integer testGroupIndex;
28  private Decision testExecutionStatus;
29  private Decision decision;
30  private TaskDataDto taskDataDto;
31 
33  public String getName() {
34  return name;
35  }
36 
37  public void setName(String name) {
38  this.name = name;
39  }
40 
42  public String getLoad() {
43  return load;
44  }
45 
46  public void setLoad(String load) {
47  this.load = load;
48  }
49 
51  public String getTerminationStrategy() {
52  return terminationStrategy;
53  }
54 
55  public void setTerminationStrategy(String terminationStrategy) {
56  this.terminationStrategy = terminationStrategy;
57  }
58 
60  public Long getId() {
61  return id;
62  }
63 
64  public void setId(Long id) {
65  this.id = id;
66  }
67 
69  public String getDescription() {
70  return description;
71  }
72 
73  public void setDescription(String description) {
74  this.description = description;
75  }
76 
78  public Date getStartDate() {
79  return startDate;
80  }
81 
82  public void setStartDate(Date startDate) {
83  this.startDate = startDate;
84  }
85 
87  public Integer getTestGroupIndex() {
88  return testGroupIndex;
89  }
90 
91  public void setTestGroupIndex(Integer testGroupIndex) {
92  this.testGroupIndex = testGroupIndex;
93  }
94 
96  public Decision getTestExecutionStatus() {
97  return testExecutionStatus;
98  }
99 
100  public void setTestExecutionStatus(Decision testExecutionStatus) {
101  this.testExecutionStatus = testExecutionStatus;
102  }
103 
105  public Decision getDecision() {
106  return decision;
107  }
108 
109  public void setDecision(Decision decision) {
110  this.decision = decision;
111  }
112 
114  public Integer getClockValue() {
115  return clockValue;
116  }
117 
118  public void setClockValue(Integer clockValue) {
119  this.clockValue = clockValue;
120  }
121 
123  public TaskDataDto getTaskDataDto() {
124  return taskDataDto;
125  }
126 
127  public void setTaskDataDto(TaskDataDto taskDataDto) {
128  this.taskDataDto = taskDataDto;
129  }
130 
131  @Override
132  public boolean equals(Object o) {
133  if (this == o) return true;
134  if (o == null || getClass() != o.getClass()) return false;
135 
136  TestEntity that = (TestEntity) o;
137 
138  if (clockValue != null ? !clockValue.equals(that.clockValue) : that.clockValue != null) return false;
139  if (decision != that.decision) return false;
140  if (description != null ? !description.equals(that.description) : that.description != null) return false;
141  if (id != null ? !id.equals(that.id) : that.id != null) return false;
142  if (load != null ? !load.equals(that.load) : that.load != null) return false;
143  if (name != null ? !name.equals(that.name) : that.name != null) return false;
144  if (startDate != null ? !startDate.equals(that.startDate) : that.startDate != null) return false;
145  if (taskDataDto != null ? !taskDataDto.equals(that.taskDataDto) : that.taskDataDto != null) return false;
146  if (terminationStrategy != null ? !terminationStrategy.equals(that.terminationStrategy) : that.terminationStrategy != null)
147  return false;
148  if (testExecutionStatus != that.testExecutionStatus) return false;
149  if (testGroupIndex != null ? !testGroupIndex.equals(that.testGroupIndex) : that.testGroupIndex != null)
150  return false;
151 
152  return true;
153  }
154 
155  @Override
156  public int hashCode() {
157  int result = id != null ? id.hashCode() : 0;
158  result = 31 * result + (name != null ? name.hashCode() : 0);
159  result = 31 * result + (description != null ? description.hashCode() : 0);
160  result = 31 * result + (load != null ? load.hashCode() : 0);
161  result = 31 * result + (clockValue != null ? clockValue.hashCode() : 0);
162  result = 31 * result + (terminationStrategy != null ? terminationStrategy.hashCode() : 0);
163  result = 31 * result + (startDate != null ? startDate.hashCode() : 0);
164  result = 31 * result + (testGroupIndex != null ? testGroupIndex.hashCode() : 0);
165  result = 31 * result + (testExecutionStatus != null ? testExecutionStatus.hashCode() : 0);
166  result = 31 * result + (decision != null ? decision.hashCode() : 0);
167  result = 31 * result + (taskDataDto != null ? taskDataDto.hashCode() : 0);
168  return result;
169  }
170 
171  @Override
172  public String toString() {
173  return "TestEntity{" +
174  "id=" + id +
175  ", name='" + name + '\'' +
176  ", description='" + description + '\'' +
177  ", load='" + load + '\'' +
178  ", clockValue=" + clockValue +
179  ", terminationStrategy='" + terminationStrategy + '\'' +
180  ", startDate=" + startDate +
181  ", testGroupIndex=" + testGroupIndex +
182  ", testExecutionStatus=" + testExecutionStatus +
183  ", decision=" + decision +
184  ", taskDataDto=" + taskDataDto +
185  '}';
186  }
187 }