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,7 +9,6 @@ import com.reactnativenavigation.layout.bottomtabs.BottomTabsLayout;
9 9
 import com.reactnativenavigation.layout.bottomtabs.TooManyTabsException;
10 10
 
11 11
 import org.junit.Before;
12
-import org.junit.Ignore;
13 12
 import org.junit.Test;
14 13
 import org.robolectric.Robolectric;
15 14
 
@@ -17,7 +16,6 @@ import static org.assertj.core.api.Java6Assertions.assertThat;
17 16
 import static org.mockito.Mockito.mock;
18 17
 import static org.mockito.Mockito.verify;
19 18
 
20
-@Ignore
21 19
 public class BottomTabsContainerTest extends BaseTest {
22 20
 
23 21
 	private static final String TAB_NAME = "myTab";

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

@@ -204,15 +204,6 @@ public class LayoutFactoryTest extends BaseTest {
204 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 207
 	private LayoutFactory createLayoutFactory() {
217 208
 		return new LayoutFactory(activity, reactRootViewCreator);
218 209
 	}