@Test public void buildTest() throws SAXException { GraphicAdapter graphicAdapter = new DummyGraphicAdapter(); AttributesImpl attributesImpl = new AttributesImpl(); attributesImpl.addAttribute(null, null, CaptionBuilder.DY, null, String.valueOf(DY)); attributesImpl.addAttribute(null, null, CaptionBuilder.FONT_SIZE, null, String.valueOf(FONT_SIZE)); attributesImpl.addAttribute(null, null, CaptionBuilder.K, null, K); CaptionBuilder captionBuilder = new CaptionBuilder(graphicAdapter, "caption", attributesImpl); Assert.assertEquals(DY, captionBuilder.dy, 0); Assert.assertEquals(FONT_SIZE, captionBuilder.fontSize, 0); Assert.assertEquals(TextKey.getInstance(K), captionBuilder.textKey); Assert.assertNotNull(captionBuilder.build()); }
public Caption build() { return new Caption(this); }
CaptionBuilder { public Caption build() { return new Caption(this); } }
CaptionBuilder { public Caption build() { return new Caption(this); } CaptionBuilder(GraphicAdapter graphicAdapter, String elementName, Attributes attributes); }
CaptionBuilder { public Caption build() { return new Caption(this); } CaptionBuilder(GraphicAdapter graphicAdapter, String elementName, Attributes attributes); Caption build(); }
CaptionBuilder { public Caption build() { return new Caption(this); } CaptionBuilder(GraphicAdapter graphicAdapter, String elementName, Attributes attributes); Caption build();  }