Skip to content

Commit 111f9a2

Browse files
authored
android-interop-testing: replace deprecated classes (grpc#12689)
1 parent 10c1aee commit 111f9a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

android-interop-testing/src/androidTest/java/io/grpc/android/integrationtest/UdsChannelInteropTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
import static org.junit.Assert.assertEquals;
2020

2121
import android.net.LocalSocketAddress.Namespace;
22-
import androidx.test.InstrumentationRegistry;
22+
import androidx.test.ext.junit.rules.ActivityScenarioRule;
2323
import androidx.test.ext.junit.runners.AndroidJUnit4;
24-
import androidx.test.rule.ActivityTestRule;
24+
import androidx.test.platform.app.InstrumentationRegistry;
2525
import io.grpc.Grpc;
2626
import io.grpc.InsecureServerCredentials;
2727
import io.grpc.Server;
@@ -60,8 +60,8 @@ public class UdsChannelInteropTest {
6060
// Ensures Looper is initialized for tests running on API level 15. Otherwise instantiating an
6161
// AsyncTask throws an exception.
6262
@Rule
63-
public ActivityTestRule<TesterActivity> activityRule =
64-
new ActivityTestRule<TesterActivity>(TesterActivity.class);
63+
public ActivityScenarioRule<TesterActivity> activityRule =
64+
new ActivityScenarioRule<>(TesterActivity.class);
6565

6666
@Before
6767
public void setUp() throws IOException {

0 commit comments

Comments
 (0)