Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): Bump Truth to 1.4.2. #5194

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -228,23 +228,23 @@ class ProductsAPITest {

class SearchSubject private constructor(
failureMetadata: FailureMetadata,
private val actual: Search,
private val actual: Search?,
) : Subject(failureMetadata, actual) {

fun hasFoundProducts() {
check("count").that(actual.count.toInt()).isGreaterThan(0)
check("count").that(actual!!.count.toInt()).isGreaterThan(0)
check("products").that(actual.products).isNotEmpty()
}

fun hasFoundNoProducts() {
check("count").that(actual.count.toInt()).isEqualTo(0)
check("count").that(actual!!.count.toInt()).isEqualTo(0)
check("products").that(actual.products).isEmpty()
}

companion object {
private fun searches() = Factory(::SearchSubject)

fun assertThat(actual: Search): SearchSubject {
fun assertThat(actual: Search?): SearchSubject {
return assertAbout(searches()).that(actual)
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Expand Up @@ -23,7 +23,7 @@ org-mockito = "5.10.0"
mockk = "1.13.9"
com-squareup-retrofit2 = "2.6.4"
androidx-test-espresso = "3.4.0"
truth = "1.1.3"
truth = "1.4.2"
ui = "1.4.3"
core-splashscreen = "1.0.1"

Expand Down