Compare commits

..
Author SHA1 Message Date
aoezyetimoglu 95b351d3fe Testcommit 2021-04-15 16:26:47 +02:00
2 changed files with 1 additions and 6 deletions
@@ -121,12 +121,6 @@ public class SectionsBuilderService {
}
}
if (paragraphMap.isEmpty()) {
Paragraph paragraph = new Paragraph();
document.getParagraphs().add(paragraph);
paragraphMap.computeIfAbsent(1, x -> new TreeSet<>()).add(paragraph);
}
for (Page page : document.getPages()) {
for (PdfImage image : page.getImages()) {
SortedSet<Paragraph> paragraphsOnPage = paragraphMap.get(page.getPageNumber());
@@ -151,6 +151,7 @@ public class RedactionIntegrationTest {
@Before
public void stubClients() {
//Testkommentar
when(rulesClient.getVersion(TEST_RULESET_ID)).thenReturn(0L);
when(rulesClient.getRules(TEST_RULESET_ID)).thenReturn(new RulesResponse(RULES));