|
1 | 1 | package com.zebrunner.agent.core.registrar.descriptor;
|
2 | 2 |
|
| 3 | +import lombok.AllArgsConstructor; |
| 4 | +import lombok.Builder; |
3 | 5 | import lombok.Getter;
|
4 | 6 | import lombok.RequiredArgsConstructor;
|
5 | 7 | import lombok.Setter;
|
6 | 8 | import lombok.ToString;
|
7 | 9 |
|
8 | 10 | import java.lang.reflect.Method;
|
9 | 11 | import java.time.OffsetDateTime;
|
| 12 | +import java.util.List; |
10 | 13 |
|
11 | 14 | /**
|
12 | 15 | * Descriptor of test start event. Captures initial test data, such as its name, class and corresponding method,
|
13 | 16 | * test maintainer and start time
|
14 | 17 | */
|
15 | 18 | @Getter
|
| 19 | +@Builder |
16 | 20 | @ToString
|
| 21 | +@AllArgsConstructor |
17 | 22 | @RequiredArgsConstructor
|
18 | 23 | public class TestStartDescriptor {
|
19 | 24 |
|
@@ -61,8 +66,23 @@ public class TestStartDescriptor {
|
61 | 66 | */
|
62 | 67 | private final Integer argumentsIndex;
|
63 | 68 |
|
64 |
| - public TestStartDescriptor(String uuid, String name, Class<?> testClass, Method testMethod, Integer argumentsIndex) { |
65 |
| - this(uuid, name, OffsetDateTime.now(), testClass, testMethod, argumentsIndex); |
| 69 | + /** |
| 70 | + * Test groups that test belongs to. Test groups allow you to group tests depending on specific criteria and manage them |
| 71 | + * more effectively. |
| 72 | + */ |
| 73 | + private final List<String> testGroups; |
| 74 | + |
| 75 | + public TestStartDescriptor(String correlationData, String name, Class<?> testClass, Method testMethod, Integer argumentsIndex) { |
| 76 | + this(correlationData, name, OffsetDateTime.now(), testClass, testMethod, argumentsIndex, List.of()); |
| 77 | + } |
| 78 | + |
| 79 | + public TestStartDescriptor(String correlationData, |
| 80 | + String name, |
| 81 | + OffsetDateTime startedAt, |
| 82 | + Class<?> testClass, |
| 83 | + Method testMethod, |
| 84 | + Integer argumentsIndex) { |
| 85 | + this(correlationData, name, startedAt, testClass, testMethod, argumentsIndex, List.of()); |
66 | 86 | }
|
67 | 87 |
|
68 | 88 | }
|
0 commit comments