Mercurial > cgi-bin > hgweb.cgi > SimpleResizer
comparison app/src/androidTest/java/com/bartsent/simpleresizer/ExampleInstrumentedTest.kt @ 0:13935000c2d9
Stuff Andriod Studio ignored for some reason.
author | David Barts <n5jrn@me.com> |
---|---|
date | Sun, 31 Jan 2021 08:21:24 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13935000c2d9 |
---|---|
1 package com.bartsent.simpleresizer | |
2 | |
3 import androidx.test.platform.app.InstrumentationRegistry | |
4 import androidx.test.ext.junit.runners.AndroidJUnit4 | |
5 | |
6 import org.junit.Test | |
7 import org.junit.runner.RunWith | |
8 | |
9 import org.junit.Assert.* | |
10 | |
11 /** | |
12 * Instrumented test, which will execute on an Android device. | |
13 * | |
14 * See [testing documentation](http://d.android.com/tools/testing). | |
15 */ | |
16 @RunWith(AndroidJUnit4::class) | |
17 class ExampleInstrumentedTest { | |
18 @Test | |
19 fun useAppContext() { | |
20 // Context of the app under test. | |
21 val appContext = InstrumentationRegistry.getInstrumentation().targetContext | |
22 assertEquals("com.bartsent.simpleresizer", appContext.packageName) | |
23 } | |
24 } |