@Test public void on42CounterItShouldShowMessage() { counterPreferences.setCounter(42); Assert.assertTrue(showMessageLogic.shouldShowMessage()); }
public boolean shouldShowMessage() { return counterPreferences.getCounter() >= 42; }
ShowMessageLogic { public boolean shouldShowMessage() { return counterPreferences.getCounter() >= 42; } }
ShowMessageLogic { public boolean shouldShowMessage() { return counterPreferences.getCounter() >= 42; } ShowMessageLogic(final CounterPreferences counterPreferences); }
ShowMessageLogic { public boolean shouldShowMessage() { return counterPreferences.getCounter() >= 42; } ShowMessageLogic(final CounterPreferences counterPreferences); boolean shouldShowMessage(); }
ShowMessageLogic { public boolean shouldShowMessage() { return counterPreferences.getCounter() >= 42; } ShowMessageLogic(final CounterPreferences counterPreferences); boolean shouldShowMessage();  }