Skip to content

Commit

Permalink
Added list mocked
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitorbp authored and jesmrec committed Sep 20, 2023
1 parent d23c439 commit eb7f600
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ import android.content.Intent
import androidx.test.core.app.ActivityScenario
import androidx.test.core.app.ApplicationProvider
import com.owncloud.android.R
import com.owncloud.android.presentation.releasenotes.ReleaseNote
import com.owncloud.android.presentation.releasenotes.ReleaseNoteType
import com.owncloud.android.presentation.releasenotes.ReleaseNotesActivity
import com.owncloud.android.presentation.releasenotes.ReleaseNotesViewModel
import com.owncloud.android.utils.click
import com.owncloud.android.utils.matchers.assertChildCount
import com.owncloud.android.utils.matchers.isDisplayed
import com.owncloud.android.utils.matchers.withText
import com.owncloud.android.utils.releaseNotesList
import io.mockk.every
import io.mockk.mockk
import org.junit.Assert.assertEquals
Expand All @@ -48,6 +49,23 @@ class ReleaseNotesActivityTest {

private lateinit var releaseNotesViewModel: ReleaseNotesViewModel

private val releaseNotesList = listOf(
ReleaseNote(
title = R.string.release_notes_4_1_title_1,
subtitle = R.string.release_notes_4_1_subtitle_1,
type = ReleaseNoteType.ENHANCEMENT,
),
ReleaseNote(
title = R.string.release_notes_4_1_title_2,
subtitle = R.string.release_notes_4_1_subtitle_2,
type = ReleaseNoteType.ENHANCEMENT,
),
ReleaseNote(
title = R.string.release_notes_4_1_title_3,
subtitle = R.string.release_notes_4_1_subtitle_3,
type = ReleaseNoteType.ENHANCEMENT,
),
)
@Before
fun setUp() {
context = ApplicationProvider.getApplicationContext()
Expand Down

0 comments on commit eb7f600

Please sign in to comment.