|
34 | 34 | public class AwsSpanProcessingUtilTest {
|
35 | 35 | private static final String DEFAULT_PATH_VALUE = "/";
|
36 | 36 | private static final String UNKNOWN_OPERATION = "UnknownOperation";
|
37 |
| - private String INTERNAL_OPERATIONN = "InternalOperation"; |
| 37 | + private static final String INTERNAL_OPERATION = "InternalOperation"; |
38 | 38 |
|
39 | 39 | private Attributes attributesMock;
|
40 | 40 | private SpanData spanDataMock;
|
@@ -62,7 +62,7 @@ public void testGetIngressOperationWithNotServer() {
|
62 | 62 | when(spanDataMock.getName()).thenReturn(validName);
|
63 | 63 | when(spanDataMock.getKind()).thenReturn(SpanKind.CLIENT);
|
64 | 64 | String actualOperation = AwsSpanProcessingUtil.getIngressOperation(spanDataMock);
|
65 |
| - assertThat(actualOperation).isEqualTo(INTERNAL_OPERATIONN); |
| 65 | + assertThat(actualOperation).isEqualTo(INTERNAL_OPERATION); |
66 | 66 | }
|
67 | 67 |
|
68 | 68 | @Test
|
@@ -123,7 +123,7 @@ public void testGetEgressOperationUseInternalOperation() {
|
123 | 123 | when(spanDataMock.getName()).thenReturn(invalidName);
|
124 | 124 | when(spanDataMock.getKind()).thenReturn(SpanKind.CONSUMER);
|
125 | 125 | String actualOperation = AwsSpanProcessingUtil.getEgressOperation(spanDataMock);
|
126 |
| - assertThat(actualOperation).isEqualTo(AwsSpanProcessingUtil.INTERNAL_OPERATION); |
| 126 | + assertThat(actualOperation).isEqualTo(INTERNAL_OPERATION); |
127 | 127 | }
|
128 | 128 |
|
129 | 129 | @Test
|
@@ -158,14 +158,14 @@ public void testExtractAPIPathValueNoSlash() {
|
158 | 158 | }
|
159 | 159 |
|
160 | 160 | @Test
|
161 |
| - public void testExtractAPIPathValueNOnlySlash() { |
| 161 | + public void testExtractAPIPathValueOnlySlash() { |
162 | 162 | String invalidTarget = "/";
|
163 | 163 | String pathValue = AwsSpanProcessingUtil.extractAPIPathValue(invalidTarget);
|
164 | 164 | assertThat(pathValue).isEqualTo(DEFAULT_PATH_VALUE);
|
165 | 165 | }
|
166 | 166 |
|
167 | 167 | @Test
|
168 |
| - public void testExtractAPIPathValueNOnlySlashAtEnd() { |
| 168 | + public void testExtractAPIPathValueOnlySlashAtEnd() { |
169 | 169 | String invalidTarget = "users/";
|
170 | 170 | String pathValue = AwsSpanProcessingUtil.extractAPIPathValue(invalidTarget);
|
171 | 171 | assertThat(pathValue).isEqualTo(DEFAULT_PATH_VALUE);
|
|
0 commit comments