Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b93ee9bc authored by Eric Lin's avatar Eric Lin
Browse files

Replace deprecated AndroidJUnit4.

AndroidJUnit4 from `androidx.test.runner` is deprecated, use
`androidx.test.ext.junit.runners.AndroidJUnit4` instead. See https://
developer.android.com/reference/androidx/test/runner/AndroidJUnit4 for
more details.

Bug: 354063239
Test: atest FrameworksCoreTests:DecorContextTest FrameworksCoreTests:PhoneWindowTest
Flag: TEST_ONLY
Change-Id: I3aa3f9ad7edeb328cd7d007ea74c66ad1f80d06e
parent 92ab503d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,9 +36,9 @@ import android.view.WindowManager;
import android.view.WindowManagerImpl;

import androidx.test.core.app.ApplicationProvider;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.SmallTest;
import androidx.test.rule.ActivityTestRule;
import androidx.test.runner.AndroidJUnit4;

import org.junit.Before;
import org.junit.Rule;
+1 −1
Original line number Diff line number Diff line
@@ -44,8 +44,8 @@ import android.view.ViewRootImpl;
import android.view.WindowManager;

import androidx.test.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import androidx.test.filters.SmallTest;
import androidx.test.runner.AndroidJUnit4;

import com.android.frameworks.coretests.R;