Skip to content

Commit 86200bf

Browse files
committed
Added test assertion
1 parent 46677e0 commit 86200bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/codegen-generated-classes-test/src/test/java/software/amazon/awssdk/services/BusinessMetricsUserAgentTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,5 +197,9 @@ void validate_serviceUserAgent_format() {
197197

198198
String userAgent = assertAndGetUserAgentString();
199199
assertThat(userAgent).contains("AmazonProtocolRestJson#" + ServiceVersionInfo.VERSION);
200+
String version = ServiceVersionInfo.VERSION;
201+
assertThat(ServiceVersionInfo.VERSION.endsWith(".x") ||
202+
ServiceVersionInfo.VERSION.endsWith(".x-SNAPSHOT")).isTrue();
200203
}
204+
201205
}

0 commit comments

Comments
 (0)