@Test public void paintsCellsWithExpectedConfiguration() { gameOfLifeDrawer = GameOfLifeDrawer.newInstance(rainbowDrawer); verify(rainbowDrawer).smooth(); verify(rainbowDrawer).noStroke(); verify(rainbowDrawer).fill(ALIVE_COLOR); }
public static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer) { configure(rainbowDrawer); return new GameOfLifeDrawer(rainbowDrawer); }
GameOfLifeDrawer { public static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer) { configure(rainbowDrawer); return new GameOfLifeDrawer(rainbowDrawer); } }
GameOfLifeDrawer { public static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer) { configure(rainbowDrawer); return new GameOfLifeDrawer(rainbowDrawer); } @VisibleForTesting  GameOfLifeDrawer(RainbowDrawer rainbowDrawer); }
GameOfLifeDrawer { public static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer) { configure(rainbowDrawer); return new GameOfLifeDrawer(rainbowDrawer); } @VisibleForTesting  GameOfLifeDrawer(RainbowDrawer rainbowDrawer); static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer); }
GameOfLifeDrawer { public static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer) { configure(rainbowDrawer); return new GameOfLifeDrawer(rainbowDrawer); } @VisibleForTesting  GameOfLifeDrawer(RainbowDrawer rainbowDrawer); static GameOfLifeDrawer newInstance(RainbowDrawer rainbowDrawer);  }