@@ -31,23 +31,24 @@ public class KeyRecipeTest {
3131
3232 @ Test
3333 public void queryParamsUsesStructIdentifiers () throws Exception {
34- com .google .spanner .v1 .KeyRecipe recipeProto = createRecipe (
35- "part { tag: 1 } \n "
36- + "part {\n "
37- + " order: ASCENDING \n "
38- + " null_order: NULLS_FIRST \n "
39- + " type { code: STRING } \n "
40- + " identifier: \" p0 \" \n "
41- + " struct_identifiers: 1 \n "
42- + "} \n " );
43-
34+ com .google .spanner .v1 .KeyRecipe recipeProto =
35+ createRecipe (
36+ "part { tag: 1 } \n "
37+ + "part { \n "
38+ + " order: ASCENDING \n "
39+ + " null_order: NULLS_FIRST \n "
40+ + " type { code: STRING } \n "
41+ + " identifier: \" p0 \" \n "
42+ + " struct_identifiers: 1 \n "
43+ + "} \n " );
4444
4545 Struct params =
4646 parseStruct (
4747 "fields {\n "
4848 + " key: \" p0\" \n "
4949 + " value {\n "
50- + " list_value { values { string_value: \" a\" } values { string_value: \" b\" } }\n "
50+ + " list_value { values { string_value: \" a\" } values { string_value: \" b\" }"
51+ + " }\n "
5152 + " }\n "
5253 + "}\n " );
5354
@@ -59,14 +60,15 @@ public void queryParamsUsesStructIdentifiers() throws Exception {
5960
6061 @ Test
6162 public void queryParamsUsesConstantValue () throws Exception {
62- com .google .spanner .v1 .KeyRecipe recipeProto = createRecipe (
63- "part { tag: 1 }\n "
64- + "part {\n "
65- + " order: ASCENDING\n "
66- + " null_order: NULLS_FIRST\n "
67- + " type { code: STRING }\n "
68- + " value { string_value: \" const\" }\n "
69- + "}\n " );
63+ com .google .spanner .v1 .KeyRecipe recipeProto =
64+ createRecipe (
65+ "part { tag: 1 }\n "
66+ + "part {\n "
67+ + " order: ASCENDING\n "
68+ + " null_order: NULLS_FIRST\n "
69+ + " type { code: STRING }\n "
70+ + " value { string_value: \" const\" }\n "
71+ + "}\n " );
7072
7173 KeyRecipe recipe = KeyRecipe .create (recipeProto );
7274 TargetRange target = recipe .queryParamsToTargetRange (Struct .getDefaultInstance ());
@@ -76,8 +78,7 @@ public void queryParamsUsesConstantValue() throws Exception {
7678
7779 private static com .google .spanner .v1 .KeyRecipe createRecipe (String text )
7880 throws TextFormat .ParseException {
79- com .google .spanner .v1 .KeyRecipe .Builder builder =
80- com .google .spanner .v1 .KeyRecipe .newBuilder ();
81+ com .google .spanner .v1 .KeyRecipe .Builder builder = com .google .spanner .v1 .KeyRecipe .newBuilder ();
8182 TextFormat .merge (text , builder );
8283 return builder .build ();
8384 }
0 commit comments