PageableBaseDataSourceTest.kt & UploadPresenterTest.kt: fixed excessive line lengths to meet ktLint standard

This commit is contained in:
tristan81 2024-09-18 23:39:41 +10:00
parent 9d9cd5ae04
commit 0e21045e33
2 changed files with 7 additions and 2 deletions

View file

@ -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()

View file

@ -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()
}