|
@@ -124,6 +124,7 @@ public class ParentControllerTest extends BaseTest {
|
124
|
124
|
child1.onViewAppeared();
|
125
|
125
|
ArgumentCaptor<Options> optionsCaptor = ArgumentCaptor.forClass(Options.class);
|
126
|
126
|
ArgumentCaptor<ReactComponent> viewCaptor = ArgumentCaptor.forClass(ReactComponent.class);
|
|
127
|
+ verify(uut, times(1)).clearOptions();
|
127
|
128
|
verify(uut, times(1)).applyOptions(optionsCaptor.capture(), viewCaptor.capture());
|
128
|
129
|
assertThat(optionsCaptor.getValue().topBarOptions.title.get()).isEqualTo("new title");
|
129
|
130
|
assertThat(viewCaptor.getValue()).isEqualTo(child1.getView());
|