aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/android/RClassGeneratorActionTest.java
diff options
context:
space:
mode:
authorGravatar corysmith <corysmith@google.com>2018-02-16 13:14:29 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-16 13:18:21 -0800
commitf672a31b8b19baab95373e4f2f6d110aa8b8f0fb (patch)
tree58cef0309a67e62e3fe0ef024916d9d5c53bae8c /src/test/java/com/google/devtools/build/android/RClassGeneratorActionTest.java
parent950bcf79c47484832bb4c84fbb23f6b56800e0b3 (diff)
Normalized the serialization proto to save space and allow greater versatility in storage.
RELNOTES: None PiperOrigin-RevId: 186036607
Diffstat (limited to 'src/test/java/com/google/devtools/build/android/RClassGeneratorActionTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/android/RClassGeneratorActionTest.java36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/test/java/com/google/devtools/build/android/RClassGeneratorActionTest.java b/src/test/java/com/google/devtools/build/android/RClassGeneratorActionTest.java
index e03348cdaa..2f3ae78549 100644
--- a/src/test/java/com/google/devtools/build/android/RClassGeneratorActionTest.java
+++ b/src/test/java/com/google/devtools/build/android/RClassGeneratorActionTest.java
@@ -109,7 +109,7 @@ public class RClassGeneratorActionTest {
Path jarPath = tempDir.resolve("app_resources.jar");
RClassGeneratorAction.main(
- ImmutableList.<String>of(
+ ImmutableList.of(
"--primaryRTxt",
binarySymbols.toString(),
"--primaryManifest",
@@ -165,7 +165,7 @@ public class RClassGeneratorActionTest {
Path jarPath = tempDir.resolve("app_resources.jar");
RClassGeneratorAction.main(
- ImmutableList.<String>of(
+ ImmutableList.of(
"--library",
libFooSymbols + "," + libFooManifest,
"--library",
@@ -212,11 +212,12 @@ public class RClassGeneratorActionTest {
Path jarPath = tempDir.resolve("app_resources.jar");
- RClassGeneratorAction.main(ImmutableList.<String>of(
- "--primaryRTxt", binarySymbols.toString(),
- "--primaryManifest", binaryManifest.toString(),
- "--classJarOutput", jarPath.toString()
- ).toArray(new String[0]));
+ RClassGeneratorAction.main(
+ ImmutableList.of(
+ "--primaryRTxt", binarySymbols.toString(),
+ "--primaryManifest", binaryManifest.toString(),
+ "--classJarOutput", jarPath.toString())
+ .toArray(new String[0]));
assertThat(Files.exists(jarPath)).isTrue();
assertThat(Files.getLastModifiedTime(jarPath)).isEqualTo(FileTime.fromMillis(0));
@@ -239,9 +240,8 @@ public class RClassGeneratorActionTest {
@Test
public void noBinary() throws Exception {
Path jarPath = tempDir.resolve("app_resources.jar");
- RClassGeneratorAction.main(ImmutableList.<String>of(
- "--classJarOutput", jarPath.toString()
- ).toArray(new String[0]));
+ RClassGeneratorAction.main(
+ ImmutableList.of("--classJarOutput", jarPath.toString()).toArray(new String[0]));
assertThat(Files.exists(jarPath)).isTrue();
assertThat(Files.getLastModifiedTime(jarPath)).isEqualTo(FileTime.fromMillis(0));
@@ -271,7 +271,7 @@ public class RClassGeneratorActionTest {
"int string ok 0x1");
Path jarPath = tempDir.resolve("app_resources.jar");
RClassGeneratorAction.main(
- ImmutableList.<String>of(
+ ImmutableList.of(
"--primaryRTxt",
binarySymbols.toString(),
"--primaryManifest",
@@ -313,13 +313,13 @@ public class RClassGeneratorActionTest {
Path binarySymbols = createFile("R.txt", "");
Path jarPath = tempDir.resolve("app_resources.jar");
RClassGeneratorAction.main(
- ImmutableList.<String>of(
- "--primaryRTxt",
- binarySymbols.toString(),
- "--primaryManifest",
- binaryManifest.toString(),
- "--classJarOutput",
- jarPath.toString())
+ ImmutableList.of(
+ "--primaryRTxt",
+ binarySymbols.toString(),
+ "--primaryManifest",
+ binaryManifest.toString(),
+ "--classJarOutput",
+ jarPath.toString())
.toArray(new String[0]));
assertThat(Files.exists(jarPath)).isTrue();