|
@@ -100,7 +100,7 @@ public class LayoutFactoryTest {
|
100
|
100
|
@Test
|
101
|
101
|
public void returnsSingleTabContent() throws Exception {
|
102
|
102
|
BottomTabs bottomTabsMock = mock(BottomTabs.class);
|
103
|
|
- when(bottomTabsMock.getTabsCount()).thenReturn(0);
|
|
103
|
+ when(bottomTabsMock.size()).thenReturn(0);
|
104
|
104
|
|
105
|
105
|
when(rootViewCreator.createRootView(eq(VIEW_ID), eq(VIEW_NAME))).thenReturn(mockView);
|
106
|
106
|
final LayoutNode containerNode = createContainerNode();
|
|
@@ -119,7 +119,7 @@ public class LayoutFactoryTest {
|
119
|
119
|
@Test
|
120
|
120
|
public void returnsTwoTabContent() throws Exception {
|
121
|
121
|
BottomTabs bottomTabsMock = mock(BottomTabs.class);
|
122
|
|
- when(bottomTabsMock.getTabsCount()).thenReturn(0, 1);
|
|
122
|
+ when(bottomTabsMock.size()).thenReturn(0, 1);
|
123
|
123
|
|
124
|
124
|
when(rootViewCreator.createRootView(eq(VIEW_ID), eq(VIEW_NAME))).thenReturn(mockView);
|
125
|
125
|
final LayoutNode firstTabRootNode = createContainerNode(VIEW_ID, VIEW_NAME);
|
|
@@ -136,6 +136,7 @@ public class LayoutFactoryTest {
|
136
|
136
|
verify(bottomTabsMock).add(eq("#1"));
|
137
|
137
|
}
|
138
|
138
|
|
|
139
|
+
|
139
|
140
|
@Test(expected = IllegalArgumentException.class)
|
140
|
141
|
public void throwsExceptionForUnknownType() throws Exception {
|
141
|
142
|
when(rootViewCreator.createRootView(eq(VIEW_ID), eq(VIEW_NAME))).thenReturn(mockView);
|