fix more lint warnings
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @ -64,8 +64,8 @@ dependencies { | ||||
|     implementation 'org.apache.commons:commons-lang3:3.10' | ||||
|  | ||||
|     testImplementation 'junit:junit:4.13' | ||||
|     androidTestImplementation 'androidx.test:runner:1.2.0' | ||||
|     androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' | ||||
|     androidTestImplementation 'androidx.test:core:1.2.0' | ||||
|     androidTestImplementation 'androidx.test.ext:junit:1.1.1' | ||||
| } | ||||
|  | ||||
| static def buildTime() { | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| package org.mosad.seil0.projectlaogai | ||||
|  | ||||
| import androidx.test.InstrumentationRegistry | ||||
| import androidx.test.runner.AndroidJUnit4 | ||||
| import androidx.test.ext.junit.runners.AndroidJUnit4 | ||||
| import androidx.test.platform.app.InstrumentationRegistry | ||||
|  | ||||
| import org.junit.Test | ||||
| import org.junit.runner.RunWith | ||||
| @ -18,7 +18,7 @@ class ExampleInstrumentedTest { | ||||
|     @Test | ||||
|     fun useAppContext() { | ||||
|         // Context of the app under test. | ||||
|         val appContext = InstrumentationRegistry.getTargetContext() | ||||
|         val appContext = InstrumentationRegistry.getInstrumentation().context | ||||
|         assertEquals("org.mosad.seil0.projectlaogai", appContext.packageName) | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user