@@ -152,11 +152,11 @@ public void endTimeTest() {
152152 @ Test
153153 public void heartbeatDurationTest () {
154154 ReadChangeStreamQuery query =
155- ReadChangeStreamQuery .create (TABLE_ID ).heartbeatDuration (java .time .Duration .ofSeconds (5 ));
155+ ReadChangeStreamQuery .create (TABLE_ID )
156+ .heartbeatDuration (org .threeten .bp .Duration .ofSeconds (5 ));
156157
157158 Builder expectedProto =
158- expectedProtoBuilder ()
159- .setHeartbeatDuration (com .google .protobuf .Duration .newBuilder ().setSeconds (5 ).build ());
159+ expectedProtoBuilder ().setHeartbeatDuration (Duration .newBuilder ().setSeconds (5 ).build ());
160160
161161 ReadChangeStreamRequest actualProto = query .toProto (requestContext );
162162 assertThat (actualProto ).isEqualTo (expectedProto .build ());
@@ -232,7 +232,7 @@ public void serializationTest() throws IOException, ClassNotFoundException {
232232 .streamPartition ("simple-begin" , "simple-end" )
233233 .continuationTokens (Collections .singletonList (token ))
234234 .endTime (FAKE_END_TIME )
235- .heartbeatDuration (java . time .Duration .ofSeconds (5 ));
235+ .heartbeatDuration (org . threeten . bp .Duration .ofSeconds (5 ));
236236
237237 ByteArrayOutputStream bos = new ByteArrayOutputStream ();
238238 ObjectOutputStream oos = new ObjectOutputStream (bos );
@@ -302,7 +302,7 @@ public void testEquality() {
302302 .streamPartition ("simple-begin" , "simple-end" )
303303 .startTime (FAKE_START_TIME )
304304 .endTime (FAKE_END_TIME )
305- .heartbeatDuration (java . time .Duration .ofSeconds (5 ));
305+ .heartbeatDuration (org . threeten . bp .Duration .ofSeconds (5 ));
306306
307307 // ReadChangeStreamQuery#toProto should not change the ReadChangeStreamQuery instance state
308308 request .toProto (requestContext );
@@ -312,7 +312,7 @@ public void testEquality() {
312312 .streamPartition ("simple-begin" , "simple-end" )
313313 .startTime (FAKE_START_TIME )
314314 .endTime (FAKE_END_TIME )
315- .heartbeatDuration (java . time .Duration .ofSeconds (5 )));
315+ .heartbeatDuration (org . threeten . bp .Duration .ofSeconds (5 )));
316316
317317 assertThat (ReadChangeStreamQuery .create (TABLE_ID ).streamPartition ("begin-1" , "end-1" ))
318318 .isNotEqualTo (ReadChangeStreamQuery .create (TABLE_ID ).streamPartition ("begin-2" , "end-1" ));
@@ -324,10 +324,10 @@ public void testEquality() {
324324 ReadChangeStreamQuery .create (TABLE_ID ).endTime (Instant .ofEpochSecond (1L , 1001L )));
325325 assertThat (
326326 ReadChangeStreamQuery .create (TABLE_ID )
327- .heartbeatDuration (java . time .Duration .ofSeconds (5 )))
327+ .heartbeatDuration (org . threeten . bp .Duration .ofSeconds (5 )))
328328 .isNotEqualTo (
329329 ReadChangeStreamQuery .create (TABLE_ID )
330- .heartbeatDuration (java . time .Duration .ofSeconds (6 )));
330+ .heartbeatDuration (org . threeten . bp .Duration .ofSeconds (6 )));
331331 }
332332
333333 @ Test
@@ -350,7 +350,7 @@ public void testClone() {
350350 .streamPartition ("begin" , "end" )
351351 .continuationTokens (Collections .singletonList (token ))
352352 .endTime (FAKE_END_TIME )
353- .heartbeatDuration (java . time .Duration .ofSeconds (5 ));
353+ .heartbeatDuration (org . threeten . bp .Duration .ofSeconds (5 ));
354354 ReadChangeStreamRequest request =
355355 ReadChangeStreamRequest .newBuilder ()
356356 .setTableName (NameUtil .formatTableName (PROJECT_ID , INSTANCE_ID , TABLE_ID ))
0 commit comments