mirror of
				https://github.com/commons-app/apps-android-commons.git
				synced 2025-10-31 14:53:59 +01:00 
			
		
		
		
	PageableBaseDataSourceTest.kt & UploadPresenterTest.kt: fixed excessive line lengths to meet ktLint standard
This commit is contained in:
		
							parent
							
								
									9d9cd5ae04
								
							
						
					
					
						commit
						0e21045e33
					
				
					 2 changed files with 7 additions and 2 deletions
				
			
		|  | @ -71,7 +71,11 @@ class PageableBaseDataSourceTest { | |||
|         verify(dataSourceFactory).retryFailedRequest() | ||||
|     } | ||||
| 
 | ||||
|     private fun expectNewLiveData(): Triple<KArgumentCaptor<() -> Unit>, LiveData<PagedList<String>>, KArgumentCaptor<PagingDataSourceFactory<String>>> { | ||||
|     private fun expectNewLiveData(): Triple< | ||||
|         KArgumentCaptor<() -> Unit>, | ||||
|         LiveData<PagedList<String>>, | ||||
|         KArgumentCaptor<PagingDataSourceFactory<String>>, | ||||
|     > { | ||||
|         val captor = argumentCaptor<() -> Unit>() | ||||
|         val dataSourceFactoryCaptor = argumentCaptor<PagingDataSourceFactory<String>>() | ||||
|         val liveData: LiveData<PagedList<String>> = mock() | ||||
|  |  | |||
|  | @ -176,7 +176,8 @@ class UploadPresenterTest { | |||
|         uploadableFiles.add(uploadableFile) | ||||
|         uploadPresenter.deletePictureAtIndex(0) | ||||
|         verify(repository).deletePicture(ArgumentMatchers.anyString()) | ||||
|         verify(view).showMessage(ArgumentMatchers.anyInt()) // As there is only one while which we are asking for deletion, upload should be cancelled and this flow should be triggered | ||||
|         // As there is only one while which we are asking for deletion, upload should be cancelled and this flow should be triggered | ||||
|         verify(view).showMessage(ArgumentMatchers.anyInt()) | ||||
|         verify(view).finish() | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 tristan81
						tristan81