@Test public void testNeedsOnboarding_notAllItems() { when(onboardingItem1.applies()).thenReturn(false); when(onboardingItem2.applies()).thenReturn(false); when(onboardingItem3.applies()).thenReturn(true); assertThat(underTest.needsOnboarding(), is(true)); }
@Override public boolean needsOnboarding() { return !getOnboardingItems().isEmpty(); }
OnboardingManagerImpl extends ComponentSupport implements OnboardingManager { @Override public boolean needsOnboarding() { return !getOnboardingItems().isEmpty(); } }
OnboardingManagerImpl extends ComponentSupport implements OnboardingManager { @Override public boolean needsOnboarding() { return !getOnboardingItems().isEmpty(); } @Inject  OnboardingManagerImpl(final Set<OnboardingItem> onboardingItems,
                               final OnboardingConfiguration onboardingConfiguration); }
OnboardingManagerImpl extends ComponentSupport implements OnboardingManager { @Override public boolean needsOnboarding() { return !getOnboardingItems().isEmpty(); } @Inject  OnboardingManagerImpl(final Set<OnboardingItem> onboardingItems,
                               final OnboardingConfiguration onboardingConfiguration); @Override boolean needsOnboarding(); @Override List<OnboardingItem> getOnboardingItems(); }
OnboardingManagerImpl extends ComponentSupport implements OnboardingManager { @Override public boolean needsOnboarding() { return !getOnboardingItems().isEmpty(); } @Inject  OnboardingManagerImpl(final Set<OnboardingItem> onboardingItems,
                               final OnboardingConfiguration onboardingConfiguration); @Override boolean needsOnboarding(); @Override List<OnboardingItem> getOnboardingItems();  }