diff options
author | alk3pInjection <webmaster@raspii.tech> | 2023-04-20 00:08:54 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-04-20 00:08:54 +0800 |
commit | ea54f1de3b356393cdccb8ca477b6355c574d79e (patch) | |
tree | 1bb8d1e899d9a474e62c486006637f3c40d48db5 /tests/src/com/android/TelephonyTestBase.java | |
parent | f85a862dc1a8d05e6a3d1fd2ae21912ababe5a62 (diff) | |
parent | 410d56dbd95a1fa4cc03c6af76aaab2a940b661f (diff) |
Merge tag 'LA.QSSI.13.0.r1-09800-qssi.0' into tachibanatachibana
"LA.QSSI.13.0.r1-09800-qssi.0"
Change-Id: Ia1a3e02e4b17994e14ab1867ea9c3677a93e6a2f
Diffstat (limited to 'tests/src/com/android/TelephonyTestBase.java')
-rw-r--r-- | tests/src/com/android/TelephonyTestBase.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/src/com/android/TelephonyTestBase.java b/tests/src/com/android/TelephonyTestBase.java index 09abb15bca..ffda81b993 100644 --- a/tests/src/com/android/TelephonyTestBase.java +++ b/tests/src/com/android/TelephonyTestBase.java @@ -24,7 +24,9 @@ import android.util.Log; import com.android.internal.telephony.PhoneConfigurationManager; -import org.mockito.MockitoAnnotations; +import org.junit.Rule; +import org.mockito.junit.MockitoJUnit; +import org.mockito.junit.MockitoRule; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Executor; @@ -34,11 +36,11 @@ import java.util.concurrent.TimeUnit; * Helper class to load Mockito Resources into a test. */ public class TelephonyTestBase { + @Rule public final MockitoRule mocks = MockitoJUnit.rule(); protected TestContext mContext; public void setUp() throws Exception { - MockitoAnnotations.initMocks(this); mContext = spy(new TestContext()); // Set up the looper if it does not exist on the test thread. if (Looper.myLooper() == null) { |