File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
core/aws-core/src/main/java/software/amazon/awssdk/awscore/endpoints
test/codegen-generated-classes-test/src/test/java/software/amazon/awssdk/services Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public final class AwsEndpointAttribute {
3434 EndpointAttributeKey .forList ("AuthSchemes" );
3535
3636 /**
37- * Business Metric values for the endpoint.
37+ * Business Metric values to be added to the user-agent for the endpoint.
3838 */
3939 public static final EndpointAttributeKey <List <String >> METRIC_VALUES =
4040 EndpointAttributeKey .forList ("MetricValues" );
Original file line number Diff line number Diff line change 1717
1818import static org .assertj .core .api .Assertions .assertThat ;
1919import static org .assertj .core .api .Assertions .assertThatThrownBy ;
20- import static org .hamcrest .Matchers .containsInAnyOrder ;
2120import static org .junit .Assert .assertNotNull ;
2221import static org .junit .Assert .assertTrue ;
2322import static org .mockito .ArgumentMatchers .any ;
@@ -83,7 +82,7 @@ void endpointMetricValuesAreAddedToUserAgent() {
8382
8483 String userAgent = assertAndGetUserAgentString ();
8584 Matcher businessMetricMatcher = Pattern .compile ("m/([^\\ s]+)" ).matcher (userAgent );
86- assertTrue (businessMetricMatcher .matches ());
85+ assertTrue (businessMetricMatcher .find ());
8786 assertNotNull (businessMetricMatcher .group (1 ));
8887 Set <String > metrics = new HashSet <>(Arrays .asList ((businessMetricMatcher .group (1 ).split ("," ))));
8988 assertTrue (metrics .containsAll (Arrays .asList ("O" , "K" )));
You can’t perform that action at this time.
0 commit comments