Commit cb5f9d6 1 parent 593acc3 commit cb5f9d6 Copy full SHA for cb5f9d6
File tree 1 file changed +6
-5
lines changed
google-cloud-firestore/src/test/java/com/google/cloud/firestore
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 24
24
import static com .google .cloud .firestore .LocalFirestoreHelper .UPDATED_FIELD_PROTO ;
25
25
import static com .google .cloud .firestore .LocalFirestoreHelper .map ;
26
26
import static com .google .cloud .firestore .LocalFirestoreHelper .string ;
27
+ import static org .junit .Assert .assertArrayEquals ;
27
28
import static org .junit .Assert .assertEquals ;
28
29
import static org .junit .Assert .assertFalse ;
29
30
import static org .junit .Assert .assertNotEquals ;
30
31
import static org .junit .Assert .assertNotNull ;
31
- import static org .junit .Assert .assertTrue ;
32
32
import static org .mockito .Mockito .*;
33
33
34
34
import com .google .api .gax .grpc .GrpcStatusCode ;
@@ -169,10 +169,11 @@ public void before() {
169
169
170
170
@ After
171
171
public void after () {
172
- assertTrue (exceptions .isEmpty ());
173
- assertTrue (requests .isEmpty ());
174
- assertTrue (documentSnapshots .isEmpty ());
175
- assertTrue (querySnapshots .isEmpty ());
172
+ Object [] emptyArray = new Object [0 ];
173
+ assertArrayEquals (exceptions .toArray (), emptyArray );
174
+ assertArrayEquals (requests .toArray (), emptyArray );
175
+ assertArrayEquals (documentSnapshots .toArray (), emptyArray );
176
+ assertArrayEquals (querySnapshots .toArray (), emptyArray );
176
177
listenerRegistration .remove ();
177
178
}
178
179
You can’t perform that action at this time.
0 commit comments