@Test public void testThatWhenRestoreLastWorldIsCalledThenItDelegatesToGameOfLife() { world.restoreLastWorld(); verify(gameOfLifeMock).restoreLastWorld(); }
public void restoreLastWorld() { gameOfLife.restoreLastWorld(); }
World extends Rainbow implements RainbowImage.LoadPictureListener { public void restoreLastWorld() { gameOfLife.restoreLastWorld(); } }
World extends Rainbow implements RainbowImage.LoadPictureListener { public void restoreLastWorld() { gameOfLife.restoreLastWorld(); } @VisibleForTesting protected  World(RainbowDrawer rainbowDrawer, RainbowInputController rainbowInputController); }
World extends Rainbow implements RainbowImage.LoadPictureListener { public void restoreLastWorld() { gameOfLife.restoreLastWorld(); } @VisibleForTesting protected  World(RainbowDrawer rainbowDrawer, RainbowInputController rainbowInputController); static World newInstance(); @Override void onSketchSetup(); void startEdition(); void endEdition(); void clear(); @Override void onStep(); @Override void onSketchDestroy(); void restoreLastWorld(); void loadWorldFrom(final Uri image); @Override void onLoadSucceed(RainbowImage image); @Override void onLoadFail(); }
World extends Rainbow implements RainbowImage.LoadPictureListener { public void restoreLastWorld() { gameOfLife.restoreLastWorld(); } @VisibleForTesting protected  World(RainbowDrawer rainbowDrawer, RainbowInputController rainbowInputController); static World newInstance(); @Override void onSketchSetup(); void startEdition(); void endEdition(); void clear(); @Override void onStep(); @Override void onSketchDestroy(); void restoreLastWorld(); void loadWorldFrom(final Uri image); @Override void onLoadSucceed(RainbowImage image); @Override void onLoadFail();  }