Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos authored and andresmr committed Dec 20, 2023
1 parent dd6c627 commit 85681b5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import org.hisp.dhis.android.core.dataelement.DataElement
import org.junit.Assert.assertFalse
import org.junit.Before
import org.junit.Test
import org.mockito.kotlin.any
import org.mockito.kotlin.doReturn
import org.mockito.kotlin.mock
import org.mockito.kotlin.whenever

const val DATAELEMENT_FORM_NAME = "dataElement_formName"
const val DATAELEMENT_DESCRIPTION = "dataElement_description"
Expand All @@ -28,6 +31,9 @@ class TableDataToTableModelMapperTest {

@Test
fun `Should Map Indicators`() {
whenever(mapFieldValueToUser.resources) doReturn mock()
whenever(mapFieldValueToUser.resources.getString(any())) doReturn "Value"

val map = mapOf<String?, String>(
Pair("Indicator 1", "2"),
Pair("Indicator 2", "1"),
Expand Down

0 comments on commit 85681b5

Please sign in to comment.