-
Notifications
You must be signed in to change notification settings - Fork 338
Expand file tree
/
Copy pathRegular.java
More file actions
48 lines (37 loc) · 1.01 KB
/
Regular.java
File metadata and controls
48 lines (37 loc) · 1.01 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.civisibility.execution;
import datadog.trace.api.civisibility.execution.TestExecutionPolicy;
import datadog.trace.api.civisibility.execution.TestStatus;
import datadog.trace.api.civisibility.telemetry.tag.RetryReason;
import javax.annotation.Nullable;
/** Regular test case execution with no alterations. */
public class Regular implements TestExecutionPolicy {
public static final TestExecutionPolicy INSTANCE = new Regular();
private Regular() {}
@Override
public void registerExecution(TestStatus status, long durationMillis) {}
@Override
public boolean wasLastExecution() {
return true;
}
@Override
public boolean applicable() {
return false;
}
@Override
public boolean suppressFailures() {
return false;
}
@Nullable
@Override
public RetryReason currentExecutionRetryReason() {
return null;
}
@Override
public boolean hasFailedAllRetries() {
return false;
}
@Override
public boolean hasSucceededAllRetries() {
return false;
}
}