2020-07-25 08:39:34 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2020 Shabinder Singh
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2020-07-25 15:34:39 +02:00
|
|
|
package com.shabinder.spotiflyer
|
2020-07-24 20:33:40 +02:00
|
|
|
|
2020-07-25 15:34:39 +02:00
|
|
|
import androidx.test.ext.junit.runners.AndroidJUnit4
|
|
|
|
import androidx.test.platform.app.InstrumentationRegistry
|
|
|
|
import org.junit.Assert.assertEquals
|
|
|
|
import org.junit.Test
|
|
|
|
import org.junit.runner.RunWith
|
2020-07-24 20:33:40 +02:00
|
|
|
|
2020-07-25 15:34:39 +02:00
|
|
|
/**
|
|
|
|
* 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("com.shabinder.spotifydownloader", appContext.packageName)
|
|
|
|
}
|
2020-07-24 20:33:40 +02:00
|
|
|
}
|