Browse Source

old unit etsts

Daniel Zlotin 7 years ago
parent
commit
dcf32a90ac

+ 0
- 2
lib/android/app/src/test/java/com/reactnativenavigation/layout/BottomTabsContainerTest.java View File

9
 import com.reactnativenavigation.layout.bottomtabs.TooManyTabsException;
9
 import com.reactnativenavigation.layout.bottomtabs.TooManyTabsException;
10
 
10
 
11
 import org.junit.Before;
11
 import org.junit.Before;
12
-import org.junit.Ignore;
13
 import org.junit.Test;
12
 import org.junit.Test;
14
 import org.robolectric.Robolectric;
13
 import org.robolectric.Robolectric;
15
 
14
 
17
 import static org.mockito.Mockito.mock;
16
 import static org.mockito.Mockito.mock;
18
 import static org.mockito.Mockito.verify;
17
 import static org.mockito.Mockito.verify;
19
 
18
 
20
-@Ignore
21
 public class BottomTabsContainerTest extends BaseTest {
19
 public class BottomTabsContainerTest extends BaseTest {
22
 
20
 
23
 	private static final String TAB_NAME = "myTab";
21
 	private static final String TAB_NAME = "myTab";

+ 0
- 9
lib/android/app/src/test/java/com/reactnativenavigation/layout/LayoutFactoryTest.java View File

204
 		assertThat(result.getChildAt(0)).isEqualTo(mockView);
204
 		assertThat(result.getChildAt(0)).isEqualTo(mockView);
205
 	}
205
 	}
206
 
206
 
207
-	@Test(expected = IllegalArgumentException.class)
208
-	@Ignore
209
-	public void throwsExceptionForUnknownType() throws Exception {
210
-		when(reactRootViewCreator.create(any(Activity.class), eq(NODE_ID), eq(REACT_ROOT_VIEW_KEY))).thenReturn(mockView);
211
-		final LayoutNode node = new LayoutNode(NODE_ID, null, new JSONObject(), Collections.<LayoutNode>emptyList());
212
-
213
-		createLayoutFactory().create(node);
214
-	}
215
-
216
 	private LayoutFactory createLayoutFactory() {
207
 	private LayoutFactory createLayoutFactory() {
217
 		return new LayoutFactory(activity, reactRootViewCreator);
208
 		return new LayoutFactory(activity, reactRootViewCreator);
218
 	}
209
 	}