SmartlingClient { public Items<StringInfo> getSourceStrings(String projectId, String fileUri, Integer offset, Integer limit) throws SmartlingClientException { try { SourceStringsResponse sourceStringsResponse = oAuth2RestTemplate.getForObject( API_SOURCE_STRINGS, SourceStringsResponse.class, projectId, fileUri, offset, limit); throwExceptionOnError(sourceStringsResponse, ERROR_CANT_GET_SOURCE_STRINGS); return sourceStringsResponse.getData(); } catch(HttpClientErrorException e) { throw wrapIntoSmartlingException(e, ERROR_CANT_GET_SOURCE_STRINGS); } } 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 testGetSourceStrings() throws SmartlingClientException { Assume.assumeNotNull(smartlingTestConfig.projectId); Assume.assumeNotNull(smartlingTestConfig.fileUri); logger.debug("Test getSourceStrings"); Items<StringInfo> sourceStrings = smartlingClient.getSourceStrings( smartlingTestConfig.projectId, smartlingTestConfig.fileUri, 0, 500); sourceStrings.getItems().stream().map(item -> item.getHashcode()) .forEach(logger::debug); }