Что происходит, когда mock
сбрасывается.
Скажем, макет
val mockHelperMethods = mock(classOf[HelperMethods])
when(mockHelperMethods.getUniqueID()).thenReturn(UUID.fromString("11111111-1111-1111-1111-111111111111"))
when(mockHelperMethods.bucketIDFromEmail(ArgumentMatchers.any())).thenReturn(1)
Если я позвоню reset(mockHelperMethods)
, придется ли мне снова делать when
и thenReturn
?
Какое состояние макета сбрасывается и что остается прежним?