@Test public void buildTest() throws SAXException { GraphicAdapter graphicAdapter = new DummyGraphicAdapter(); AttributesImpl attributesImpl = new AttributesImpl(); attributesImpl.addAttribute(null, null, CircleBuilder.RADIUS, null, String.valueOf(RADIUS)); attributesImpl.addAttribute(null, null, CircleBuilder.SCALE_RADIUS, null, String.valueOf(SCALE_RADIUS)); attributesImpl.addAttribute(null, null, CircleBuilder.STROKE_WIDTH, null, String.valueOf(STROKE_WIDTH)); CircleBuilder circleBuilder = new CircleBuilder(graphicAdapter, "circle", attributesImpl, LEVEL); Assert.assertEquals(LEVEL, circleBuilder.level); Assert.assertEquals(RADIUS, circleBuilder.radius.floatValue(), 0); Assert.assertEquals(SCALE_RADIUS, circleBuilder.scaleRadius); Assert.assertEquals(STROKE_WIDTH, circleBuilder.strokeWidth, 0); Assert.assertNotNull(circleBuilder.build()); }
public Circle build() { return new Circle(this); }
CircleBuilder { public Circle build() { return new Circle(this); } }
CircleBuilder { public Circle build() { return new Circle(this); } CircleBuilder(GraphicAdapter graphicAdapter, String elementName, Attributes attributes, int level); }
CircleBuilder { public Circle build() { return new Circle(this); } CircleBuilder(GraphicAdapter graphicAdapter, String elementName, Attributes attributes, int level); Circle build(); }
CircleBuilder { public Circle build() { return new Circle(this); } CircleBuilder(GraphicAdapter graphicAdapter, String elementName, Attributes attributes, int level); Circle build();  }