|
@@ -88,7 +88,6 @@ public class NavigatorTest extends BaseTest {
|
88
|
88
|
child3 = new SimpleViewController(activity, childRegistry, "child3", tabOptions);
|
89
|
89
|
child4 = new SimpleViewController(activity, childRegistry, "child4", tabOptions);
|
90
|
90
|
child5 = new SimpleViewController(activity, childRegistry, "child5", tabOptions);
|
91
|
|
- activity.setContentView(uut.getView());
|
92
|
91
|
|
93
|
92
|
activityController.visible();
|
94
|
93
|
}
|
|
@@ -105,9 +104,15 @@ public class NavigatorTest extends BaseTest {
|
105
|
104
|
verify(modalStack).setDefaultOptions(defaultOptions);
|
106
|
105
|
}
|
107
|
106
|
|
|
107
|
+ @Test
|
|
108
|
+ public void setRoot_setContentViewWhenFirstRootIsSet() {
|
|
109
|
+ assertThat(uut.view).isNull();
|
|
110
|
+ uut.setRoot(child1, new CommandListenerAdapter());
|
|
111
|
+ assertThat(uut.view).isNotNull();
|
|
112
|
+ }
|
|
113
|
+
|
108
|
114
|
@Test
|
109
|
115
|
public void setRoot_AddsChildControllerView() {
|
110
|
|
- assertThat(uut.getContentLayout().getChildCount()).isZero();
|
111
|
116
|
uut.setRoot(child1, new CommandListenerAdapter());
|
112
|
117
|
assertIsChild(uut.getContentLayout(), child1.getView());
|
113
|
118
|
}
|