Skip to content

Commit b5e202f

Browse files
committed
Move query exception handling test into existing testExceptionHandling integ test
1 parent a861894 commit b5e202f

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

services/cloudwatch/src/it/java/software/amazon/awssdk/services/cloudwatch/CloudWatchIntegrationTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -372,16 +372,6 @@ public void testExceptionHandling() throws Exception {
372372
cloudwatch.getMetricStatistics(GetMetricStatisticsRequest.builder()
373373
.namespace("fake-namespace").build());
374374
fail("Expected an SdkServiceException, but wasn't thrown");
375-
} catch (SdkServiceException e) {
376-
assertThat(e, isValidSdkServiceException());
377-
}
378-
}
379-
380-
@Test
381-
public void testQueryCompatibleExceptionHandling() {
382-
try {
383-
cloudwatch.getMetricStatistics(GetMetricStatisticsRequest.builder().namespace("foo").statistics(Statistic.AVERAGE).build());
384-
fail("Expected a MissingRequiredParameterException, but wasn't thrown");
385375
} catch (MissingRequiredParameterException e) {
386376
// There is a strong contract on the value of these fields, and they should never change unexpectedly
387377
assertEquals("MissingParameter", e.awsErrorDetails().errorCode());

0 commit comments

Comments
 (0)