Issue#13 Fix codeAnalysis errors
This commit is contained in:
parent
03e413fba6
commit
c952f4f34d
8 changed files with 7 additions and 10 deletions
|
|
@ -25,4 +25,4 @@ class CodeKataUserDataLocalStorageTest {
|
||||||
@Test
|
@Test
|
||||||
fun sessionSetToNullWillStayNull() {
|
fun sessionSetToNullWillStayNull() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -163,4 +163,4 @@ class RobolectricAuthActivityInstrumentedTest : KoinTest {
|
||||||
.assertNotNavigatedToHome()
|
.assertNotNavigatedToHome()
|
||||||
.assertNotLoading()
|
.assertNotLoading()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package org.fnives.test.showcase.ui
|
package org.fnives.test.showcase.ui
|
||||||
|
|
||||||
//import org.fnives.test.showcase.testutils.shadow.ShadowSnackbar
|
|
||||||
import androidx.annotation.StringRes
|
import androidx.annotation.StringRes
|
||||||
import androidx.test.espresso.Espresso.onView
|
import androidx.test.espresso.Espresso.onView
|
||||||
import androidx.test.espresso.action.ViewActions
|
import androidx.test.espresso.action.ViewActions
|
||||||
|
|
@ -70,5 +69,4 @@ class RobolectricLoginRobot(
|
||||||
fun assertNotNavigatedToHome() = apply {
|
fun assertNotNavigatedToHome() = apply {
|
||||||
notIntended(hasComponent(MainActivity::class.java.canonicalName))
|
notIntended(hasComponent(MainActivity::class.java.canonicalName))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,4 +48,4 @@ class CodeKataAuthActivityInstrumentedTest : KoinTest {
|
||||||
@Test
|
@Test
|
||||||
fun networkErrorShowsProperErrorMessage() {
|
fun networkErrorShowsProperErrorMessage() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
package org.fnives.test.showcase.ui.codekata
|
package org.fnives.test.showcase.ui.codekata
|
||||||
|
|
||||||
class CodeKataLoginRobot {
|
class CodeKataLoginRobot
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ class MainActivityInstrumentedTest : KoinTest {
|
||||||
private val mockServerScenarioSetup
|
private val mockServerScenarioSetup
|
||||||
get() = mockServerScenarioSetupTestRule.mockServerScenarioSetup
|
get() = mockServerScenarioSetupTestRule.mockServerScenarioSetup
|
||||||
private val mainDispatcherTestRule = MainDispatcherTestRule()
|
private val mainDispatcherTestRule = MainDispatcherTestRule()
|
||||||
private lateinit var robot : HomeRobot
|
private lateinit var robot: HomeRobot
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
@JvmField
|
@JvmField
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ import org.hamcrest.core.IsNot.not
|
||||||
|
|
||||||
class LoginRobot(
|
class LoginRobot(
|
||||||
private val snackbarVerificationHelper: SnackbarVerificationHelper = SnackbarVerificationHelper()
|
private val snackbarVerificationHelper: SnackbarVerificationHelper = SnackbarVerificationHelper()
|
||||||
){
|
) {
|
||||||
|
|
||||||
fun setupIntentResults() {
|
fun setupIntentResults() {
|
||||||
Intents.intending(hasComponent(MainActivity::class.java.canonicalName))
|
Intents.intending(hasComponent(MainActivity::class.java.canonicalName))
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class SplashActivityInstrumentedTest : KoinTest {
|
||||||
private val mainDispatcherTestRule = MainDispatcherTestRule()
|
private val mainDispatcherTestRule = MainDispatcherTestRule()
|
||||||
private val mockServerScenarioSetupTestRule = MockServerScenarioSetupResetingTestRule()
|
private val mockServerScenarioSetupTestRule = MockServerScenarioSetupResetingTestRule()
|
||||||
|
|
||||||
private lateinit var robot : SplashRobot
|
private lateinit var robot: SplashRobot
|
||||||
|
|
||||||
@Rule
|
@Rule
|
||||||
@JvmField
|
@JvmField
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue