@Test public void testPositive(){ File file = mock(File.class); when(file.isFile()).thenReturn(true); when(file.getName()).thenReturn("test.pdf"); List<PdfFileSource> inputList = new ArrayList<PdfFileSource>(); inputList.add(PdfFileSource.newInstanceNoPassword(file)); inputList.add(PdfFileSource.newInstanceNoPassword(file)); List<PdfMergeInput> result = new MultiplePdfMergeInputAdapter(inputList, new MultiplePageRangeSetAdapter("3-5").ranges()).getPdfMergeInputs(); assertEquals(2, result.size()); assertFalse(result.get(0).isAllPages()); assertTrue(result.get(1).isAllPages()); }
public List<PdfMergeInput> getPdfMergeInputs() { return pdfMergeInputs; }
MultiplePdfMergeInputAdapter { public List<PdfMergeInput> getPdfMergeInputs() { return pdfMergeInputs; } }
MultiplePdfMergeInputAdapter { public List<PdfMergeInput> getPdfMergeInputs() { return pdfMergeInputs; } MultiplePdfMergeInputAdapter(List<PdfFileSource> inputFiles, List<Set<PageRange>> pageRanges); }
MultiplePdfMergeInputAdapter { public List<PdfMergeInput> getPdfMergeInputs() { return pdfMergeInputs; } MultiplePdfMergeInputAdapter(List<PdfFileSource> inputFiles, List<Set<PageRange>> pageRanges); List<PdfMergeInput> getPdfMergeInputs(); }
MultiplePdfMergeInputAdapter { public List<PdfMergeInput> getPdfMergeInputs() { return pdfMergeInputs; } MultiplePdfMergeInputAdapter(List<PdfFileSource> inputFiles, List<Set<PageRange>> pageRanges); List<PdfMergeInput> getPdfMergeInputs();  }