aboutsummaryrefslogtreecommitdiff
path: root/javatests/com/google/turbine/parse/ParserIntegrationTest.java
diff options
context:
space:
mode:
authorYifei Zhang <yfz@google.com>2023-07-25 06:22:44 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-07-25 06:22:44 +0000
commit820217dbd28c436832f767eac170689c9f3caee0 (patch)
tree405bdc36825a61db2a15f10b8775c78010ee0b56 /javatests/com/google/turbine/parse/ParserIntegrationTest.java
parentd4be1f10b831f4c3774091c74e4b904ec6450c9a (diff)
parent5ff202242e75c1618ee1242e69f39741941c0949 (diff)
downloadturbine-820217dbd28c436832f767eac170689c9f3caee0.tar.gz
Upgrade turbine to 7c64f0447a967d4717adb7b1b40d8bb856f34186 am: 6f7cfa29c3 am: 278edfeffb am: 5ff202242e
Original change: https://android-review.googlesource.com/c/platform/external/turbine/+/2674341 Change-Id: I6be35c08194a231d004d7c64fb4ec11f8da5a1b1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'javatests/com/google/turbine/parse/ParserIntegrationTest.java')
-rw-r--r--javatests/com/google/turbine/parse/ParserIntegrationTest.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/javatests/com/google/turbine/parse/ParserIntegrationTest.java b/javatests/com/google/turbine/parse/ParserIntegrationTest.java
index c758a74..0981815 100644
--- a/javatests/com/google/turbine/parse/ParserIntegrationTest.java
+++ b/javatests/com/google/turbine/parse/ParserIntegrationTest.java
@@ -20,15 +20,12 @@ import static com.google.common.base.Verify.verifyNotNull;
import static com.google.common.truth.Truth.assertThat;
import static java.nio.charset.StandardCharsets.UTF_8;
-import com.google.common.base.Function;
import com.google.common.base.Splitter;
-import com.google.common.collect.Iterables;
import com.google.common.io.CharStreams;
import com.google.turbine.tree.Tree;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
-import java.util.Arrays;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -39,8 +36,8 @@ import org.junit.runners.Parameterized.Parameters;
public class ParserIntegrationTest {
@Parameters(name = "{index}: {0}")
- public static Iterable<Object[]> parameters() {
- String[] tests = {
+ public static String[] parameters() {
+ return new String[] {
"anno1.input",
"anno2.input",
"annodecl1.input",
@@ -79,14 +76,6 @@ public class ParserIntegrationTest {
"record.input",
"sealed.input",
};
- return Iterables.transform(
- Arrays.asList(tests),
- new Function<String, Object[]>() {
- @Override
- public Object[] apply(String input) {
- return new Object[] {input};
- }
- });
}
final String input;