Repository navigation
Commit 4b773f9
committed
test(bigtable): remove unnecessary deep stubs from streaming callable mocks
Remove `defaultAnswer(Answers.RETURNS_DEEP_STUBS)` from programmatic
mocks of `ServerStreamingCallable` in `BigtableDataClientTests`.
Mockito's deep stubs cause reflection crashes on Java 8 when dealing
with JSpecify annotations. Since the tests do not rely on deep stubs
for these callables, they can be safely removed.
TAG=agy
CONV=de3ef09d-a26c-4190-b578-4c993f807bdc1 parent cfca7f4 commit 4b773f9
1 file changed
Lines changed: 3 additions & 9 deletions
File tree
- java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 108 | + | |
111 | 109 | | |
112 | 110 | | |
113 | 111 | | |
| |||
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 130 | + | |
135 | 131 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 132 | + | |
139 | 133 | | |
140 | 134 | | |
141 | 135 | | |
| |||
0 commit comments