@Test public void testMapToTextUnitsFromEmptyDocument() { mapper = new AndroidStringDocumentMapper("", assetDelimiter); document = new AndroidStringDocument(); textUnits = mapper.mapToTextUnits(document); assertThat(textUnits).isEmpty(); }
public List<TextUnitDTO> mapToTextUnits(AndroidStringDocument document) { return mapToTextUnitStream(document).collect(Collectors.toList()); }
AndroidStringDocumentMapper { public List<TextUnitDTO> mapToTextUnits(AndroidStringDocument document) { return mapToTextUnitStream(document).collect(Collectors.toList()); } }
AndroidStringDocumentMapper { public List<TextUnitDTO> mapToTextUnits(AndroidStringDocument document) { return mapToTextUnitStream(document).collect(Collectors.toList()); } AndroidStringDocumentMapper(String pluralSeparator,
                                       String assetDelimiter,
                                       String locale,
                                       String repositoryName);  AndroidStringDocumentMapper(String pluralSeparator, String assetDelimiter); }
AndroidStringDocumentMapper { public List<TextUnitDTO> mapToTextUnits(AndroidStringDocument document) { return mapToTextUnitStream(document).collect(Collectors.toList()); } AndroidStringDocumentMapper(String pluralSeparator,
                                       String assetDelimiter,
                                       String locale,
                                       String repositoryName);  AndroidStringDocumentMapper(String pluralSeparator, String assetDelimiter); AndroidStringDocument readFromTextUnits(List<TextUnitDTO> textUnits, boolean useSource); AndroidStringDocument readFromSourceTextUnits(List<TextUnitDTO> textUnits); AndroidStringDocument readFromTargetTextUnits(List<TextUnitDTO> textUnits); List<TextUnitDTO> mapToTextUnits(AndroidStringDocument document); Stream<TextUnitDTO> mapToTextUnitStream(AndroidStringDocument document); }
AndroidStringDocumentMapper { public List<TextUnitDTO> mapToTextUnits(AndroidStringDocument document) { return mapToTextUnitStream(document).collect(Collectors.toList()); } AndroidStringDocumentMapper(String pluralSeparator,
                                       String assetDelimiter,
                                       String locale,
                                       String repositoryName);  AndroidStringDocumentMapper(String pluralSeparator, String assetDelimiter); AndroidStringDocument readFromTextUnits(List<TextUnitDTO> textUnits, boolean useSource); AndroidStringDocument readFromSourceTextUnits(List<TextUnitDTO> textUnits); AndroidStringDocument readFromTargetTextUnits(List<TextUnitDTO> textUnits); List<TextUnitDTO> mapToTextUnits(AndroidStringDocument document); Stream<TextUnitDTO> mapToTextUnitStream(AndroidStringDocument document);  }