Move night mode initialization to WulkanowyApp (#180)

Fixes #162
This commit is contained in:
Mikołaj Pich
2018-11-10 23:24:33 +01:00
committed by Rafał Borcz
parent 2f24b25399
commit 2b60f555e9
6 changed files with 10 additions and 20 deletions

View File

@ -1,7 +1,6 @@
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
@ -21,15 +20,12 @@ 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, preferencesRepository, errorHandler)
presenter = SplashPresenter(sessionRepository, errorHandler)
}
@Test