Skip to content

Commit

Permalink
Fixes broken tests after merge from trunk and feature branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonis Lilis committed Feb 15, 2024
1 parent 7ef7435 commit 0c3601e
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import org.mockito.kotlin.verify
import org.mockito.kotlin.whenever
import org.wordpress.android.BaseUnitTest
import org.wordpress.android.datasets.wrappers.ReaderPostTableWrapper
import org.wordpress.android.fluxc.store.CommentsStore
import org.wordpress.android.fluxc.store.SiteStore
import org.wordpress.android.models.Note
import org.wordpress.android.models.ReaderPost
import org.wordpress.android.push.GCMMessageHandler
Expand All @@ -21,7 +23,6 @@ import org.wordpress.android.ui.notifications.utils.NotificationsUtilsWrapper
import org.wordpress.android.ui.prefs.AppPrefsWrapper
import org.wordpress.android.ui.reader.actions.ReaderActions
import org.wordpress.android.ui.reader.actions.ReaderPostActionsWrapper
import org.wordpress.android.util.JetpackBrandingUtils

private const val REQUEST_BLOG_LISTENER_PARAM_POSITION = 2

Expand All @@ -31,9 +32,6 @@ class NotificationsListViewModelTest : BaseUnitTest() {
@Mock
private lateinit var appPrefsWrapper: AppPrefsWrapper

@Mock
private lateinit var jetpackBrandingUtils: JetpackBrandingUtils

@Mock
private lateinit var jetpackFeatureRemovalOverlayUtil: JetpackFeatureRemovalOverlayUtil

Expand All @@ -49,6 +47,12 @@ class NotificationsListViewModelTest : BaseUnitTest() {
@Mock
private lateinit var readerPostActionsWrapper: ReaderPostActionsWrapper

@Mock
private lateinit var siteStore: SiteStore

@Mock
private lateinit var commentStore: CommentsStore

@Mock
private lateinit var action: ActionHandler

Expand All @@ -59,12 +63,13 @@ class NotificationsListViewModelTest : BaseUnitTest() {
viewModel = NotificationsListViewModel(
testDispatcher(),
appPrefsWrapper,
jetpackBrandingUtils,
jetpackFeatureRemovalOverlayUtil,
gcmMessageHandler,
notificationsUtilsWrapper,
readerPostTableWrapper,
readerPostActionsWrapper
readerPostActionsWrapper,
siteStore,
commentStore
)
}

Expand Down

0 comments on commit 0c3601e

Please sign in to comment.