|
@@ -166,7 +166,7 @@ public class TopTabsViewControllerTest extends BaseTest {
|
166
|
166
|
verify(tabControllers.get(1), times(0)).onViewAppeared();
|
167
|
167
|
|
168
|
168
|
ReactComponent comp = ((ComponentViewController) tabControllers.get(0)).getComponent();
|
169
|
|
- verify(uut, times(1)).applyOptions(any(Options.class), eq(comp));
|
|
169
|
+ verify(uut, times(1)).applyChildOptions(any(Options.class), eq(comp));
|
170
|
170
|
}
|
171
|
171
|
|
172
|
172
|
@Test
|
|
@@ -178,17 +178,17 @@ public class TopTabsViewControllerTest extends BaseTest {
|
178
|
178
|
|
179
|
179
|
uut.onViewAppeared();
|
180
|
180
|
ReactComponent currentTab = tabView(0);
|
181
|
|
- verify(uut, times(1)).applyOptions(any(Options.class), eq(currentTab));
|
|
181
|
+ verify(uut, times(1)).applyChildOptions(any(Options.class), eq(currentTab));
|
182
|
182
|
assertThat(uut.options.topBarOptions.title.text.get()).isEqualTo(createTabTopBarTitle(0));
|
183
|
183
|
|
184
|
184
|
uut.switchToTab(1);
|
185
|
185
|
currentTab = tabView(1);
|
186
|
|
- verify(uut, times(1)).applyOptions(any(Options.class), eq(currentTab));
|
|
186
|
+ verify(uut, times(1)).applyChildOptions(any(Options.class), eq(currentTab));
|
187
|
187
|
assertThat(uut.options.topBarOptions.title.text.get()).isEqualTo(createTabTopBarTitle(1));
|
188
|
188
|
|
189
|
189
|
uut.switchToTab(0);
|
190
|
190
|
currentTab = tabView(0);
|
191
|
|
- verify(uut, times(2)).applyOptions(any(Options.class), eq(currentTab));
|
|
191
|
+ verify(uut, times(2)).applyChildOptions(any(Options.class), eq(currentTab));
|
192
|
192
|
assertThat(uut.options.topBarOptions.title.text.get()).isEqualTo(createTabTopBarTitle(0));
|
193
|
193
|
}
|
194
|
194
|
|
|
@@ -213,7 +213,7 @@ public class TopTabsViewControllerTest extends BaseTest {
|
213
|
213
|
tabControllers.get(0).onViewAppeared();
|
214
|
214
|
ArgumentCaptor<Options> optionsCaptor = ArgumentCaptor.forClass(Options.class);
|
215
|
215
|
ArgumentCaptor<ReactComponent> viewCaptor = ArgumentCaptor.forClass(ReactComponent.class);
|
216
|
|
- verify(parentController, times(1)).applyOptions(optionsCaptor.capture(), viewCaptor.capture());
|
|
216
|
+ verify(parentController, times(1)).applyChildOptions(optionsCaptor.capture(), viewCaptor.capture());
|
217
|
217
|
assertThat(optionsCaptor.getValue().topTabOptions.title.hasValue()).isFalse();
|
218
|
218
|
}
|
219
|
219
|
|