@Test public void mergeOptions_optionsAreClearedAfterMerge() { Options initialOptions = uut.options; Options options = new Options(); uut.mergeOptions(options); assertThat(uut.options.sideMenuRootOptions).isNotEqualTo(initialOptions.sideMenuRootOptions); }
@Override public void mergeOptions(Options options) { super.mergeOptions(options); presenter.present(this.options.sideMenuRootOptions); }
SideMenuController extends ParentController<DrawerLayout> { @Override public void mergeOptions(Options options) { super.mergeOptions(options); presenter.present(this.options.sideMenuRootOptions); } }
SideMenuController extends ParentController<DrawerLayout> { @Override public void mergeOptions(Options options) { super.mergeOptions(options); presenter.present(this.options.sideMenuRootOptions); } SideMenuController(Activity activity, ChildControllersRegistry childRegistry, String id, Options initialOptions, SideMenuPresenter sideMenuOptionsPresenter, Presenter presenter); }
SideMenuController extends ParentController<DrawerLayout> { @Override public void mergeOptions(Options options) { super.mergeOptions(options); presenter.present(this.options.sideMenuRootOptions); } SideMenuController(Activity activity, ChildControllersRegistry childRegistry, String id, Options initialOptions, SideMenuPresenter sideMenuOptionsPresenter, Presenter presenter); @Override void sendOnNavigationButtonPressed(String buttonId); @NonNull @Override Collection<ViewController> getChildControllers(); @Override void applyChildOptions(Options options, Component child); @Override void mergeChildOptions(Options options, ViewController childController, Component child); @Override void mergeOptions(Options options); @Override boolean handleBack(CommandListener listener); void setCenterController(ViewController centerController); void setLeftController(ViewController controller); void setRightController(ViewController controller); }
SideMenuController extends ParentController<DrawerLayout> { @Override public void mergeOptions(Options options) { super.mergeOptions(options); presenter.present(this.options.sideMenuRootOptions); } SideMenuController(Activity activity, ChildControllersRegistry childRegistry, String id, Options initialOptions, SideMenuPresenter sideMenuOptionsPresenter, Presenter presenter); @Override void sendOnNavigationButtonPressed(String buttonId); @NonNull @Override Collection<ViewController> getChildControllers(); @Override void applyChildOptions(Options options, Component child); @Override void mergeChildOptions(Options options, ViewController childController, Component child); @Override void mergeOptions(Options options); @Override boolean handleBack(CommandListener listener); void setCenterController(ViewController centerController); void setLeftController(ViewController controller); void setRightController(ViewController controller);  }