Search in sources :

Example 1 with DontApplyColour

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

the class BottomTabPresenterTest method mergeChildOptions_nullColorsAreNotMerged.

@Test
public void mergeChildOptions_nullColorsAreNotMerged() {
    Options options = new Options();
    options.bottomTabOptions.iconColor = new ThemeColour(new DontApplyColour());
    options.bottomTabOptions.selectedIconColor = new ThemeColour(new DontApplyColour());
    uut.mergeChildOptions(options, child3);
    verify(bottomTabs, times(0)).setIconActiveColor(anyInt(), anyInt());
    verify(bottomTabs, times(0)).setIconInactiveColor(anyInt(), anyInt());
}
Also used : Options(com.reactnativenavigation.options.Options) NullThemeColour(com.reactnativenavigation.options.params.NullThemeColour) ThemeColour(com.reactnativenavigation.options.params.ThemeColour) DontApplyColour(com.reactnativenavigation.options.params.DontApplyColour) BaseTest(com.reactnativenavigation.BaseTest) Test(org.junit.Test)

Aggregations

BaseTest (com.reactnativenavigation.BaseTest)1 Options (com.reactnativenavigation.options.Options)1 DontApplyColour (com.reactnativenavigation.options.params.DontApplyColour)1 NullThemeColour (com.reactnativenavigation.options.params.NullThemeColour)1 ThemeColour (com.reactnativenavigation.options.params.ThemeColour)1 Test (org.junit.Test)1