@Test public void testSetNavigationBarListener() { final NavigationBarListener listener = mock(NavigationBarListener.class); NavigationBarMixin mixin = new NavigationBarMixin(mTemplateLayout); mixin.setNavigationBarListener(listener); mNavigationBar.getNextButton().performClick(); verify(listener).onNavigateNext(); mNavigationBar.getBackButton().performClick(); verify(listener).onNavigateBack(); }
public void setNavigationBarListener(NavigationBarListener listener) { getNavigationBar().setNavigationBarListener(listener); }
NavigationBarMixin implements Mixin { public void setNavigationBarListener(NavigationBarListener listener) { getNavigationBar().setNavigationBarListener(listener); } }
NavigationBarMixin implements Mixin { public void setNavigationBarListener(NavigationBarListener listener) { getNavigationBar().setNavigationBarListener(listener); } NavigationBarMixin(TemplateLayout layout); }
NavigationBarMixin implements Mixin { public void setNavigationBarListener(NavigationBarListener listener) { getNavigationBar().setNavigationBarListener(listener); } NavigationBarMixin(TemplateLayout layout); NavigationBar getNavigationBar(); void setNextButtonText(int text); void setNextButtonText(CharSequence text); CharSequence getNextButtonText(); void setNavigationBarListener(NavigationBarListener listener); }
NavigationBarMixin implements Mixin { public void setNavigationBarListener(NavigationBarListener listener) { getNavigationBar().setNavigationBarListener(listener); } NavigationBarMixin(TemplateLayout layout); NavigationBar getNavigationBar(); void setNextButtonText(int text); void setNextButtonText(CharSequence text); CharSequence getNextButtonText(); void setNavigationBarListener(NavigationBarListener listener);  }