use of com.google.cloud.spanner.testing.RemoteSpannerHelper in project google-cloud-java by GoogleCloudPlatform.
the class ITReadTest method invalidDatabase.
@Test
public void invalidDatabase() {
RemoteSpannerHelper helper = env.getTestHelper();
DatabaseClient invalidClient = helper.getClient().getDatabaseClient(DatabaseId.of(helper.getInstanceId(), "invalid"));
expectedException.expect(isSpannerException(ErrorCode.NOT_FOUND));
invalidClient.singleUse(TimestampBound.strong()).readRow(TABLE_NAME, Key.of("k99"), ALL_COLUMNS);
}
Aggregations