Search in sources :

Example 1 with Component

use of com.reactnativenavigation.views.component.Component 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();
}
Also used : Bool(com.reactnativenavigation.options.params.Bool) NullBool(com.reactnativenavigation.options.params.NullBool) ViewGroup(android.view.ViewGroup) Component(com.reactnativenavigation.views.component.Component) BaseTest(com.reactnativenavigation.BaseTest) Test(org.junit.Test)

Aggregations

ViewGroup (android.view.ViewGroup)1 BaseTest (com.reactnativenavigation.BaseTest)1 Bool (com.reactnativenavigation.options.params.Bool)1 NullBool (com.reactnativenavigation.options.params.NullBool)1 Component (com.reactnativenavigation.views.component.Component)1 Test (org.junit.Test)1