Update usage of Document::getContent to getText
This commit is contained in:
@@ -52,7 +52,7 @@ class PagePdfDocumentReaderTests {
|
||||
|
||||
assertThat(docs).hasSize(4);
|
||||
|
||||
String allText = docs.stream().map(Document::getContent).collect(Collectors.joining(System.lineSeparator()));
|
||||
String allText = docs.stream().map(Document::getText).collect(Collectors.joining(System.lineSeparator()));
|
||||
|
||||
assertThat(allText).doesNotContain(
|
||||
List.of("Page 1 of 4", "Page 2 of 4", "Page 3 of 4", "Page 4 of 4", "PDF Bookmark Sample"));
|
||||
|
||||
Reference in New Issue
Block a user