This repository was archived by the owner on Apr 7, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
google-cloud-spanner/src/test/java/com/google/cloud/spanner/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ public void databaseDeletedTest() throws Exception {
150150 }
151151 }
152152 }
153- if (!isUsingEmulator ()) {
153+ if (!isUsingEmulator ()) {
154154 assertThat (notFoundException ).isNotNull ();
155155 }
156156
Original file line number Diff line number Diff line change 3030import com .google .cloud .spanner .SpannerException ;
3131import com .google .cloud .spanner .Statement ;
3232import com .google .cloud .spanner .Value ;
33- import com .google .cloud .spanner .testing .EmulatorSpannerHelper ;
3433import com .google .cloud .spanner .testing .RemoteSpannerHelper ;
3534import com .google .common .io .Resources ;
3635import java .io .File ;
@@ -134,10 +133,8 @@ public void testWriteAndReadInvalidJsonValues() throws IOException {
134133 .to (Value .json (jsonStr ))
135134 .build ())));
136135
137- if (env .getTestHelper ()
138- .getOptions ()
139- .getSessionPoolOptions ()
140- .getUseMultiplexedSessionForRW () && !isUsingEmulator ()) {
136+ if (env .getTestHelper ().getOptions ().getSessionPoolOptions ().getUseMultiplexedSessionForRW ()
137+ && !isUsingEmulator ()) {
141138 assertEquals (ErrorCode .INVALID_ARGUMENT , exception .getErrorCode ());
142139 } else {
143140 assertEquals (ErrorCode .FAILED_PRECONDITION , exception .getErrorCode ());
Original file line number Diff line number Diff line change @@ -1081,10 +1081,8 @@ public void incorrectType() {
10811081 write (baseInsert ().set ("StringValue" ).to (1.234 ).build ());
10821082 fail ("Expected exception" );
10831083 } catch (SpannerException ex ) {
1084- if (env .getTestHelper ()
1085- .getOptions ()
1086- .getSessionPoolOptions ()
1087- .getUseMultiplexedSessionForRW () && !isUsingEmulator ()) {
1084+ if (env .getTestHelper ().getOptions ().getSessionPoolOptions ().getUseMultiplexedSessionForRW ()
1085+ && !isUsingEmulator ()) {
10881086 assertThat (ex .getErrorCode ()).isEqualTo (ErrorCode .INVALID_ARGUMENT );
10891087 } else {
10901088 assertThat (ex .getErrorCode ()).isEqualTo (ErrorCode .FAILED_PRECONDITION );
You can’t perform that action at this time.
0 commit comments