Search in sources :

Example 1 with TestComponentViewCreator

use of com.reactnativenavigation.mocks.TestComponentViewCreator in project react-native-navigation by wix.

the class TopTabsViewControllerTest method createTabsControllers.

private List<ViewController<?>> createTabsControllers(Activity activity, List<Options> tabOptions) {
    List<ViewController<?>> tabControllers = new ArrayList<>(SIZE);
    for (int i = 0; i < SIZE; i++) {
        ComponentViewController viewController = new ComponentViewController(activity, childRegistry, "idTab" + i, "theComponentName", new TestComponentViewCreator(), tabOptions.get(i), new Presenter(activity, new Options()), new ComponentPresenter(Options.EMPTY));
        tabControllers.add(spy(viewController));
    }
    return tabControllers;
}
Also used : Options(com.reactnativenavigation.options.Options) SimpleViewController(com.reactnativenavigation.mocks.SimpleViewController) ComponentViewController(com.reactnativenavigation.viewcontrollers.component.ComponentViewController) ViewController(com.reactnativenavigation.viewcontrollers.viewcontroller.ViewController) TestComponentViewCreator(com.reactnativenavigation.mocks.TestComponentViewCreator) Presenter(com.reactnativenavigation.viewcontrollers.viewcontroller.Presenter) ComponentPresenter(com.reactnativenavigation.viewcontrollers.component.ComponentPresenter) ArrayList(java.util.ArrayList) ComponentViewController(com.reactnativenavigation.viewcontrollers.component.ComponentViewController) ComponentPresenter(com.reactnativenavigation.viewcontrollers.component.ComponentPresenter)

Aggregations

SimpleViewController (com.reactnativenavigation.mocks.SimpleViewController)1 TestComponentViewCreator (com.reactnativenavigation.mocks.TestComponentViewCreator)1 Options (com.reactnativenavigation.options.Options)1 ComponentPresenter (com.reactnativenavigation.viewcontrollers.component.ComponentPresenter)1 ComponentViewController (com.reactnativenavigation.viewcontrollers.component.ComponentViewController)1 Presenter (com.reactnativenavigation.viewcontrollers.viewcontroller.Presenter)1 ViewController (com.reactnativenavigation.viewcontrollers.viewcontroller.ViewController)1 ArrayList (java.util.ArrayList)1