use of com.reactnativenavigation.options.Options in project react-native-navigation by wix.
the class SideMenuControllerTest method applyOptions.
@Test
public void applyOptions() {
Options options = new Options();
uut.applyOptions(options);
verify(presenter).applyOptions(options);
}
use of com.reactnativenavigation.options.Options in project react-native-navigation by wix.
the class SideMenuControllerTest method mergeChildOptions.
@Test
public void mergeChildOptions() {
Options options = new Options();
uut.mergeChildOptions(options, child);
verify(presenter).mergeOptions(options.sideMenuRootOptions);
verify(parent).mergeChildOptions(options, child);
}
use of com.reactnativenavigation.options.Options in project react-native-navigation by wix.
the class FloatingActionButtonTest method getOptionsWithFabActions.
@NonNull
private Options getOptionsWithFabActions() {
Options options = new Options();
FabOptions fabOptions = new FabOptions();
fabOptions.id = new Text("FAB");
for (int i = 0; i < CHILD_FAB_COUNT; i++) {
FabOptions childOptions = new FabOptions();
childOptions.id = new Text("fab" + i);
fabOptions.actionsArray.add(childOptions);
}
options.fabOptions = fabOptions;
return options;
}
use of com.reactnativenavigation.options.Options in project react-native-navigation by wix.
the class ChildControllersRegistryTest method beforeEach.
@Override
public void beforeEach() {
Activity activity = newActivity();
uut = new ChildControllersRegistry();
child1 = spy(new SimpleViewController(activity, uut, "child1", new Options()));
child2 = spy(new SimpleViewController(activity, uut, "child2", new Options()));
}
use of com.reactnativenavigation.options.Options in project react-native-navigation by wix.
the class ModalPresenterTest method showModal_overCurrentContext_previousModalIsNotRemovedFromHierarchy.
@Test
public void showModal_overCurrentContext_previousModalIsNotRemovedFromHierarchy() {
Options options = new Options();
options.modal.presentationStyle = ModalPresentationStyle.OverCurrentContext;
uut.setDefaultOptions(options);
disableShowModalAnimation(modal1);
uut.showModal(modal1, root, new CommandListenerAdapter());
verify(root, times(0)).detachView();
verify(root, times(0)).onViewDisappear();
}
Aggregations