@Test public void testReadFromTargetTextUnitsWithoutPluralsRemovesBadCharacters() { mapper = new AndroidStringDocumentMapper("_", assetDelimiter); textUnits.add(targetTextUnitDTO(124L, "name1", "test" + '\u001D' + "content1", "comment1", "my/path1", null, null)); document = mapper.readFromTargetTextUnits(textUnits); assertThat(document).isNotNull(); assertThat(document.getPlurals()).isEmpty(); assertThat(document.getSingulars()).hasSize(1); AndroidSingular singular = document.getSingulars().get(0); assertThat(singular.getName()).isEqualTo("my/path1#@#name1"); assertThat(singular.getContent()).isEqualTo("testcontent1"); }
public AndroidStringDocument readFromTargetTextUnits(List<TextUnitDTO> textUnits) { return readFromTextUnits(textUnits, false); }
AndroidStringDocumentMapper { public AndroidStringDocument readFromTargetTextUnits(List<TextUnitDTO> textUnits) { return readFromTextUnits(textUnits, false); } }
AndroidStringDocumentMapper { public AndroidStringDocument readFromTargetTextUnits(List<TextUnitDTO> textUnits) { return readFromTextUnits(textUnits, false); } AndroidStringDocumentMapper(String pluralSeparator,
                                       String assetDelimiter,
                                       String locale,
                                       String repositoryName);  AndroidStringDocumentMapper(String pluralSeparator, String assetDelimiter); }
AndroidStringDocumentMapper { public AndroidStringDocument readFromTargetTextUnits(List<TextUnitDTO> textUnits) { return readFromTextUnits(textUnits, false); } 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 AndroidStringDocument readFromTargetTextUnits(List<TextUnitDTO> textUnits) { return readFromTextUnits(textUnits, false); } 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);  }