mirror of
https://github.com/google/guice.git
synced 2026-10-19 16:16:21 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user