AbstractVariableHeightLogicHandler implements ClassicBarcodeLogicHandler { @Override public void startBarcode(String msg, String formattedMsg) { this.formattedMsg = MessagePatternUtil.applyCustomMessagePattern( formattedMsg, bcBean.getPattern()); final BarcodeDimension dim = bcBean.calcDimensions(msg); canvas.establishDimensions(dim); x = getStartX(); } 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 testStartBarcode() { System.out.println("startBarcode"); String expected = "<svg xmlns=\"http: instance.startBarcode("Barcode4J", null); assertEquals(expected, SVGCanvasProviderTest.getStringFromDoc(svg.getDOM())); }