Issue#67 Fix Code Analysis errors
This commit is contained in:
parent
99141c0f17
commit
8d60a37b16
16 changed files with 31 additions and 24 deletions
|
|
@ -5,6 +5,7 @@ import androidx.test.espresso.intent.Intents.intended
|
|||
import org.hamcrest.Matcher
|
||||
import org.hamcrest.StringDescription
|
||||
|
||||
@Suppress("SwallowedException")
|
||||
fun notIntended(matcher: Matcher<Intent>) {
|
||||
try {
|
||||
intended(matcher)
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ import androidx.test.espresso.ViewAction
|
|||
import androidx.test.espresso.action.ViewActions
|
||||
import androidx.test.espresso.assertion.ViewAssertions
|
||||
import androidx.test.espresso.matcher.ViewMatchers
|
||||
import com.google.android.material.R as MaterialR
|
||||
import com.google.android.material.snackbar.Snackbar
|
||||
import org.hamcrest.Matcher
|
||||
import org.hamcrest.Matchers
|
||||
import com.google.android.material.R as MaterialR
|
||||
|
||||
object SnackbarVerificationHelper {
|
||||
|
||||
|
|
@ -41,4 +41,4 @@ object SnackbarVerificationHelper {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,4 +32,4 @@ fun loopMainThreadFor(delay: Long) {
|
|||
} else {
|
||||
Espresso.onView(ViewMatchers.isRoot()).perform(LoopMainThreadFor(delay))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,4 +14,4 @@ class LoopMainThreadFor(private val delayInMillis: Long) : ViewAction {
|
|||
override fun perform(uiController: UiController, view: View?) {
|
||||
uiController.loopMainThreadForAtLeast(delayInMillis)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,4 +14,4 @@ class LoopMainThreadUntilIdle : ViewAction {
|
|||
override fun perform(uiController: UiController, view: View?) {
|
||||
uiController.loopMainThreadUntilIdle()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue