This repository was archived by the owner on May 8, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
google-cloud-bigtable/src/test/java/com/google/cloud/bigtable Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464import com .google .protobuf .AbstractMessage ;
6565import com .google .protobuf .Empty ;
6666import io .grpc .stub .StreamObserver ;
67- import java .util .ArrayDeque ;
6867import java .util .ArrayList ;
68+ import java .util .LinkedList ;
6969import java .util .List ;
7070import java .util .Queue ;
7171import javax .annotation .Generated ;
@@ -78,7 +78,7 @@ public class MockBigtableInstanceAdminImpl extends BigtableInstanceAdminImplBase
7878
7979 public MockBigtableInstanceAdminImpl () {
8080 requests = new ArrayList <>();
81- responses = new ArrayDeque <>();
81+ responses = new LinkedList <>();
8282 }
8383
8484 public List <AbstractMessage > getRequests () {
@@ -90,7 +90,7 @@ public void addResponse(AbstractMessage response) {
9090 }
9191
9292 public void setResponses (List <AbstractMessage > responses ) {
93- this .responses = new ArrayDeque < >(responses );
93+ this .responses = new LinkedList < Object >(responses );
9494 }
9595
9696 public void addException (Exception exception ) {
@@ -99,7 +99,7 @@ public void addException(Exception exception) {
9999
100100 public void reset () {
101101 requests = new ArrayList <>();
102- responses = new ArrayDeque <>();
102+ responses = new LinkedList <>();
103103 }
104104
105105 @ Override
Original file line number Diff line number Diff line change 7171import com .google .protobuf .AbstractMessage ;
7272import com .google .protobuf .Empty ;
7373import io .grpc .stub .StreamObserver ;
74- import java .util .ArrayDeque ;
7574import java .util .ArrayList ;
75+ import java .util .LinkedList ;
7676import java .util .List ;
7777import java .util .Queue ;
7878import javax .annotation .Generated ;
@@ -85,7 +85,7 @@ public class MockBigtableTableAdminImpl extends BigtableTableAdminImplBase {
8585
8686 public MockBigtableTableAdminImpl () {
8787 requests = new ArrayList <>();
88- responses = new ArrayDeque <>();
88+ responses = new LinkedList <>();
8989 }
9090
9191 public List <AbstractMessage > getRequests () {
@@ -97,7 +97,7 @@ public void addResponse(AbstractMessage response) {
9797 }
9898
9999 public void setResponses (List <AbstractMessage > responses ) {
100- this .responses = new ArrayDeque < >(responses );
100+ this .responses = new LinkedList < Object >(responses );
101101 }
102102
103103 public void addException (Exception exception ) {
@@ -106,7 +106,7 @@ public void addException(Exception exception) {
106106
107107 public void reset () {
108108 requests = new ArrayList <>();
109- responses = new ArrayDeque <>();
109+ responses = new LinkedList <>();
110110 }
111111
112112 @ Override
Original file line number Diff line number Diff line change @@ -533,7 +533,8 @@ public void testFromProtoWithBothTableAndAuthorizedViewId() {
533533 assertThat (e )
534534 .hasMessageThat ()
535535 .startsWith (
536- "Only one of table name, authorized view name and materialized view name can be specified at the same time" );
536+ "Only one of table name, authorized view name and materialized view name can be"
537+ + " specified at the same time" );
537538 }
538539
539540 @ Test
Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ public void testFromProtoWithBothTableAndAuthorizedViewId() {
161161 assertThat (e )
162162 .hasMessageThat ()
163163 .startsWith (
164- "Only one of table name, authorized view name and materialized view name can be specified at the same time." );
164+ "Only one of table name, authorized view name and materialized view name can be"
165+ + " specified at the same time." );
165166 }
166167
167168 @ Test
You can’t perform that action at this time.
0 commit comments