mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 06:43:56 +01:00 
			
		
		
		
	remove unused tests
Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
		
							parent
							
								
									d0efe134d9
								
							
						
					
					
						commit
						3d1c4c9a30
					
				
					 2 changed files with 0 additions and 33 deletions
				
			
		|  | @ -340,20 +340,6 @@ class MainActivityUnitTests { | ||||||
|         method.invoke(activity, null, true) |         method.invoke(activity, null, true) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Test |  | ||||||
|     @Throws(Exception::class) |  | ||||||
|     fun testOnActivityResult() { |  | ||||||
|         val method: Method = |  | ||||||
|             MainActivity::class.java.getDeclaredMethod( |  | ||||||
|                 "onActivityResult", |  | ||||||
|                 Int::class.java, |  | ||||||
|                 Int::class.java, |  | ||||||
|                 Intent::class.java, |  | ||||||
|             ) |  | ||||||
|         method.isAccessible = true |  | ||||||
|         method.invoke(activity, 0, 0, null) |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     @Test |     @Test | ||||||
|     @Throws(Exception::class) |     @Throws(Exception::class) | ||||||
|     fun testOnResume() { |     fun testOnResume() { | ||||||
|  |  | ||||||
|  | @ -77,7 +77,6 @@ import java.util.Locale | ||||||
| @Config(sdk = [21], application = TestCommonsApplication::class) | @Config(sdk = [21], application = TestCommonsApplication::class) | ||||||
| @LooperMode(LooperMode.Mode.PAUSED) | @LooperMode(LooperMode.Mode.PAUSED) | ||||||
| class MediaDetailFragmentUnitTests { | class MediaDetailFragmentUnitTests { | ||||||
|     private val requestCode = 1001 |  | ||||||
|     private val lastLocation = "last_location_while_uploading" |     private val lastLocation = "last_location_while_uploading" | ||||||
|     private lateinit var fragment: MediaDetailFragment |     private lateinit var fragment: MediaDetailFragment | ||||||
|     private lateinit var fragmentManager: FragmentManager |     private lateinit var fragmentManager: FragmentManager | ||||||
|  | @ -232,24 +231,6 @@ class MediaDetailFragmentUnitTests { | ||||||
|         fragment.onCreateView(layoutInflater, null, savedInstanceState) |         fragment.onCreateView(layoutInflater, null, savedInstanceState) | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     @Test |  | ||||||
|     @Throws(Exception::class) |  | ||||||
|     fun testOnActivityResultLocationPickerActivity() { |  | ||||||
|         fragment.onActivityResult(requestCode, Activity.RESULT_CANCELED, intent) |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     @Test |  | ||||||
|     @Throws(Exception::class) |  | ||||||
|     fun `test OnActivity Result Cancelled LocationPickerActivity`() { |  | ||||||
|         fragment.onActivityResult(requestCode, Activity.RESULT_CANCELED, intent) |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     @Test |  | ||||||
|     @Throws(Exception::class) |  | ||||||
|     fun `test OnActivity Result Cancelled DescriptionEditActivity`() { |  | ||||||
|         fragment.onActivityResult(requestCode, Activity.RESULT_OK, intent) |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     @Test |     @Test | ||||||
|     @Throws(Exception::class) |     @Throws(Exception::class) | ||||||
|     fun testOnSaveInstanceState() { |     fun testOnSaveInstanceState() { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 parneet-guraya
						parneet-guraya