Commit cc47045
authored
Improving Unit Test Coverage (firebase#100)
* Prototyping Firestore integration for Java
* Some code cleanup
* Updating comments
* Code cleanup
* Removed getInstance() methods from FirestoreClient and added getFirestore() methods.
* Minor cleanup
* Adding Firestore OAuth scopes
* Some documentation updates
* Reverted a doc change
* Updating GCS dependency version (firebase#89)
* Netty-based websocket impl
* Refactored the Netty stuff to a separate util class
* More code clean up and removing tubesock package
* Using the SDK ThreadManager for DB websocket threads
* More code cleanup and error checks
* Handling connection drop events
* Handling connection loss events
* Adding documentation
* Removed string list reader
* Removing redundant whitespace
* Revert "Using the SDK ThreadManager for DB websocket threads"
This reverts commit 8e90610.
* src/main/java/com/google/firebase/database/connection/util/StringListReader.java
* Added StringListReader back
* Re-updated websocket client
* reverting more syntactic changes
* Adding new line
* Added documentation; Using a more secure trust manager; Other cleanup
* Removed unused import
* Using the port on URI when available
* Added jacoco plugin and parser
* Coverage reporter impl
* More unit tests and cleaning up dead code
* More tests for RTDB
* More database tests
* Some unit tests for Repo
* More tests for Repo
* Cleaning up mocks
* debug info
* More debug info
* Updated repo test
* Cleaned up test code
* Removed some code changes
* Connection tests
* More unit tests
* Updated test
* More unit tests for PersistentConnectionImpl
* Refactored persistent conn tests
* More connection tests
* Some user management and DB Node tests
* StorageClient unit tests
* cleaned up PersistentConnectionTest
* Fixed typo
* Removing websocket commpression handler
* Unit tests for Connection class
* More tests for the connection package
* Unit tests for GaeExecutorService
* Updated test
* Fixing a lint error
* Added more tests
* More test coverage
* Refactored GaeExecutorService class
* Refactored various connection factory interfaces
* Minor refactoring
* Refactoring iterative test case with a map1 parent 32b3143 commit cc47045
File tree
22 files changed
+1602
-224
lines changed- src
- main/java/com/google/firebase
- cloud
- database
- connection
- core
- util
- internal
- test/java/com/google/firebase
- auth
- cloud
- database
- collection
- connection
- core
- snapshot
- internal
22 files changed
+1602
-224
lines changedLines changed: 12 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
| |||
99 | 103 | | |
100 | 104 | | |
101 | 105 | | |
102 | | - | |
103 | | - | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
| |||
Lines changed: 45 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
44 | 48 | | |
45 | | - | |
46 | 49 | | |
47 | 50 | | |
48 | | - | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
54 | 67 | | |
55 | 68 | | |
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
59 | | - | |
| 72 | + | |
60 | 73 | | |
61 | 74 | | |
62 | 75 | | |
| |||
246 | 259 | | |
247 | 260 | | |
248 | 261 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | 262 | | |
255 | 263 | | |
256 | 264 | | |
| |||
262 | 270 | | |
263 | 271 | | |
264 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
265 | 301 | | |
266 | 302 | | |
267 | 303 | | |
| |||
Lines changed: 46 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
129 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | | - | |
133 | 141 | | |
134 | 142 | | |
135 | 143 | | |
| |||
422 | 430 | | |
423 | 431 | | |
424 | 432 | | |
425 | | - | |
| 433 | + | |
426 | 434 | | |
427 | 435 | | |
428 | 436 | | |
| |||
524 | 532 | | |
525 | 533 | | |
526 | 534 | | |
527 | | - | |
| 535 | + | |
528 | 536 | | |
529 | | - | |
| 537 | + | |
530 | 538 | | |
531 | | - | |
| 539 | + | |
532 | 540 | | |
533 | 541 | | |
534 | 542 | | |
535 | | - | |
| 543 | + | |
536 | 544 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
541 | 548 | | |
542 | 549 | | |
543 | 550 | | |
| |||
1054 | 1061 | | |
1055 | 1062 | | |
1056 | 1063 | | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1068 | 1067 | | |
1069 | 1068 | | |
1070 | 1069 | | |
| |||
1137 | 1136 | | |
1138 | 1137 | | |
1139 | 1138 | | |
1140 | | - | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | 1139 | | |
1148 | 1140 | | |
1149 | 1141 | | |
| |||
1215 | 1207 | | |
1216 | 1208 | | |
1217 | 1209 | | |
1218 | | - | |
| 1210 | + | |
1219 | 1211 | | |
1220 | 1212 | | |
1221 | 1213 | | |
1222 | | - | |
| 1214 | + | |
1223 | 1215 | | |
1224 | 1216 | | |
1225 | 1217 | | |
1226 | | - | |
| 1218 | + | |
1227 | 1219 | | |
1228 | 1220 | | |
1229 | 1221 | | |
| |||
1247 | 1239 | | |
1248 | 1240 | | |
1249 | 1241 | | |
1250 | | - | |
| 1242 | + | |
1251 | 1243 | | |
1252 | 1244 | | |
1253 | 1245 | | |
1254 | | - | |
| 1246 | + | |
1255 | 1247 | | |
1256 | 1248 | | |
1257 | 1249 | | |
1258 | | - | |
| 1250 | + | |
1259 | 1251 | | |
1260 | 1252 | | |
1261 | 1253 | | |
1262 | | - | |
| 1254 | + | |
1263 | 1255 | | |
1264 | 1256 | | |
1265 | 1257 | | |
1266 | | - | |
| 1258 | + | |
1267 | 1259 | | |
1268 | 1260 | | |
1269 | 1261 | | |
| |||
1299 | 1291 | | |
1300 | 1292 | | |
1301 | 1293 | | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
1302 | 1308 | | |
0 commit comments