aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpovirk <cpovirk@google.com>2024-02-06 14:23:04 -0800
committerDagger Team <dagger-dev+copybara@google.com>2024-02-06 14:26:08 -0800
commitd7a55beef527640f25f9c6c3ddef74ee9045b4f4 (patch)
tree9fd9483ada68976553deef848b929287961070ea
parent76cebe1c72a4ceb33046d756a5ba4679d26a72e0 (diff)
downloaddagger2-d7a55beef527640f25f9c6c3ddef74ee9045b4f4.tar.gz
Migrate usages of `Truth8.assertThat` to equivalent usages of `Truth.assertThat`.
The `Truth8` methods will be deprecated (or hidden) in the future. Callers should move to `Truth`. PiperOrigin-RevId: 604763576
-rw-r--r--javatests/dagger/functional/kotlinsrc/assisted/AssistedFactoryAsQualifiedBindingTest.kt9
1 files changed, 4 insertions, 5 deletions
diff --git a/javatests/dagger/functional/kotlinsrc/assisted/AssistedFactoryAsQualifiedBindingTest.kt b/javatests/dagger/functional/kotlinsrc/assisted/AssistedFactoryAsQualifiedBindingTest.kt
index 90814c57f..af891d751 100644
--- a/javatests/dagger/functional/kotlinsrc/assisted/AssistedFactoryAsQualifiedBindingTest.kt
+++ b/javatests/dagger/functional/kotlinsrc/assisted/AssistedFactoryAsQualifiedBindingTest.kt
@@ -17,7 +17,6 @@
package dagger.functional.kotlinsrc.assisted
import com.google.common.truth.Truth.assertThat
-import com.google.common.truth.Truth8
import dagger.Binds
import dagger.BindsInstance
import dagger.BindsOptionalOf
@@ -169,10 +168,10 @@ internal class AssistedFactoryAsQualifiedBindingTest {
assertThat(foo.barFactoryAsBinds).isEqualTo(barFactory)
// Test injection of a qualified Bar/BarFactory with custom @BindsOptionalOf implementation
- Truth8.assertThat(foo.optionalBar).isPresent()
- Truth8.assertThat(foo.optionalBar).hasValue(bar)
- Truth8.assertThat(foo.optionalBarFactory).isPresent()
- Truth8.assertThat(foo.optionalBarFactory).hasValue(barFactory)
+ assertThat(foo.optionalBar).isPresent()
+ assertThat(foo.optionalBar).hasValue(bar)
+ assertThat(foo.optionalBarFactory).isPresent()
+ assertThat(foo.optionalBarFactory).hasValue(barFactory)
// Test injection of a qualified Bar/BarFactory as multibinding
assertThat(foo.barSet).containsExactly(bar)