From 756afcaba4283902276f1b8dbfc2b8a0486ff007 Mon Sep 17 00:00:00 2001 From: cpovirk Date: Tue, 30 Jan 2024 12:22:44 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 602806046 --- .../com/google/testing/compile/CompilationTest.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/google/testing/compile/CompilationTest.java b/src/test/java/com/google/testing/compile/CompilationTest.java index 51f830ce..21d1eb12 100644 --- a/src/test/java/com/google/testing/compile/CompilationTest.java +++ b/src/test/java/com/google/testing/compile/CompilationTest.java @@ -17,13 +17,13 @@ package com.google.testing.compile; import static com.google.common.truth.Truth.assertThat; -import static com.google.common.truth.Truth8.assertThat; import static com.google.testing.compile.CompilationSubject.assertThat; import static com.google.testing.compile.Compiler.javac; import static javax.tools.StandardLocation.SOURCE_OUTPUT; import static org.junit.Assert.fail; import com.google.common.collect.ImmutableList; +import com.google.common.truth.Truth8; import javax.tools.JavaFileObject; import org.junit.Test; import org.junit.runner.RunWith; @@ -75,21 +75,23 @@ public void compilerStatusFailure() { public void generatedFilePath() { Compiler compiler = compilerWithGenerator(); Compilation compilation = compiler.compile(source1, source2); - assertThat(compilation.generatedFile(SOURCE_OUTPUT, "test/generated/Blah.java")).isPresent(); + Truth8.assertThat(compilation.generatedFile(SOURCE_OUTPUT, "test/generated/Blah.java")) + .isPresent(); } @Test public void generatedFilePackage() { Compiler compiler = compilerWithGenerator(); Compilation compilation = compiler.compile(source1, source2); - assertThat(compilation.generatedFile(SOURCE_OUTPUT, "test.generated", "Blah.java")).isPresent(); + Truth8.assertThat(compilation.generatedFile(SOURCE_OUTPUT, "test.generated", "Blah.java")) + .isPresent(); } @Test public void generatedSourceFile() { Compiler compiler = compilerWithGenerator(); Compilation compilation = compiler.compile(source1, source2); - assertThat(compilation.generatedSourceFile("test.generated.Blah")).isPresent(); + Truth8.assertThat(compilation.generatedSourceFile("test.generated.Blah")).isPresent(); } private static Compiler compilerWithGenerator() {