|
16 | 16 |
|
17 | 17 | package com.google.cloud.spanner; |
18 | 18 |
|
19 | | -import static com.google.cloud.spanner.MockSpannerTestUtil.*; |
| 19 | +import static com.google.cloud.spanner.MockSpannerTestUtil.EMPTY_KEY_VALUE_RESULTSET; |
| 20 | +import static com.google.cloud.spanner.MockSpannerTestUtil.EMPTY_READ_TABLE_NAME; |
| 21 | +import static com.google.cloud.spanner.MockSpannerTestUtil.READ_COLUMN_NAMES; |
| 22 | +import static com.google.cloud.spanner.MockSpannerTestUtil.READ_MULTIPLE_KEY_VALUE_RESULTSET; |
| 23 | +import static com.google.cloud.spanner.MockSpannerTestUtil.READ_MULTIPLE_KEY_VALUE_STATEMENT; |
| 24 | +import static com.google.cloud.spanner.MockSpannerTestUtil.READ_ONE_EMPTY_KEY_VALUE_STATEMENT; |
| 25 | +import static com.google.cloud.spanner.MockSpannerTestUtil.READ_ONE_KEY_VALUE_RESULTSET; |
| 26 | +import static com.google.cloud.spanner.MockSpannerTestUtil.READ_ONE_KEY_VALUE_STATEMENT; |
| 27 | +import static com.google.cloud.spanner.MockSpannerTestUtil.READ_TABLE_NAME; |
| 28 | +import static com.google.cloud.spanner.MockSpannerTestUtil.READ_TABLE_TYPE; |
| 29 | +import static com.google.cloud.spanner.MockSpannerTestUtil.TEST_DATABASE; |
| 30 | +import static com.google.cloud.spanner.MockSpannerTestUtil.TEST_INSTANCE; |
| 31 | +import static com.google.cloud.spanner.MockSpannerTestUtil.TEST_PROJECT; |
| 32 | +import static com.google.cloud.spanner.MockSpannerTestUtil.generateKeyValueResultSet; |
20 | 33 | import static com.google.cloud.spanner.SpannerApiFutures.get; |
21 | 34 | import static com.google.common.truth.Truth.assertThat; |
22 | 35 | import static org.junit.Assert.assertThrows; |
@@ -309,11 +322,14 @@ public void readOnlyTransaction() throws Exception { |
309 | 322 | } |
310 | 323 | try (AsyncResultSet rs = tx.executeQueryAsync(statement2)) { |
311 | 324 | values2 = rs.toListAsync(input -> input.getString("Value"), executor); |
| 325 | + System.out.println(values2); |
312 | 326 | } |
313 | 327 | } |
314 | 328 |
|
315 | 329 | ApiFuture<List<List<String>>> allValuesAsList = |
316 | 330 | ApiFutures.allAsList(Arrays.asList(values1, values2)); |
| 331 | + System.out.println("Values 1 " + String.join(",", values1.get())); |
| 332 | + System.out.println("Values 2 " + String.join(",", values2.get())); |
317 | 333 | ApiFuture<Iterable<String>> allValues = |
318 | 334 | ApiFutures.transform( |
319 | 335 | allValuesAsList, |
|
0 commit comments