Upgrade Robolectric from 4.3.1 -> 4.4
Summary: Changelog: [Internal] Reviewed By: jiawei-lyu Differential Revision: D23718455 fbshipit-source-id: 39c684722db1269e2179cf9680cb728be1171afb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c0e8cef466
commit
0b2e5f6454
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
package com.facebook.flipper.plugins.common;
|
package com.facebook.flipper.plugins.common;
|
||||||
|
|
||||||
|
import static org.robolectric.annotation.LooperMode.Mode.LEGACY;
|
||||||
|
|
||||||
import com.facebook.flipper.core.FlipperObject;
|
import com.facebook.flipper.core.FlipperObject;
|
||||||
import com.facebook.flipper.core.FlipperResponder;
|
import com.facebook.flipper.core.FlipperResponder;
|
||||||
import com.facebook.flipper.testing.FlipperResponderMock;
|
import com.facebook.flipper.testing.FlipperResponderMock;
|
||||||
@@ -15,7 +17,9 @@ import org.junit.Before;
|
|||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.robolectric.RobolectricTestRunner;
|
import org.robolectric.RobolectricTestRunner;
|
||||||
|
import org.robolectric.annotation.LooperMode;
|
||||||
|
|
||||||
|
@LooperMode(LEGACY)
|
||||||
@RunWith(RobolectricTestRunner.class)
|
@RunWith(RobolectricTestRunner.class)
|
||||||
public class MainThreadFlipperReceiverTest {
|
public class MainThreadFlipperReceiverTest {
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import static org.hamcrest.CoreMatchers.equalTo;
|
|||||||
import static org.hamcrest.CoreMatchers.hasItem;
|
import static org.hamcrest.CoreMatchers.hasItem;
|
||||||
import static org.hamcrest.MatcherAssert.assertThat;
|
import static org.hamcrest.MatcherAssert.assertThat;
|
||||||
import static org.mockito.ArgumentMatchers.any;
|
import static org.mockito.ArgumentMatchers.any;
|
||||||
|
import static org.robolectric.annotation.LooperMode.Mode.LEGACY;
|
||||||
|
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
import android.graphics.Rect;
|
import android.graphics.Rect;
|
||||||
@@ -37,7 +38,9 @@ import org.junit.runner.RunWith;
|
|||||||
import org.mockito.Mockito;
|
import org.mockito.Mockito;
|
||||||
import org.robolectric.RobolectricTestRunner;
|
import org.robolectric.RobolectricTestRunner;
|
||||||
import org.robolectric.RuntimeEnvironment;
|
import org.robolectric.RuntimeEnvironment;
|
||||||
|
import org.robolectric.annotation.LooperMode;
|
||||||
|
|
||||||
|
@LooperMode(LEGACY)
|
||||||
@RunWith(RobolectricTestRunner.class)
|
@RunWith(RobolectricTestRunner.class)
|
||||||
public class InspectorFlipperPluginTest {
|
public class InspectorFlipperPluginTest {
|
||||||
|
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ ext.deps = [
|
|||||||
lithoTesting : "com.facebook.litho:litho-testing:$LITHO_VERSION",
|
lithoTesting : "com.facebook.litho:litho-testing:$LITHO_VERSION",
|
||||||
// Debugging and testing
|
// Debugging and testing
|
||||||
guava : 'com.google.guava:guava:20.0',
|
guava : 'com.google.guava:guava:20.0',
|
||||||
robolectric : 'org.robolectric:robolectric:4.3.1',
|
robolectric : 'org.robolectric:robolectric:4.4',
|
||||||
junit : 'junit:junit:4.12',
|
junit : 'junit:junit:4.12',
|
||||||
hamcrest : 'org.hamcrest:hamcrest-library:1.3',
|
hamcrest : 'org.hamcrest:hamcrest-library:1.3',
|
||||||
mockito : 'org.mockito:mockito-core:2.26.0',
|
mockito : 'org.mockito:mockito-core:2.26.0',
|
||||||
|
|||||||
Reference in New Issue
Block a user