Skip to content

Commit

Permalink
Merge pull request #765 from square/renovate/androidx.test-and-friends
Browse files Browse the repository at this point in the history
Update androidx.test and friends
  • Loading branch information
RBusarow authored Oct 31, 2023
2 parents b191f30 + 1dec3e4 commit 6fdf50d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
agp = "7.3.1"
androidx-appcompat = "1.1.0"
androidx-core = "1.3.0"
androidx-test = "1.1.0"
androidx-test-ext = "1.1.1"
androidx-test = "1.5.0"
androidx-test-ext = "1.1.5"
autoService = "1.1.1"
autoValue = "1.10.1"
buildconfig = "4.1.2"
Expand Down Expand Up @@ -104,4 +104,4 @@ ktlintRaw = { module = "org.jlleitschuh.gradle:ktlint-gradle", version.ref = "kt

mavenPublishRaw = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "mavenPublish" }

truth = "com.google.truth:truth:1.1.3"
truth = "com.google.truth:truth:1.1.5"
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.rule.ActivityTestRule
import com.google.common.truth.Truth.assertThat
import com.squareup.scopes.ComponentHolder
import org.junit.Rule
Expand All @@ -16,7 +16,7 @@ import org.junit.runner.RunWith
class AnvilSampleTest {

@Rule @JvmField
val activityRule = ActivityTestRule(MainActivity::class.java)
val activityRule = ActivityScenarioRule(MainActivity::class.java)

@Test fun text_is_displayed() {
onView(withText("Hephaestus, son of (No Father) and Hera")).check(matches(isDisplayed()))
Expand Down

0 comments on commit 6fdf50d

Please sign in to comment.