DefaultBreadcrumbsPresenter implements BreadcrumbPresenter { public void setup(final String label, final boolean removeDeepLevelBreadcrumbsAfterActivation, final Command selectCommand) { this.selectCommand = selectCommand; this.removeDeepLevelBreadcrumbsAfterActivation = removeDeepLevelBreadcrumbsAfterActivation; view.setup(label); if (selectCommand == null) { view.setNoAction(); } } @Inject  DefaultBreadcrumbsPresenter(final View view); @PostConstruct void init(); void setup(final String label,
                      final boolean removeDeepLevelBreadcrumbsAfterActivation,
                      final Command selectCommand); boolean hasToRemoveDeepLevelBreadcrumbsAfterActivation(); @Override void activate(); @Override void deactivate(); @Override View getView(); void onClick();  }
@Test public void setupWithActionTest() { final Command selectCommand = () -> {}; presenter.setup("label", true, selectCommand); verify(view).setup("label"); verify(view, never()).setNoAction(); }
@Test public void setupWithNoActionTest() { presenter.setup("label", true, null); verify(view).setup("label"); verify(view).setNoAction(); }