use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class SideMenuControllerTest method openRightMenu.
private void openRightMenu() {
Options options = new Options();
options.sideMenuRootOptions.right.visible = new Bool(true);
options.sideMenuRootOptions.right.animate = new Bool(false);
uut.mergeOptions(options);
uut.onDrawerSlide(right.getView(), 1);
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class TopBarButtonControllerTest method setIconButton.
private void setIconButton(boolean enabled) {
button.id = "btn1";
button.icon = new Text("someIcon");
button.color = new ThemeColour(new Colour(Color.RED), new Colour(Color.RED));
button.component.name = new NullText();
button.component.componentId = new NullText();
button.enabled = new Bool(enabled);
button.showAsAction = new Number(MenuItem.SHOW_AS_ACTION_ALWAYS);
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class ViewControllerTest method isRendered_delegatesToView.
@Test
public void isRendered_delegatesToView() {
uut.setWaitForRender(new Bool(true));
uut.view = mock(ViewGroup.class, withSettings().extraInterfaces(Component.class));
uut.isRendered();
verify((Component) uut.view).isRendered();
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class OverlayTouchDelegateTest method nonDownEventsDontIntercept.
@Test
public void nonDownEventsDontIntercept() {
uut.setInterceptTouchOutside(new Bool(true));
assertThat(uut.onInterceptTouchEvent(upEvent)).isFalse();
}
use of com.reactnativenavigation.options.params.Bool in project react-native-navigation by wix.
the class OverlayTouchDelegateTest method nonDownEventsInvokeSuperImplementation.
@Test
public void nonDownEventsInvokeSuperImplementation() {
uut.setInterceptTouchOutside(new Bool(true));
uut.onInterceptTouchEvent(upEvent);
verify(component).superOnInterceptTouchEvent(upEvent);
}
Aggregations