Skip to content

Commit

Permalink
Fix some tests and pleasure the ktlint
Browse files Browse the repository at this point in the history
  • Loading branch information
abelgardep committed Jul 19, 2022
1 parent 68494d5 commit e9d3507
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ val viewModelModule = module {
viewModel { PreviewImageViewModel(get(), get(), get()) }
viewModel { FileDetailsViewModel(get(), get(), get(), get(), get()) }
viewModel { FileOperationsViewModel(get(), get(), get(), get(), get(), get(), get(), get(), get(), get()) }
viewModel { MainFileListViewModel(get(), get(), get(), get(), get(), get(), get(), get(), get(), get()) }
viewModel { MainFileListViewModel(get(), get(), get(), get(), get(), get(), get(), get(), get(), get(), get()) }
viewModel { TransfersViewModel(get(), get(), get()) }
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
*/
package com.owncloud.android.domain.files.usecases

import com.owncloud.android.domain.availableoffline.usecases.GetFilesAvailableOfflineUseCase
import com.owncloud.android.domain.availableoffline.usecases.GetFilesAvailableOfflineFromAccountUseCase
import com.owncloud.android.domain.exceptions.UnauthorizedException
import com.owncloud.android.domain.files.FileRepository
import com.owncloud.android.testutil.OC_EMPTY_FILES
import com.owncloud.android.testutil.OC_AVAILABLE_OFFLINE_FILES
import com.owncloud.android.testutil.OC_EMPTY_FILES
import io.mockk.every
import io.mockk.spyk
import io.mockk.verify
import org.junit.Assert
import org.junit.Test

class GetFilesAvailableOfflineUseCaseTest {
class GetFilesAvailableOfflineFromAccountUseCaseTest {

private val repository: FileRepository = spyk()
private val useCase = GetFilesAvailableOfflineUseCase(repository)
private val useCaseParams = GetFilesAvailableOfflineUseCase.Params(owner = "owner")
private val useCase = GetFilesAvailableOfflineFromAccountUseCase(repository)
private val useCaseParams = GetFilesAvailableOfflineFromAccountUseCase.Params(owner = "owner")

@Test
fun `get files available offline - ok`() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ val OC_FILE = OCFile(
modificationTimestamp = 1593510589000,
etag = "5efb0c13c688f",
mimeType = "image/jpeg",
length = 3000000
length = 3000000,
availableOfflineStatus = AvailableOfflineStatus.NOT_AVAILABLE_OFFLINE,
)

val OC_AVAILABLE_OFFLINE_FILE = OCFile(
Expand Down

0 comments on commit e9d3507

Please sign in to comment.