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;
}
Aggregations