AbstractVariableHeightLogicHandler implements ClassicBarcodeLogicHandler { @Override public void endBarcode() { if (bcBean.getMsgPosition() != HumanReadablePlacement.HRP_NONE) { final double texty = getTextY(); DrawingUtil.drawText(canvas, bcBean, formattedMsg, getStartX(), x, texty, this.textAlignment); } } AbstractVariableHeightLogicHandler(HeightVariableBarcodeBean bcBean, Canvas canvas); void setTextAlignment(TextAlignment align); @Override void startBarcode(String msg, String formattedMsg); @Override void endBarcode(); @Override void startBarGroup(BarGroup barGroup, String string); @Override void endBarGroup();  }
@Test public void testEndBarcodeHrpNone() { System.out.println("endBarcode"); String expected = "<svg xmlns=\"http: bean.setMsgPosition(HumanReadablePlacement.HRP_NONE); instance.endBarcode(); assertEquals(expected, SVGCanvasProviderTest.getStringFromDoc(svg.getDOM())); }
@Test public void testEndBarcode() { System.out.println("endBarcode"); String expected = "<svg xmlns=\"http: bean.setMsgPosition(HumanReadablePlacement.HRP_BOTTOM); instance.endBarcode(); assertEquals(expected, SVGCanvasProviderTest.getStringFromDoc(svg.getDOM())); }