@Test public void checkRenderBoundary() { final double WIDTH = 100.0; final double HEIGHT = 200.0; final GridBoundaryRenderContext context = new GridBoundaryRenderContext(0, 0, WIDTH, HEIGHT); final RendererCommand command = renderer.renderGridBoundary(context); assertNotNull(command); assertRenderingCommands(Collections.singletonList(command), RenderGridBoundaryCommand.class); command.execute(rc); final ArgumentCaptor<Rectangle> boundaryCaptor = ArgumentCaptor.forClass(Rectangle.class); verify(parent).add(boundaryCaptor.capture()); assertRenderedRectangle(boundaryCaptor.getValue(), WIDTH, HEIGHT); }
@Test public void checkRenderBoundary() { final double WIDTH = 100.0; final double HEIGHT = 200.0; final GridBoundaryRenderContext context = new GridBoundaryRenderContext(0, 0, WIDTH, HEIGHT); final RendererCommand command = renderer.renderGridBoundary(context); assertNotNull(command); assertRenderingCommands(Collections.singletonList(command), RenderGridBoundaryCommand.class); command.execute(rc); final ArgumentCaptor<Rectangle> boundaryCaptor = ArgumentCaptor.forClass(Rectangle.class); verify(parent).add(boundaryCaptor.capture()); assertRenderedRectangle(boundaryCaptor.getValue(), WIDTH, HEIGHT); }
@Test public void checkRenderBoundary() { final double WIDTH = 100.0; final double HEIGHT = 200.0; final GridBoundaryRenderContext context = new GridBoundaryRenderContext(0, 0, WIDTH, HEIGHT); final RendererCommand command = renderer.renderGridBoundary(context); assertNotNull(command); assertRenderingCommands(Collections.singletonList(command), RenderGridBoundaryCommand.class); command.execute(rc); verify(parent, never()).add(anyObject()); }
@Test public void checkRenderBoundary() { final double WIDTH = 100.0; final double HEIGHT = 200.0; final GridBoundaryRenderContext context = new GridBoundaryRenderContext(0, 0, WIDTH, HEIGHT); final RendererCommand command = renderer.renderGridBoundary(context); assertNotNull(command); assertRenderingCommands(Collections.singletonList(command), RenderGridBoundaryCommand.class); command.execute(rc); verify(parent, never()).add(anyObject()); }