|
@@ -1,10 +1,9 @@
|
1
|
1
|
package com.reactnativenavigation;
|
2
|
2
|
|
3
|
3
|
import com.reactnativenavigation.controllers.ActivityLifecycleDelegate;
|
4
|
|
-import com.reactnativenavigation.controllers.CommandsHandler;
|
5
|
|
-import com.reactnativenavigation.mocks.TestDevPermissionRequest;
|
6
|
|
-import com.reactnativenavigation.mocks.TestReactNativeHost;
|
7
|
|
-import com.reactnativenavigation.react.ReactRootViewCreatorImpl;
|
|
4
|
+import com.reactnativenavigation.react.NavigationReactNativeHost;
|
|
5
|
+
|
|
6
|
+import static org.mockito.Mockito.mock;
|
8
|
7
|
|
9
|
8
|
public class TestApplication extends NavigationApplication {
|
10
|
9
|
|
|
@@ -15,7 +14,7 @@ public class TestApplication extends NavigationApplication {
|
15
|
14
|
|
16
|
15
|
@Override
|
17
|
16
|
protected void init() {
|
18
|
|
- reactNativeHost = new TestReactNativeHost(this, isDebug(), new CommandsHandler(new ReactRootViewCreatorImpl()));
|
19
|
|
- activityLifecycleDelegate = new ActivityLifecycleDelegate(reactNativeHost.getReactInstanceManager(), new TestDevPermissionRequest());
|
|
17
|
+ reactNativeHost = mock(NavigationReactNativeHost.class);
|
|
18
|
+ activityLifecycleDelegate = mock(ActivityLifecycleDelegate.class);
|
20
|
19
|
}
|
21
|
20
|
}
|