use of com.reactnativenavigation.viewcontrollers.child.ChildControllersRegistry in project react-native-navigation by wix.
the class ViewControllerTest method beforeEach.
@Override
public void beforeEach() {
super.beforeEach();
yellowBoxDelegate = Mockito.mock(YellowBoxDelegate.class);
activity = newActivity();
childRegistry = new ChildControllersRegistry();
uut = new SimpleViewController(activity, childRegistry, "uut", new Options());
mockedParent = Mocks.INSTANCE.parentController(null);
uut.setParentController(mockedParent);
Mockito.when(mockedParent.resolveChildOptions(any())).thenReturn(Options.EMPTY);
}
use of com.reactnativenavigation.viewcontrollers.child.ChildControllersRegistry in project react-native-navigation by wix.
the class AttachModeTest method beforeEach.
@Override
public void beforeEach() {
activity = newActivity();
childRegistry = new ChildControllersRegistry();
parent = new CoordinatorLayout(activity);
tabs = createTabs();
options = new Options();
options.bottomTabsOptions.currentTabIndex = new Number(INITIAL_TAB);
presenter = Mockito.mock(BottomTabsPresenter.class);
}
use of com.reactnativenavigation.viewcontrollers.child.ChildControllersRegistry in project react-native-navigation by wix.
the class LayoutFactoryTest method beforeEach.
@Override
public void beforeEach() {
super.beforeEach();
mockReactInstanceManager = mock(ReactInstanceManager.class);
uut = new LayoutFactory(mockReactInstanceManager);
uut.init(newActivity(), Mockito.mock(EventEmitter.class), new ChildControllersRegistry(), new HashMap<>());
}
use of com.reactnativenavigation.viewcontrollers.child.ChildControllersRegistry in project react-native-navigation by wix.
the class BottomTabPresenterTest method beforeEach.
@Override
public void beforeEach() {
super.beforeEach();
activity = newActivity();
childRegistry = new ChildControllersRegistry();
createBottomTabs(tab1Options, tab2Options, new Options());
}
Aggregations