Dark theme refactor (#173)

This commit is contained in:
Mikołaj Pich
2018-10-30 22:06:29 +01:00
committed by Rafał Borcz
parent 745894f3a3
commit 0a7f09077f
16 changed files with 130 additions and 27 deletions

View File

@ -1,6 +1,7 @@
package io.github.wulkanowy.ui.modules.splash
import io.github.wulkanowy.data.ErrorHandler
import io.github.wulkanowy.data.repositories.PreferencesRepository
import io.github.wulkanowy.data.repositories.SessionRepository
import org.junit.Before
import org.junit.Test
@ -20,12 +21,15 @@ class SplashPresenterTest {
@Mock
lateinit var errorHandler: ErrorHandler
@Mock
lateinit var preferencesRepository: PreferencesRepository
private lateinit var presenter: SplashPresenter
@Before
fun initPresenter() {
MockitoAnnotations.initMocks(this)
presenter = SplashPresenter(sessionRepository, errorHandler)
presenter = SplashPresenter(sessionRepository, preferencesRepository, errorHandler)
}
@Test