From afff0cd76cf47a80034d97303ed25fe98d59156a Mon Sep 17 00:00:00 2001 From: Danilo Ercoli Date: Wed, 7 Feb 2024 18:25:04 +0100 Subject: [PATCH] Fix unit test --- .../android/ui/reader/viewmodels/ReaderViewModelTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WordPress/src/test/java/org/wordpress/android/ui/reader/viewmodels/ReaderViewModelTest.kt b/WordPress/src/test/java/org/wordpress/android/ui/reader/viewmodels/ReaderViewModelTest.kt index 3cb4f933e28e..4d12b5593ada 100644 --- a/WordPress/src/test/java/org/wordpress/android/ui/reader/viewmodels/ReaderViewModelTest.kt +++ b/WordPress/src/test/java/org/wordpress/android/ui/reader/viewmodels/ReaderViewModelTest.kt @@ -40,6 +40,7 @@ import org.wordpress.android.ui.reader.viewmodels.ReaderViewModel.ReaderUiState import org.wordpress.android.ui.reader.viewmodels.ReaderViewModel.ReaderUiState.ContentUiState import org.wordpress.android.util.JetpackBrandingUtils import org.wordpress.android.util.SnackbarSequencer +import org.wordpress.android.util.UrlUtilsWrapper import org.wordpress.android.viewmodel.Event import java.util.Date @@ -89,6 +90,8 @@ class ReaderViewModelTest : BaseUnitTest() { private val emptyReaderTagList = ReaderTagList() private val nonEmptyReaderTagList = createNonMockedNonEmptyReaderTagList() + private val urlUtilsWrapper = UrlUtilsWrapper() + @Before fun setup() { viewModel = ReaderViewModel( @@ -105,6 +108,7 @@ class ReaderViewModelTest : BaseUnitTest() { snackbarSequencer, jetpackFeatureRemovalOverlayUtil, readerTopBarMenuHelper, + urlUtilsWrapper ) whenever(dateProvider.getCurrentDate()).thenReturn(Date(DUMMY_CURRENT_TIME))