SmartlingClient { public Items<File> getFiles(String projectId) { try { FilesResponse filesResponse = oAuth2RestTemplate.getForObject(API_FILES_LIST, FilesResponse.class, projectId); throwExceptionOnError(filesResponse, ERROR_CANT_GET_FILES); return filesResponse.getData(); } catch (HttpClientErrorException httpClientErrorException) { throw wrapIntoSmartlingException(httpClientErrorException, ERROR_CANT_GET_FILES); } } SmartlingClient(OAuth2RestTemplate oAuth2RestTemplate); Stream<StringInfo> getStringInfos(String projectId, String fileUri); Items<File> getFiles(String projectId); String downloadFile(String projectId, String locale, String fileUri, boolean includeOriginalStrings, RetrievalType retrievalType); String downloadPublishedFile(String projectId, String locale, String fileUri, boolean includeOriginalStrings); void deleteFile(String projectId, String fileUri); FileUploadResponse uploadFile(String projectId, String fileUri, String fileType, String fileContent, String placeholderFormat, String placeholderFormatCustom); FileUploadResponse uploadLocalizedFile(String projectId,
                                                  String fileUri,
                                                  String fileType,
                                                  String localeId,
                                                  String fileContent,
                                                  String placeholderFormat,
                                                  String placeholderFormatCustom); Items<StringInfo> getSourceStrings(String projectId, String fileUri, Integer offset, Integer limit); ContextUpload uploadContext(String projectId, String name, byte[] content); void createBindings(Bindings bindings, String projectId);  }
@Test public void testGetFiles() { Assume.assumeNotNull(smartlingTestConfig.projectId); Items<File> files = smartlingClient.getFiles(smartlingTestConfig.projectId); files.getItems().stream().forEach( f -> logger.debug(f.getFileUri()) ); }