Search in sources :

Example 1 with SideMenu

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);
}
Also used : SideMenuPresenter(com.reactnativenavigation.viewcontrollers.sidemenu.SideMenuPresenter) SideMenu(com.reactnativenavigation.views.sidemenu.SideMenu)

Example 2 with 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));
}
Also used : SideMenu(com.reactnativenavigation.views.sidemenu.SideMenu) BaseTest(com.reactnativenavigation.BaseTest) Test(org.junit.Test)

Example 3 with 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;
}
Also used : SideMenuRoot(com.reactnativenavigation.views.sidemenu.SideMenuRoot) SideMenu(com.reactnativenavigation.views.sidemenu.SideMenu) NonNull(androidx.annotation.NonNull)

Aggregations

SideMenu (com.reactnativenavigation.views.sidemenu.SideMenu)3 NonNull (androidx.annotation.NonNull)1 BaseTest (com.reactnativenavigation.BaseTest)1 SideMenuPresenter (com.reactnativenavigation.viewcontrollers.sidemenu.SideMenuPresenter)1 SideMenuRoot (com.reactnativenavigation.views.sidemenu.SideMenuRoot)1 Test (org.junit.Test)1