From 7945e65492cf35dac073030d30bdf814cd7d7513 Mon Sep 17 00:00:00 2001 From: BlueMatthew Date: Wed, 27 Dec 2023 16:48:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=B5=8B=E8=AF=95=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=92=8C=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mpapp/ExampleInstrumentedTest.java | 25 ------------------- .../com/xypower/mpapp/ExampleUnitTest.java | 17 ------------- 2 files changed, 42 deletions(-) delete mode 100644 app/src/androidTest/java/com/xypower/mpapp/ExampleInstrumentedTest.java delete mode 100644 app/src/test/java/com/xypower/mpapp/ExampleUnitTest.java diff --git a/app/src/androidTest/java/com/xypower/mpapp/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/xypower/mpapp/ExampleInstrumentedTest.java deleted file mode 100644 index 6fb2269b..00000000 --- a/app/src/androidTest/java/com/xypower/mpapp/ExampleInstrumentedTest.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.xypower.mpapp; - -import android.content.Context; -import androidx.test.platform.app.InstrumentationRegistry; -import androidx.test.ext.junit.runners.AndroidJUnit4; - -import org.junit.Test; -import org.junit.runner.RunWith; - -import static org.junit.Assert.*; - -/** - * Instrumented test, which will execute on an Android device. - * - * @see Testing documentation - */ -@RunWith(AndroidJUnit4.class) -public class ExampleInstrumentedTest { - @Test - public void useAppContext() { - // Context of the app under test. - Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); - assertEquals("com.xinyingpower.microphoto", appContext.getPackageName()); - } -} \ No newline at end of file diff --git a/app/src/test/java/com/xypower/mpapp/ExampleUnitTest.java b/app/src/test/java/com/xypower/mpapp/ExampleUnitTest.java deleted file mode 100644 index 61348fbe..00000000 --- a/app/src/test/java/com/xypower/mpapp/ExampleUnitTest.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.xypower.mpapp; - -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * Example local unit test, which will execute on the development machine (host). - * - * @see Testing documentation - */ -public class ExampleUnitTest { - @Test - public void addition_isCorrect() { - assertEquals(4, 2 + 2); - } -} \ No newline at end of file