Skip to content

Commit 9b45dc0

Browse files
cpovirksduskis
authored andcommitted
---
yaml --- r: 30473 b: refs/heads/autosynth-automl c: 6b78c52 h: refs/heads/master i: 30471: 7760594
1 parent 11f0738 commit 9b45dc0

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ refs/heads/spanner: b01127f885b4611bf1852abb0ce481eeb7fcc131
121121
refs/tags/v0.68.0: 9cc799fcf68c82ab431d425fefa58ef615ce8e5b
122122
refs/tags/v0.69.0: 78f67a29e8b9c46ba01de566a2eae0fd1c03edea
123123
refs/heads/autosynth-asset: bdb45634a0fe8f7a510692b56b31f5312e25f453
124-
refs/heads/autosynth-automl: 1b29001e39672994368e51ce6fae44a5528613fa
124+
refs/heads/autosynth-automl: 6b78c52cfa63334e3846e348752f8345d78f0aa8
125125
refs/heads/autosynth-bigquerydatatransfer: d88aa5aae5fd9d3c6d75bbab1a05162c6d4d948f
126126
refs/heads/autosynth-bigquerystorage: d2c53da3b012e38c662e4df0738042435f19365f
127127
refs/heads/autosynth-bigtable: 9e5429f45cf9face9fed585d0233534993e36b58

branches/autosynth-automl/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MutationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public void serializationBasic() {
233233
Mutation.toProto(mutations, proto);
234234

235235
assertThat(proto.size()).isAtLeast(1);
236-
assertThat(proto.get(0)).isSameAs(existingProto);
236+
assertThat(proto.get(0)).isSameInstanceAs(existingProto);
237237
proto.remove(0);
238238

239239
assertThat(proto.size()).isEqualTo(5);

branches/autosynth-automl/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void getDbclientAgainGivesSame() {
9494
// Get db client again
9595
DatabaseClient databaseClient1 = impl.getDatabaseClient(db);
9696

97-
assertThat(databaseClient1).isSameAs(databaseClient);
97+
assertThat(databaseClient1).isSameInstanceAs(databaseClient);
9898
}
9999

100100
@Test

branches/autosynth-automl/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/TypeTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private abstract static class ScalarTypeTester {
4747
void test() {
4848
Type t = newType();
4949
assertThat(t.getCode()).isEqualTo(expectedCode);
50-
assertThat(newType()).isSameAs(t); // Interned.
50+
assertThat(newType()).isSameInstanceAs(t); // Interned.
5151
// String form is deliberately the same as the corresponding type enum in the public API.
5252
assertThat(t.toString()).isEqualTo(expectedProtoCode.toString());
5353

@@ -59,7 +59,7 @@ void test() {
5959
// Round trip.
6060
Type fromProto = Type.fromProto(proto);
6161
assertThat(fromProto).isEqualTo(t);
62-
assertThat(fromProto).isSameAs(t);
62+
assertThat(fromProto).isSameInstanceAs(t);
6363

6464
reserializeAndAssert(t);
6565
}
@@ -155,7 +155,7 @@ void test() {
155155
assertThat(t.getCode()).isEqualTo(Type.Code.ARRAY);
156156
assertThat(t.getArrayElementType()).isEqualTo(elementType);
157157
if (expectInterned) {
158-
assertThat(Type.array(newElementType())).isSameAs(t);
158+
assertThat(Type.array(newElementType())).isSameInstanceAs(t);
159159
}
160160
assertThat(t.toString()).isEqualTo("ARRAY<" + elementType.toString() + ">");
161161

@@ -168,7 +168,7 @@ void test() {
168168
assertThat(fromProto).isEqualTo(t);
169169

170170
if (expectInterned) {
171-
assertThat(fromProto).isSameAs(t);
171+
assertThat(fromProto).isSameInstanceAs(t);
172172
}
173173
reserializeAndAssert(t);
174174
}

branches/autosynth-automl/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/ValueTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ public void bytes() {
214214
Value v = Value.bytes(bytes);
215215
assertThat(v.getType()).isEqualTo(Type.bytes());
216216
assertThat(v.isNull()).isFalse();
217-
assertThat(v.getBytes()).isSameAs(bytes);
217+
assertThat(v.getBytes()).isSameInstanceAs(bytes);
218218
assertThat(v.toString()).isEqualTo(bytes.toString());
219219
}
220220

221221
@Test
222222
public void bytesUnprintable() {
223223
ByteArray bytes = ByteArray.copyFrom(new byte[] {'a', 0, 15, -1, 'e'});
224224
Value v = Value.bytes(bytes);
225-
assertThat(v.getBytes()).isSameAs(bytes);
225+
assertThat(v.getBytes()).isSameInstanceAs(bytes);
226226
assertThat(v.toString()).isEqualTo(bytes.toString());
227227
}
228228

@@ -246,7 +246,7 @@ public void timestamp() {
246246
assertThat(v.getType()).isEqualTo(Type.timestamp());
247247
assertThat(v.isNull()).isFalse();
248248
assertThat(v.isCommitTimestamp()).isFalse();
249-
assertThat(v.getTimestamp()).isSameAs(t);
249+
assertThat(v.getTimestamp()).isSameInstanceAs(t);
250250
assertThat(v.toString()).isEqualTo(timestamp);
251251
}
252252

@@ -286,7 +286,7 @@ public void date() {
286286
Value v = Value.date(t);
287287
assertThat(v.getType()).isEqualTo(Type.date());
288288
assertThat(v.isNull()).isFalse();
289-
assertThat(v.getDate()).isSameAs(t);
289+
assertThat(v.getDate()).isSameInstanceAs(t);
290290
assertThat(v.toString()).isEqualTo(date);
291291
}
292292

0 commit comments

Comments
 (0)