File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
services/cloudwatch/src/it/java/software/amazon/awssdk/services/cloudwatch Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff 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 ());
You can’t perform that action at this time.
0 commit comments