From fa12ce88d76bd380aa5931dd51f6019d486965a6 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 22 Sep 2022 13:57:15 +0800 Subject: [PATCH] update --- .../java/com/sahooz/library/ExampleInstrumentedTest.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/lib_country_code/src/androidTest/java/com/sahooz/library/ExampleInstrumentedTest.java b/lib_country_code/src/androidTest/java/com/sahooz/library/ExampleInstrumentedTest.java index 0e1e73a63..17195ad3d 100644 --- a/lib_country_code/src/androidTest/java/com/sahooz/library/ExampleInstrumentedTest.java +++ b/lib_country_code/src/androidTest/java/com/sahooz/library/ExampleInstrumentedTest.java @@ -1,14 +1,10 @@ package com.sahooz.library; -import android.content.Context; -import androidx.test.platform.app.InstrumentationRegistry; -import androidx.test.ext.junit.runners.AndroidJUnit4; +import androidx.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; -import static org.junit.Assert.*; - /** * Instrumentation test, which will execute on an Android device. * @@ -19,8 +15,5 @@ public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. - Context appContext = InstrumentationRegistry.getTargetContext(); - - assertEquals("com.sahooz.library.test", appContext.getPackageName()); } }