mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
parent
988b83dc32
commit
c9dfc03a20
122 changed files with 328 additions and 287 deletions
|
|
@ -57,7 +57,7 @@ class DeleteHelperTest {
|
|||
*/
|
||||
@Before
|
||||
fun setup() {
|
||||
MockitoAnnotations.initMocks(this)
|
||||
MockitoAnnotations.openMocks(this)
|
||||
deleteHelper = DeleteHelper(mock(), pageEditClient, mock(), "")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class ReasonBuilderTest {
|
|||
@Before
|
||||
@Throws(Exception::class)
|
||||
fun setUp() {
|
||||
MockitoAnnotations.initMocks(this)
|
||||
MockitoAnnotations.openMocks(this)
|
||||
val resources = mock(Resources::class.java)
|
||||
`when`(resources!!.getString(anyInt())).thenReturn("test")
|
||||
`when`(context!!.resources).thenReturn(resources)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue