Skip to content

Commit

Permalink
Fix typos (#730)
Browse files Browse the repository at this point in the history
A few small fixes, no functional changes.
  • Loading branch information
thpierce authored Jan 29, 2024
1 parent c1a8428 commit cf3c27a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
public class AwsSpanProcessingUtilTest {
private static final String DEFAULT_PATH_VALUE = "/";
private static final String UNKNOWN_OPERATION = "UnknownOperation";
private String INTERNAL_OPERATIONN = "InternalOperation";
private static final String INTERNAL_OPERATION = "InternalOperation";

private Attributes attributesMock;
private SpanData spanDataMock;
Expand Down Expand Up @@ -62,7 +62,7 @@ public void testGetIngressOperationWithNotServer() {
when(spanDataMock.getName()).thenReturn(validName);
when(spanDataMock.getKind()).thenReturn(SpanKind.CLIENT);
String actualOperation = AwsSpanProcessingUtil.getIngressOperation(spanDataMock);
assertThat(actualOperation).isEqualTo(INTERNAL_OPERATIONN);
assertThat(actualOperation).isEqualTo(INTERNAL_OPERATION);
}

@Test
Expand Down Expand Up @@ -123,7 +123,7 @@ public void testGetEgressOperationUseInternalOperation() {
when(spanDataMock.getName()).thenReturn(invalidName);
when(spanDataMock.getKind()).thenReturn(SpanKind.CONSUMER);
String actualOperation = AwsSpanProcessingUtil.getEgressOperation(spanDataMock);
assertThat(actualOperation).isEqualTo(AwsSpanProcessingUtil.INTERNAL_OPERATION);
assertThat(actualOperation).isEqualTo(INTERNAL_OPERATION);
}

@Test
Expand Down Expand Up @@ -158,14 +158,14 @@ public void testExtractAPIPathValueNoSlash() {
}

@Test
public void testExtractAPIPathValueNOnlySlash() {
public void testExtractAPIPathValueOnlySlash() {
String invalidTarget = "/";
String pathValue = AwsSpanProcessingUtil.extractAPIPathValue(invalidTarget);
assertThat(pathValue).isEqualTo(DEFAULT_PATH_VALUE);
}

@Test
public void testExtractAPIPathValueNOnlySlashAtEnd() {
public void testExtractAPIPathValueOnlySlashAtEnd() {
String invalidTarget = "users/";
String pathValue = AwsSpanProcessingUtil.extractAPIPathValue(invalidTarget);
assertThat(pathValue).isEqualTo(DEFAULT_PATH_VALUE);
Expand Down

0 comments on commit cf3c27a

Please sign in to comment.