mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
* TextUtils: add mock textUtils for tests * TextUtils: add more methods to mock for testing * UploadControllerTest: fix the test resulting travis ci to fail
This commit is contained in:
parent
d235e5a85b
commit
803bed43d7
2 changed files with 83 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ class UploadControllerTest {
|
|||
@Test
|
||||
fun startUpload() {
|
||||
val contribution = mock(Contribution::class.java)
|
||||
`when`(contribution.getCreator()).thenReturn("Creator")
|
||||
uploadController!!.startUpload(contribution)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue