mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
* [WIP] Removed HandlerService * [WIP] Added PublishProcessor for managing queue * Resolved conflicts after merge
This commit is contained in:
parent
ce089d3f73
commit
1fea1bbf49
5 changed files with 47 additions and 126 deletions
|
|
@ -2,10 +2,8 @@ package fr.free.nrw.commons.upload
|
|||
|
||||
import android.content.ComponentName
|
||||
import android.content.Context
|
||||
import fr.free.nrw.commons.HandlerService
|
||||
import fr.free.nrw.commons.auth.SessionManager
|
||||
import fr.free.nrw.commons.contributions.Contribution
|
||||
import fr.free.nrw.commons.kvstore.BasicKvStore
|
||||
import fr.free.nrw.commons.kvstore.JsonKvStore
|
||||
import org.junit.Before
|
||||
import org.junit.Test
|
||||
|
|
@ -31,7 +29,7 @@ class UploadControllerTest {
|
|||
fun setup() {
|
||||
MockitoAnnotations.initMocks(this)
|
||||
val uploadService = mock(UploadService::class.java)
|
||||
val binder = mock(HandlerService.HandlerServiceLocalBinder::class.java)
|
||||
val binder = mock(UploadService.UploadServiceLocalBinder::class.java)
|
||||
`when`(binder.service).thenReturn(uploadService)
|
||||
uploadController!!.uploadServiceConnection.onServiceConnected(mock(ComponentName::class.java), binder)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue