use of com.reactnativenavigation.views.sidemenu.SideMenu in project react-native-navigation by wix.
the class SideMenuPresenterTest method beforeEach.
@Override
public void beforeEach() {
uut = new SideMenuPresenter();
SideMenu sideMenu = Mockito.mock(SideMenu.class);
uut.bindView(sideMenu);
}
use of com.reactnativenavigation.views.sidemenu.SideMenu in project react-native-navigation by wix.
the class SideMenuControllerTest method createView_bindView.
@Test
public void createView_bindView() {
uut.ensureViewIsCreated();
SideMenu sideMenu = uut.getSideMenu();
verify(presenter).bindView(eq(sideMenu));
}
use of com.reactnativenavigation.views.sidemenu.SideMenu in project react-native-navigation by wix.
the class SideMenuController method createView.
@NonNull
@Override
public SideMenuRoot createView() {
SideMenu sideMenu = new SideMenu(getActivity());
presenter.bindView(sideMenu);
sideMenu.addDrawerListener(this);
SideMenuRoot root = new SideMenuRoot(getActivity());
root.addSideMenu(sideMenu, this);
return root;
}
Aggregations