@Test public void shouldGetFullSupplyLineItems() throws Exception { PdfPTable fullSupplyTable = requisitionPdfModel.getFullSupplyTable(); assertRowValues(fullSupplyTable.getRow(0), "Requested Quantity", "stockOutDays", "stock in hand", "quantity received", "beginning balance", "losses and adjustment"); assertRowValues(fullSupplyTable.getRow(1), " "); assertRowValues(fullSupplyTable.getRow(2), "C1"); assertRowValues(fullSupplyTable.getRow(3), "6", "3", "4", "3", "10", "1"); assertThat(fullSupplyTable.getRows().size(), is(requisition.getFullSupplyLineItems().size() + 3)); }
public PdfPTable getFullSupplyTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { return getTableFor(requisition.getFullSupplyLineItems(), true, rnrColumnList); }
RequisitionPdfModel { public PdfPTable getFullSupplyTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { return getTableFor(requisition.getFullSupplyLineItems(), true, rnrColumnList); } }
RequisitionPdfModel { public PdfPTable getFullSupplyTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { return getTableFor(requisition.getFullSupplyLineItems(), true, rnrColumnList); } RequisitionPdfModel(Map<String, Object> model, MessageService messageService, ConfigurationSettingService configService); }
RequisitionPdfModel { public PdfPTable getFullSupplyTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { return getTableFor(requisition.getFullSupplyLineItems(), true, rnrColumnList); } RequisitionPdfModel(Map<String, Object> model, MessageService messageService, ConfigurationSettingService configService); Paragraph getFullSupplyHeader(); Paragraph getNonFullSupplyHeader(); PdfPTable getFullSupplyTable(); PdfPTable getRegimenTable(); PdfPTable getNonFullSupplyTable(); PdfPTable getRequisitionHeader(); PdfPTable getSummary(); Money getTotalCost(Rnr requisition); Paragraph getRegimenHeader(); }
RequisitionPdfModel { public PdfPTable getFullSupplyTable() throws DocumentException, NoSuchFieldException, IllegalAccessException, IOException { return getTableFor(requisition.getFullSupplyLineItems(), true, rnrColumnList); } RequisitionPdfModel(Map<String, Object> model, MessageService messageService, ConfigurationSettingService configService); Paragraph getFullSupplyHeader(); Paragraph getNonFullSupplyHeader(); PdfPTable getFullSupplyTable(); PdfPTable getRegimenTable(); PdfPTable getNonFullSupplyTable(); PdfPTable getRequisitionHeader(); PdfPTable getSummary(); Money getTotalCost(Rnr requisition); Paragraph getRegimenHeader(); static final String LABEL_CURRENCY_SYMBOL; static final float PARAGRAPH_SPACING; static final BaseColor ROW_GREY_BACKGROUND; static final Font H1_FONT; static final SimpleDateFormat DATE_FORMAT; static final int TABLE_SPACING; }