From 1ddec22017e9564fc26ea50e483456a93f42078f Mon Sep 17 00:00:00 2001 From: cpovirk Date: Tue, 6 Feb 2024 12:35:24 -0800 Subject: [PATCH] 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`. Some (but not all) of the CLs in this batch require Truth [1.4.0](https://github.com/google/truth/releases/tag/v1.4.0). I submitted a CL earlier today to (I hope) perform that upgrade for your project. PiperOrigin-RevId: 604731456 --- core/test/com/google/inject/util/EnhancedTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/test/com/google/inject/util/EnhancedTest.java b/core/test/com/google/inject/util/EnhancedTest.java index be9dd82584..d54418a7c7 100644 --- a/core/test/com/google/inject/util/EnhancedTest.java +++ b/core/test/com/google/inject/util/EnhancedTest.java @@ -3,7 +3,6 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.Assume.assumeTrue; -import com.google.common.truth.Truth8; import com.google.inject.AbstractModule; import com.google.inject.Guice; import com.google.inject.Injector; @@ -46,8 +45,8 @@ public void unenhancedClass() { assertThat(bar.bar()).isEqualTo("bar"); // The actual tests. - Truth8.assertThat(Enhanced.unenhancedClass(foo.getClass())).isEqualTo(Optional.of(Foo.class)); - Truth8.assertThat(Enhanced.unenhancedClass(bar.getClass())).isEmpty(); + assertThat(Enhanced.unenhancedClass(foo.getClass())).isEqualTo(Optional.of(Foo.class)); + assertThat(Enhanced.unenhancedClass(bar.getClass())).isEmpty(); } private static class InterceptingModule extends AbstractModule {