|
27 | 27 | import static org.mockito.Matchers.any; |
28 | 28 | import static org.mockito.Mockito.*; |
29 | 29 |
|
| 30 | +/** |
| 31 | + * Tests {@link BubbleRenderer} and some of {@link BubbleFormatter}. |
| 32 | + */ |
30 | 33 | public class BubbleRendererTest extends AndroidplotTest { |
31 | 34 |
|
32 | 35 | XYPlot xyPlot; |
@@ -57,18 +60,5 @@ public void testOnRender() throws Exception { |
57 | 60 | xyPlot.addSeries(bs, formatter); |
58 | 61 |
|
59 | 62 | renderer.onRender(canvas, plotArea, bs, formatter, renderStack); |
60 | | - |
61 | | -// CandlestickFormatter formatter = spy(new CandlestickFormatter()); |
62 | | -// CandlestickRenderer renderer = spy((CandlestickRenderer) formatter.getRendererInstance(xyPlot)); |
63 | | -// doReturn(renderer.getClass()).when(formatter).getRendererClass(); |
64 | | -// doReturn(renderer).when(formatter).getRendererInstance(any(XYPlot.class)); |
65 | | -// |
66 | | -// XYSeries openVals = new SimpleXYSeries(SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, "open", 1, 2, 3, 4); |
67 | | -// XYSeries closeVals = new SimpleXYSeries(SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, "open", 1, 2, 3, 4); |
68 | | -// XYSeries highVals = new SimpleXYSeries(SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, "open", 1, 2, 3, 4); |
69 | | -// XYSeries lowVals = new SimpleXYSeries(SimpleXYSeries.ArrayFormat.Y_VALS_ONLY, "open", 1, 2, 3, 4); |
70 | | -// CandlestickMaker.make(xyPlot, formatter, openVals, closeVals, highVals, lowVals); |
71 | | -// |
72 | | -// renderer.onRender(canvas, plotArea, openVals, formatter, renderStack); |
73 | 63 | } |
74 | 64 | } |
0 commit comments