1 package org.apache.maven.surefire.api.event;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.surefire.api.report.RunMode;
23
24 import static org.apache.maven.surefire.api.booter.ForkedProcessEventType.BOOTERCODE_SYSPROPS;
25
26
27
28
29
30
31 public final class SystemPropertyEvent extends Event
32 {
33 private final RunMode runMode;
34 private final Long testRunId;
35 private final String key;
36 private final String value;
37
38 public SystemPropertyEvent( RunMode runMode, Long testRunId, String key, String value )
39 {
40 super( BOOTERCODE_SYSPROPS );
41 this.runMode = runMode;
42 this.testRunId = testRunId;
43 this.key = key;
44 this.value = value;
45 }
46
47 public RunMode getRunMode()
48 {
49 return runMode;
50 }
51
52 public Long getTestRunId()
53 {
54 return testRunId;
55 }
56
57 public String getKey()
58 {
59 return key;
60 }
61
62 public String getValue()
63 {
64 return value;
65 }
66
67 @Override
68 public boolean isControlCategory()
69 {
70 return false;
71 }
72
73 @Override
74 public boolean isConsoleCategory()
75 {
76 return false;
77 }
78
79 @Override
80 public boolean isConsoleErrorCategory()
81 {
82 return false;
83 }
84
85 @Override
86 public boolean isStandardStreamCategory()
87 {
88 return false;
89 }
90
91 @Override
92 public boolean isSysPropCategory()
93 {
94 return true;
95 }
96
97 @Override
98 public boolean isTestCategory()
99 {
100 return false;
101 }
102
103 @Override
104 public boolean isJvmExitError()
105 {
106 return false;
107 }
108 }