@Test public void shouldGetNonFullSupplyHeader() throws Exception { when(messageService.message("label.non.full.supply.products")).thenReturn("Non-Full supply product(s)"); Paragraph nonFullSupplyHeader = requisitionPdfModel.getNonFullSupplyHeader(); assertThat(nonFullSupplyHeader.getContent(), is("Non-Full supply product(s)")); }
public Paragraph getNonFullSupplyHeader() { return new Paragraph(messageService.message("label.non.full.supply.products"), H2_FONT); }
RequisitionPdfModel { public Paragraph getNonFullSupplyHeader() { return new Paragraph(messageService.message("label.non.full.supply.products"), H2_FONT); } }
RequisitionPdfModel { public Paragraph getNonFullSupplyHeader() { return new Paragraph(messageService.message("label.non.full.supply.products"), H2_FONT); } RequisitionPdfModel(Map<String, Object> model, MessageService messageService, ConfigurationSettingService configService); }
RequisitionPdfModel { public Paragraph getNonFullSupplyHeader() { return new Paragraph(messageService.message("label.non.full.supply.products"), H2_FONT); } 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 Paragraph getNonFullSupplyHeader() { return new Paragraph(messageService.message("label.non.full.supply.products"), H2_FONT); } 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; }