@Test public void testProcessPushTranslations() throws Exception { List<SmartlingFile> files = fileList(5); String requestId = UUID.randomUUID().toString(); SmartlingOptions smartlingOptions = SmartlingOptions.parseList( ImmutableList.of("dry-run=true", "request-id=" + requestId)); processor.processPushTranslations(files, smartlingOptions); verify(s3BlobStorage).put( nameCaptor.capture(), byteArrayCaptor.capture(), retentionCaptor.capture()); assertThat(nameCaptor.getValue()).contains(requestId); assertThat(nameCaptor.getValue()).contains("_push_"); assertThat(retentionCaptor.getValue()).isEqualTo(Retention.MIN_1_DAY); assertThat(byteArrayCaptor.getValue()).isNotEmpty(); List<SmartlingFile> smartlingFiles = readFilesFromZipBytes(byteArrayCaptor.getValue()); assertThat(smartlingFiles).extracting("fileName", "fileContent") .containsExactlyInAnyOrder( tuple(files.get(0).getFileName(), files.get(0).getFileContent()), tuple(files.get(1).getFileName(), files.get(1).getFileContent()), tuple(files.get(2).getFileName(), files.get(2).getFileContent()), tuple(files.get(3).getFileName(), files.get(3).getFileContent()), tuple(files.get(4).getFileName(), files.get(4).getFileContent())); }
public String processPushTranslations(List<SmartlingFile> files, SmartlingOptions options){ return processAction(files, options, "push_translations"); }
SmartlingResultProcessor { public String processPushTranslations(List<SmartlingFile> files, SmartlingOptions options){ return processAction(files, options, "push_translations"); } }
SmartlingResultProcessor { public String processPushTranslations(List<SmartlingFile> files, SmartlingOptions options){ return processAction(files, options, "push_translations"); }  }
SmartlingResultProcessor { public String processPushTranslations(List<SmartlingFile> files, SmartlingOptions options){ return processAction(files, options, "push_translations"); }  String processPush(List<SmartlingFile> files,
                              SmartlingOptions options); String processPushTranslations(List<SmartlingFile> files,
                                          SmartlingOptions options); }
SmartlingResultProcessor { public String processPushTranslations(List<SmartlingFile> files, SmartlingOptions options){ return processAction(files, options, "push_translations"); }  String processPush(List<SmartlingFile> files,
                              SmartlingOptions options); String processPushTranslations(List<SmartlingFile> files,
                                          SmartlingOptions options);  }