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
This commit is contained in:
cpovirk
2024-02-06 12:36:36 -08:00
committed by Guice Team
parent a7c5944a67
commit 1ddec22017
@@ -3,7 +3,6 @@ package com.google.inject.util;
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 final class EnhancedTest {
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 {