-
Notifications
You must be signed in to change notification settings - Fork 332
Expand file tree
/
Copy pathTestFQN.java
More file actions
48 lines (40 loc) · 1.07 KB
/
TestFQN.java
File metadata and controls
48 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package datadog.trace.api.civisibility.config;
import datadog.trace.util.HashingUtils;
import java.util.Objects;
/**
* Fully Qualified Name: uniquely identifies a test case within a module by name. Multiple
* executions of the same test case (for example when retries are done) will have the same FQN.
*/
public class TestFQN {
private final String suite;
private final String name;
public TestFQN(String suite, String name) {
this.suite = suite;
this.name = name;
}
public String getSuite() {
return suite;
}
public String getName() {
return name;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TestFQN that = (TestFQN) o;
return Objects.equals(suite, that.suite) && Objects.equals(name, that.name);
}
@Override
public int hashCode() {
return HashingUtils.hash(suite, name);
}
@Override
public String toString() {
return "TestFQN{" + "suite='" + suite + '\'' + ", name='" + name + '\'' + '}';
}
}