From 8a19aa97d60e8146a29d29ba3815f3d555dd9ba3 Mon Sep 17 00:00:00 2001 From: js Date: Thu, 25 May 2023 22:55:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aircraftwar/ExampleInstrumentedTest.kt | 22 ------------------- .../net/imshit/aircraftwar/ExampleUnitTest.kt | 16 -------------- 2 files changed, 38 deletions(-) delete mode 100644 app/src/androidTest/java/net/imshit/aircraftwar/ExampleInstrumentedTest.kt delete mode 100644 app/src/test/java/net/imshit/aircraftwar/ExampleUnitTest.kt diff --git a/app/src/androidTest/java/net/imshit/aircraftwar/ExampleInstrumentedTest.kt b/app/src/androidTest/java/net/imshit/aircraftwar/ExampleInstrumentedTest.kt deleted file mode 100644 index 9ab7485..0000000 --- a/app/src/androidTest/java/net/imshit/aircraftwar/ExampleInstrumentedTest.kt +++ /dev/null @@ -1,22 +0,0 @@ -package net.imshit.aircraftwar - -import androidx.test.ext.junit.runners.AndroidJUnit4 -import androidx.test.platform.app.InstrumentationRegistry -import org.junit.Assert.* -import org.junit.Test -import org.junit.runner.RunWith - -/** - * Instrumented test, which will execute on an Android device. - * - * See [testing documentation](http://d.android.com/tools/testing). - */ -@RunWith(AndroidJUnit4::class) -class ExampleInstrumentedTest { - @Test - fun useAppContext() { - // Context of the app under test. - val appContext = InstrumentationRegistry.getInstrumentation().targetContext - assertEquals("net.imshit.aircraftwar", appContext.packageName) - } -} \ No newline at end of file diff --git a/app/src/test/java/net/imshit/aircraftwar/ExampleUnitTest.kt b/app/src/test/java/net/imshit/aircraftwar/ExampleUnitTest.kt deleted file mode 100644 index 41c51fe..0000000 --- a/app/src/test/java/net/imshit/aircraftwar/ExampleUnitTest.kt +++ /dev/null @@ -1,16 +0,0 @@ -package net.imshit.aircraftwar - -import org.junit.Assert.assertEquals -import org.junit.Test - -/** - * Example local unit test, which will execute on the development machine (host). - * - * See [testing documentation](http://d.android.com/tools/testing). - */ -class ExampleUnitTest { - @Test - fun addition_isCorrect() { - assertEquals(4, 2 + 2) - } -} \ No newline at end of file