fix more lint warnings
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jannik 2020-08-10 15:11:36 +02:00
parent dd5c7b3fb8
commit be43d87b1a
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
2 changed files with 5 additions and 5 deletions

View File

@ -64,8 +64,8 @@ dependencies {
implementation 'org.apache.commons:commons-lang3:3.10' implementation 'org.apache.commons:commons-lang3:3.10'
testImplementation 'junit:junit:4.13' testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test:runner:1.2.0' androidTestImplementation 'androidx.test:core:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' androidTestImplementation 'androidx.test.ext:junit:1.1.1'
} }
static def buildTime() { static def buildTime() {

View File

@ -1,7 +1,7 @@
package org.mosad.seil0.projectlaogai package org.mosad.seil0.projectlaogai
import androidx.test.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.runner.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry
import org.junit.Test import org.junit.Test
import org.junit.runner.RunWith import org.junit.runner.RunWith
@ -18,7 +18,7 @@ class ExampleInstrumentedTest {
@Test @Test
fun useAppContext() { fun useAppContext() {
// Context of the app under test. // Context of the app under test.
val appContext = InstrumentationRegistry.getTargetContext() val appContext = InstrumentationRegistry.getInstrumentation().context
assertEquals("org.mosad.seil0.projectlaogai", appContext.packageName) assertEquals("org.mosad.seil0.projectlaogai", appContext.packageName)
} }
} }