diff --git a/WORKSPACE b/WORKSPACE index 98684b633d..bac5b8cd44 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -33,7 +33,7 @@ maven_install( "com.google.dagger:dagger:2.22.1", "com.google.dagger:dagger-producers:2.22.1", "com.google.errorprone:error_prone_annotations:2.18.0", - "com.google.guava:guava:32.0.0-jre", + "com.google.guava:guava:33.0.0-jre", "commons-logging:commons-logging:1.2", "jakarta.inject:jakarta.inject-api:2.0.1", "jakarta.persistence:jakarta.persistence-api:3.0.0", @@ -54,19 +54,19 @@ maven_install( maven.artifact( "com.google.guava", "guava-testlib", - "32.0.0-jre", + "33.0.0-jre", testonly = True, ), maven.artifact( "com.google.truth", "truth", - "1.1.3", + "1.3.0", testonly = True, ), maven.artifact( "com.google.truth.extensions", "truth-java8-extension", - "1.1.3", + "1.3.0", testonly = True, ), maven.artifact( diff --git a/core/test/com/google/inject/util/EnhancedTest.java b/core/test/com/google/inject/util/EnhancedTest.java index b26254cc19..be9dd82584 100644 --- a/core/test/com/google/inject/util/EnhancedTest.java +++ b/core/test/com/google/inject/util/EnhancedTest.java @@ -1,9 +1,9 @@ package com.google.inject.util; import static com.google.common.truth.Truth.assertThat; -import static com.google.common.truth.Truth8.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 +46,8 @@ public void unenhancedClass() { assertThat(bar.bar()).isEqualTo("bar"); // The actual tests. - assertThat(Enhanced.unenhancedClass(foo.getClass())).isEqualTo(Optional.of(Foo.class)); - assertThat(Enhanced.unenhancedClass(bar.getClass())).isEmpty(); + Truth8.assertThat(Enhanced.unenhancedClass(foo.getClass())).isEqualTo(Optional.of(Foo.class)); + Truth8.assertThat(Enhanced.unenhancedClass(bar.getClass())).isEmpty(); } private static class InterceptingModule extends AbstractModule { diff --git a/pom.xml b/pom.xml index 39beb028f1..d39b044723 100644 --- a/pom.xml +++ b/pom.xml @@ -142,12 +142,12 @@ See the Apache License Version 2.0 for the specific language governing permissio com.google.guava guava - 32.0.0-jre + 33.0.0-jre com.google.guava guava-testlib - 32.0.0-jre + 33.0.0-jre org.ow2.asm @@ -163,13 +163,13 @@ See the Apache License Version 2.0 for the specific language governing permissio com.google.truth truth - 1.1.3 + 1.3.0 test com.google.truth.extensions truth-java8-extension - 1.1.3 + 1.3.0 test @@ -485,4 +485,4 @@ See the Apache License Version 2.0 for the specific language governing permissio - \ No newline at end of file +