Search in sources :

Example 1 with NullBool

use of com.reactnativenavigation.options.params.NullBool in project react-native-navigation by wix.

the class ComponentOptions method reset.

public void reset() {
    name = new NullText();
    componentId = new NullText();
    alignment = Alignment.Default;
    waitForRender = new NullBool();
    width = new NullNumber();
    height = new NullNumber();
}
Also used : NullBool(com.reactnativenavigation.options.params.NullBool) NullNumber(com.reactnativenavigation.options.params.NullNumber) NullText(com.reactnativenavigation.options.params.NullText)

Example 2 with NullBool

use of com.reactnativenavigation.options.params.NullBool in project react-native-navigation by wix.

the class ViewControllerTest method isRendered_returnsTrueForEveryViewByDefault.

@Test
public void isRendered_returnsTrueForEveryViewByDefault() {
    uut.setWaitForRender(new NullBool());
    uut.view = mock(ViewGroup.class);
    assertThat(uut.isRendered()).isTrue();
}
Also used : NullBool(com.reactnativenavigation.options.params.NullBool) ViewGroup(android.view.ViewGroup) BaseTest(com.reactnativenavigation.BaseTest) Test(org.junit.Test)

Aggregations

NullBool (com.reactnativenavigation.options.params.NullBool)2 ViewGroup (android.view.ViewGroup)1 BaseTest (com.reactnativenavigation.BaseTest)1 NullNumber (com.reactnativenavigation.options.params.NullNumber)1 NullText (com.reactnativenavigation.options.params.NullText)1 Test (org.junit.Test)1