@Test public void testProcessPushThrowsException() { doThrow(new SdkClientException("an exception")).when(s3BlobStorage).put(any(String.class), any(byte[].class), eq(Retention.MIN_1_DAY)); List<SmartlingFile> files = fileList(5); String requestId = UUID.randomUUID().toString(); SmartlingOptions smartlingOptions = SmartlingOptions.parseList( ImmutableList.of("dry-run=true", "request-id=" + requestId)); assertThatThrownBy(() -> processor.processPush(files, smartlingOptions)) .hasMessageContaining("An error ocurred when uploading a push result zip file") .isInstanceOf(RuntimeException.class); }
public String processPush(List<SmartlingFile> files, SmartlingOptions options) { return processAction(files, options, "push"); }
SmartlingResultProcessor { public String processPush(List<SmartlingFile> files, SmartlingOptions options) { return processAction(files, options, "push"); } }
SmartlingResultProcessor { public String processPush(List<SmartlingFile> files, SmartlingOptions options) { return processAction(files, options, "push"); }  }
SmartlingResultProcessor { public String processPush(List<SmartlingFile> files, SmartlingOptions options) { return processAction(files, options, "push"); }  String processPush(List<SmartlingFile> files,
                              SmartlingOptions options); String processPushTranslations(List<SmartlingFile> files,
                                          SmartlingOptions options); }
SmartlingResultProcessor { public String processPush(List<SmartlingFile> files, SmartlingOptions options) { return processAction(files, options, "push"); }  String processPush(List<SmartlingFile> files,
                              SmartlingOptions options); String processPushTranslations(List<SmartlingFile> files,
                                          SmartlingOptions options);  }