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 {
34
34
EndpointAttributeKey .forList ("AuthSchemes" );
35
35
36
36
/**
37
- * Business Metric values for the endpoint.
37
+ * Business Metric values to be added to the user-agent for the endpoint.
38
38
*/
39
39
public static final EndpointAttributeKey <List <String >> METRIC_VALUES =
40
40
EndpointAttributeKey .forList ("MetricValues" );
Original file line number Diff line number Diff line change 17
17
18
18
import static org .assertj .core .api .Assertions .assertThat ;
19
19
import static org .assertj .core .api .Assertions .assertThatThrownBy ;
20
- import static org .hamcrest .Matchers .containsInAnyOrder ;
21
20
import static org .junit .Assert .assertNotNull ;
22
21
import static org .junit .Assert .assertTrue ;
23
22
import static org .mockito .ArgumentMatchers .any ;
@@ -83,7 +82,7 @@ void endpointMetricValuesAreAddedToUserAgent() {
83
82
84
83
String userAgent = assertAndGetUserAgentString ();
85
84
Matcher businessMetricMatcher = Pattern .compile ("m/([^\\ s]+)" ).matcher (userAgent );
86
- assertTrue (businessMetricMatcher .matches ());
85
+ assertTrue (businessMetricMatcher .find ());
87
86
assertNotNull (businessMetricMatcher .group (1 ));
88
87
Set <String > metrics = new HashSet <>(Arrays .asList ((businessMetricMatcher .group (1 ).split ("," ))));
89
88
assertTrue (metrics .containsAll (Arrays .asList ("O" , "K" )));
You can’t perform that action at this time.
0 commit comments