CodabarBean extends AbstractBarcodeBean { @Override public void generateBarcode(CanvasProvider canvas, String msg) { if ((msg == null) || (msg.length() == 0)) { throw new NullPointerException("Parameter msg must not be empty"); } final ClassicBarcodeLogicHandler handler = new DefaultCanvasLogicHandler(this, new Canvas(canvas)); final CodabarLogicImpl impl = new CodabarLogicImpl(getChecksumMode(), isDisplayStartStop()); impl.generateBarcodeLogic(handler, msg); } CodabarBean(); ChecksumMode getChecksumMode(); void setChecksumMode(ChecksumMode mode); double getWideFactor(); void setWideFactor(double value); @Override double getBarWidth(int width); boolean isDisplayStartStop(); void setDisplayStartStop(boolean value); @Override void generateBarcode(CanvasProvider canvas, String msg); @Override BarcodeDimension calcDimensions(String msg); @Override Collection<String> getAdditionalNames(); @Override String getId();  }
@Test public void testGenerateBarcode() { System.out.println("generateBarcode"); CanvasProvider canvas = new SVGCanvasProvider(Orientation.ZERO); String msg = "12345"; CodabarBean instance = new CodabarBean(); instance.generateBarcode(canvas, msg); }