@Test public void testThatPaintCellDrawsRectOnCellCoordinates() { gameOfLifeDrawer.paintCellAt(0, 0); verify(rainbowDrawer).rect(0, 0, SCALE_FACTOR, SCALE_FACTOR); }
void paintCellAt(int x, int y) { rainbowDrawer.rect(x * SCALE_FACTOR, y * SCALE_FACTOR, SCALE_FACTOR, SCALE_FACTOR); }
GameOfLifeDrawer { void paintCellAt(int x, int y) { rainbowDrawer.rect(x * SCALE_FACTOR, y * SCALE_FACTOR, SCALE_FACTOR, SCALE_FACTOR); } }
GameOfLifeDrawer { void paintCellAt(int x, int y) { rainbowDrawer.rect(x * SCALE_FACTOR, y * SCALE_FACTOR, SCALE_FACTOR, SCALE_FACTOR); } @VisibleForTesting  GameOfLifeDrawer(RainbowDrawer rainbowDrawer); }
GameOfLifeDrawer { void paintCellAt(int x, int y) { rainbowDrawer.rect(x * SCALE_FACTOR, y * SCALE_FACTOR, SCALE_FACTOR, SCALE_FACTOR); } @VisibleForTesting  GameOfLifeDrawer(RainbowDrawer rainbowDrawer); static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer); }
GameOfLifeDrawer { void paintCellAt(int x, int y) { rainbowDrawer.rect(x * SCALE_FACTOR, y * SCALE_FACTOR, SCALE_FACTOR, SCALE_FACTOR); } @VisibleForTesting  GameOfLifeDrawer(RainbowDrawer rainbowDrawer); static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer);  }