OLD | NEW |
1 library googleapis.plus.v1.test; | 1 library googleapis.plus.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed1986() { | 54 buildUnnamed119() { |
55 var o = new core.List<api.PlusAclentryResource>(); | 55 var o = new core.List<api.PlusAclentryResource>(); |
56 o.add(buildPlusAclentryResource()); | 56 o.add(buildPlusAclentryResource()); |
57 o.add(buildPlusAclentryResource()); | 57 o.add(buildPlusAclentryResource()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed1986(core.List<api.PlusAclentryResource> o) { | 61 checkUnnamed119(core.List<api.PlusAclentryResource> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkPlusAclentryResource(o[0]); | 63 checkPlusAclentryResource(o[0]); |
64 checkPlusAclentryResource(o[1]); | 64 checkPlusAclentryResource(o[1]); |
65 } | 65 } |
66 | 66 |
67 core.int buildCounterAcl = 0; | 67 core.int buildCounterAcl = 0; |
68 buildAcl() { | 68 buildAcl() { |
69 var o = new api.Acl(); | 69 var o = new api.Acl(); |
70 buildCounterAcl++; | 70 buildCounterAcl++; |
71 if (buildCounterAcl < 3) { | 71 if (buildCounterAcl < 3) { |
72 o.description = "foo"; | 72 o.description = "foo"; |
73 o.items = buildUnnamed1986(); | 73 o.items = buildUnnamed119(); |
74 o.kind = "foo"; | 74 o.kind = "foo"; |
75 } | 75 } |
76 buildCounterAcl--; | 76 buildCounterAcl--; |
77 return o; | 77 return o; |
78 } | 78 } |
79 | 79 |
80 checkAcl(api.Acl o) { | 80 checkAcl(api.Acl o) { |
81 buildCounterAcl++; | 81 buildCounterAcl++; |
82 if (buildCounterAcl < 3) { | 82 if (buildCounterAcl < 3) { |
83 unittest.expect(o.description, unittest.equals('foo')); | 83 unittest.expect(o.description, unittest.equals('foo')); |
84 checkUnnamed1986(o.items); | 84 checkUnnamed119(o.items); |
85 unittest.expect(o.kind, unittest.equals('foo')); | 85 unittest.expect(o.kind, unittest.equals('foo')); |
86 } | 86 } |
87 buildCounterAcl--; | 87 buildCounterAcl--; |
88 } | 88 } |
89 | 89 |
90 core.int buildCounterActivityActorImage = 0; | 90 core.int buildCounterActivityActorImage = 0; |
91 buildActivityActorImage() { | 91 buildActivityActorImage() { |
92 var o = new api.ActivityActorImage(); | 92 var o = new api.ActivityActorImage(); |
93 buildCounterActivityActorImage++; | 93 buildCounterActivityActorImage++; |
94 if (buildCounterActivityActorImage < 3) { | 94 if (buildCounterActivityActorImage < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
120 | 120 |
121 checkActivityActorName(api.ActivityActorName o) { | 121 checkActivityActorName(api.ActivityActorName o) { |
122 buildCounterActivityActorName++; | 122 buildCounterActivityActorName++; |
123 if (buildCounterActivityActorName < 3) { | 123 if (buildCounterActivityActorName < 3) { |
124 unittest.expect(o.familyName, unittest.equals('foo')); | 124 unittest.expect(o.familyName, unittest.equals('foo')); |
125 unittest.expect(o.givenName, unittest.equals('foo')); | 125 unittest.expect(o.givenName, unittest.equals('foo')); |
126 } | 126 } |
127 buildCounterActivityActorName--; | 127 buildCounterActivityActorName--; |
128 } | 128 } |
129 | 129 |
| 130 core.int buildCounterActivityActorVerification = 0; |
| 131 buildActivityActorVerification() { |
| 132 var o = new api.ActivityActorVerification(); |
| 133 buildCounterActivityActorVerification++; |
| 134 if (buildCounterActivityActorVerification < 3) { |
| 135 o.adHocVerified = "foo"; |
| 136 } |
| 137 buildCounterActivityActorVerification--; |
| 138 return o; |
| 139 } |
| 140 |
| 141 checkActivityActorVerification(api.ActivityActorVerification o) { |
| 142 buildCounterActivityActorVerification++; |
| 143 if (buildCounterActivityActorVerification < 3) { |
| 144 unittest.expect(o.adHocVerified, unittest.equals('foo')); |
| 145 } |
| 146 buildCounterActivityActorVerification--; |
| 147 } |
| 148 |
130 core.int buildCounterActivityActor = 0; | 149 core.int buildCounterActivityActor = 0; |
131 buildActivityActor() { | 150 buildActivityActor() { |
132 var o = new api.ActivityActor(); | 151 var o = new api.ActivityActor(); |
133 buildCounterActivityActor++; | 152 buildCounterActivityActor++; |
134 if (buildCounterActivityActor < 3) { | 153 if (buildCounterActivityActor < 3) { |
135 o.displayName = "foo"; | 154 o.displayName = "foo"; |
136 o.id = "foo"; | 155 o.id = "foo"; |
137 o.image = buildActivityActorImage(); | 156 o.image = buildActivityActorImage(); |
138 o.name = buildActivityActorName(); | 157 o.name = buildActivityActorName(); |
139 o.url = "foo"; | 158 o.url = "foo"; |
| 159 o.verification = buildActivityActorVerification(); |
140 } | 160 } |
141 buildCounterActivityActor--; | 161 buildCounterActivityActor--; |
142 return o; | 162 return o; |
143 } | 163 } |
144 | 164 |
145 checkActivityActor(api.ActivityActor o) { | 165 checkActivityActor(api.ActivityActor o) { |
146 buildCounterActivityActor++; | 166 buildCounterActivityActor++; |
147 if (buildCounterActivityActor < 3) { | 167 if (buildCounterActivityActor < 3) { |
148 unittest.expect(o.displayName, unittest.equals('foo')); | 168 unittest.expect(o.displayName, unittest.equals('foo')); |
149 unittest.expect(o.id, unittest.equals('foo')); | 169 unittest.expect(o.id, unittest.equals('foo')); |
150 checkActivityActorImage(o.image); | 170 checkActivityActorImage(o.image); |
151 checkActivityActorName(o.name); | 171 checkActivityActorName(o.name); |
152 unittest.expect(o.url, unittest.equals('foo')); | 172 unittest.expect(o.url, unittest.equals('foo')); |
| 173 checkActivityActorVerification(o.verification); |
153 } | 174 } |
154 buildCounterActivityActor--; | 175 buildCounterActivityActor--; |
155 } | 176 } |
156 | 177 |
157 core.int buildCounterActivityObjectActorImage = 0; | 178 core.int buildCounterActivityObjectActorImage = 0; |
158 buildActivityObjectActorImage() { | 179 buildActivityObjectActorImage() { |
159 var o = new api.ActivityObjectActorImage(); | 180 var o = new api.ActivityObjectActorImage(); |
160 buildCounterActivityObjectActorImage++; | 181 buildCounterActivityObjectActorImage++; |
161 if (buildCounterActivityObjectActorImage < 3) { | 182 if (buildCounterActivityObjectActorImage < 3) { |
162 o.url = "foo"; | 183 o.url = "foo"; |
163 } | 184 } |
164 buildCounterActivityObjectActorImage--; | 185 buildCounterActivityObjectActorImage--; |
165 return o; | 186 return o; |
166 } | 187 } |
167 | 188 |
168 checkActivityObjectActorImage(api.ActivityObjectActorImage o) { | 189 checkActivityObjectActorImage(api.ActivityObjectActorImage o) { |
169 buildCounterActivityObjectActorImage++; | 190 buildCounterActivityObjectActorImage++; |
170 if (buildCounterActivityObjectActorImage < 3) { | 191 if (buildCounterActivityObjectActorImage < 3) { |
171 unittest.expect(o.url, unittest.equals('foo')); | 192 unittest.expect(o.url, unittest.equals('foo')); |
172 } | 193 } |
173 buildCounterActivityObjectActorImage--; | 194 buildCounterActivityObjectActorImage--; |
174 } | 195 } |
175 | 196 |
| 197 core.int buildCounterActivityObjectActorVerification = 0; |
| 198 buildActivityObjectActorVerification() { |
| 199 var o = new api.ActivityObjectActorVerification(); |
| 200 buildCounterActivityObjectActorVerification++; |
| 201 if (buildCounterActivityObjectActorVerification < 3) { |
| 202 o.adHocVerified = "foo"; |
| 203 } |
| 204 buildCounterActivityObjectActorVerification--; |
| 205 return o; |
| 206 } |
| 207 |
| 208 checkActivityObjectActorVerification(api.ActivityObjectActorVerification o) { |
| 209 buildCounterActivityObjectActorVerification++; |
| 210 if (buildCounterActivityObjectActorVerification < 3) { |
| 211 unittest.expect(o.adHocVerified, unittest.equals('foo')); |
| 212 } |
| 213 buildCounterActivityObjectActorVerification--; |
| 214 } |
| 215 |
176 core.int buildCounterActivityObjectActor = 0; | 216 core.int buildCounterActivityObjectActor = 0; |
177 buildActivityObjectActor() { | 217 buildActivityObjectActor() { |
178 var o = new api.ActivityObjectActor(); | 218 var o = new api.ActivityObjectActor(); |
179 buildCounterActivityObjectActor++; | 219 buildCounterActivityObjectActor++; |
180 if (buildCounterActivityObjectActor < 3) { | 220 if (buildCounterActivityObjectActor < 3) { |
181 o.displayName = "foo"; | 221 o.displayName = "foo"; |
182 o.id = "foo"; | 222 o.id = "foo"; |
183 o.image = buildActivityObjectActorImage(); | 223 o.image = buildActivityObjectActorImage(); |
184 o.url = "foo"; | 224 o.url = "foo"; |
| 225 o.verification = buildActivityObjectActorVerification(); |
185 } | 226 } |
186 buildCounterActivityObjectActor--; | 227 buildCounterActivityObjectActor--; |
187 return o; | 228 return o; |
188 } | 229 } |
189 | 230 |
190 checkActivityObjectActor(api.ActivityObjectActor o) { | 231 checkActivityObjectActor(api.ActivityObjectActor o) { |
191 buildCounterActivityObjectActor++; | 232 buildCounterActivityObjectActor++; |
192 if (buildCounterActivityObjectActor < 3) { | 233 if (buildCounterActivityObjectActor < 3) { |
193 unittest.expect(o.displayName, unittest.equals('foo')); | 234 unittest.expect(o.displayName, unittest.equals('foo')); |
194 unittest.expect(o.id, unittest.equals('foo')); | 235 unittest.expect(o.id, unittest.equals('foo')); |
195 checkActivityObjectActorImage(o.image); | 236 checkActivityObjectActorImage(o.image); |
196 unittest.expect(o.url, unittest.equals('foo')); | 237 unittest.expect(o.url, unittest.equals('foo')); |
| 238 checkActivityObjectActorVerification(o.verification); |
197 } | 239 } |
198 buildCounterActivityObjectActor--; | 240 buildCounterActivityObjectActor--; |
199 } | 241 } |
200 | 242 |
201 core.int buildCounterActivityObjectAttachmentsEmbed = 0; | 243 core.int buildCounterActivityObjectAttachmentsEmbed = 0; |
202 buildActivityObjectAttachmentsEmbed() { | 244 buildActivityObjectAttachmentsEmbed() { |
203 var o = new api.ActivityObjectAttachmentsEmbed(); | 245 var o = new api.ActivityObjectAttachmentsEmbed(); |
204 buildCounterActivityObjectAttachmentsEmbed++; | 246 buildCounterActivityObjectAttachmentsEmbed++; |
205 if (buildCounterActivityObjectAttachmentsEmbed < 3) { | 247 if (buildCounterActivityObjectAttachmentsEmbed < 3) { |
206 o.type = "foo"; | 248 o.type = "foo"; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { | 352 checkActivityObjectAttachmentsThumbnails(api.ActivityObjectAttachmentsThumbnails
o) { |
311 buildCounterActivityObjectAttachmentsThumbnails++; | 353 buildCounterActivityObjectAttachmentsThumbnails++; |
312 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { | 354 if (buildCounterActivityObjectAttachmentsThumbnails < 3) { |
313 unittest.expect(o.description, unittest.equals('foo')); | 355 unittest.expect(o.description, unittest.equals('foo')); |
314 checkActivityObjectAttachmentsThumbnailsImage(o.image); | 356 checkActivityObjectAttachmentsThumbnailsImage(o.image); |
315 unittest.expect(o.url, unittest.equals('foo')); | 357 unittest.expect(o.url, unittest.equals('foo')); |
316 } | 358 } |
317 buildCounterActivityObjectAttachmentsThumbnails--; | 359 buildCounterActivityObjectAttachmentsThumbnails--; |
318 } | 360 } |
319 | 361 |
320 buildUnnamed1987() { | 362 buildUnnamed120() { |
321 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); | 363 var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); |
322 o.add(buildActivityObjectAttachmentsThumbnails()); | 364 o.add(buildActivityObjectAttachmentsThumbnails()); |
323 o.add(buildActivityObjectAttachmentsThumbnails()); | 365 o.add(buildActivityObjectAttachmentsThumbnails()); |
324 return o; | 366 return o; |
325 } | 367 } |
326 | 368 |
327 checkUnnamed1987(core.List<api.ActivityObjectAttachmentsThumbnails> o) { | 369 checkUnnamed120(core.List<api.ActivityObjectAttachmentsThumbnails> o) { |
328 unittest.expect(o, unittest.hasLength(2)); | 370 unittest.expect(o, unittest.hasLength(2)); |
329 checkActivityObjectAttachmentsThumbnails(o[0]); | 371 checkActivityObjectAttachmentsThumbnails(o[0]); |
330 checkActivityObjectAttachmentsThumbnails(o[1]); | 372 checkActivityObjectAttachmentsThumbnails(o[1]); |
331 } | 373 } |
332 | 374 |
333 core.int buildCounterActivityObjectAttachments = 0; | 375 core.int buildCounterActivityObjectAttachments = 0; |
334 buildActivityObjectAttachments() { | 376 buildActivityObjectAttachments() { |
335 var o = new api.ActivityObjectAttachments(); | 377 var o = new api.ActivityObjectAttachments(); |
336 buildCounterActivityObjectAttachments++; | 378 buildCounterActivityObjectAttachments++; |
337 if (buildCounterActivityObjectAttachments < 3) { | 379 if (buildCounterActivityObjectAttachments < 3) { |
338 o.content = "foo"; | 380 o.content = "foo"; |
339 o.displayName = "foo"; | 381 o.displayName = "foo"; |
340 o.embed = buildActivityObjectAttachmentsEmbed(); | 382 o.embed = buildActivityObjectAttachmentsEmbed(); |
341 o.fullImage = buildActivityObjectAttachmentsFullImage(); | 383 o.fullImage = buildActivityObjectAttachmentsFullImage(); |
342 o.id = "foo"; | 384 o.id = "foo"; |
343 o.image = buildActivityObjectAttachmentsImage(); | 385 o.image = buildActivityObjectAttachmentsImage(); |
344 o.objectType = "foo"; | 386 o.objectType = "foo"; |
345 o.thumbnails = buildUnnamed1987(); | 387 o.thumbnails = buildUnnamed120(); |
346 o.url = "foo"; | 388 o.url = "foo"; |
347 } | 389 } |
348 buildCounterActivityObjectAttachments--; | 390 buildCounterActivityObjectAttachments--; |
349 return o; | 391 return o; |
350 } | 392 } |
351 | 393 |
352 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { | 394 checkActivityObjectAttachments(api.ActivityObjectAttachments o) { |
353 buildCounterActivityObjectAttachments++; | 395 buildCounterActivityObjectAttachments++; |
354 if (buildCounterActivityObjectAttachments < 3) { | 396 if (buildCounterActivityObjectAttachments < 3) { |
355 unittest.expect(o.content, unittest.equals('foo')); | 397 unittest.expect(o.content, unittest.equals('foo')); |
356 unittest.expect(o.displayName, unittest.equals('foo')); | 398 unittest.expect(o.displayName, unittest.equals('foo')); |
357 checkActivityObjectAttachmentsEmbed(o.embed); | 399 checkActivityObjectAttachmentsEmbed(o.embed); |
358 checkActivityObjectAttachmentsFullImage(o.fullImage); | 400 checkActivityObjectAttachmentsFullImage(o.fullImage); |
359 unittest.expect(o.id, unittest.equals('foo')); | 401 unittest.expect(o.id, unittest.equals('foo')); |
360 checkActivityObjectAttachmentsImage(o.image); | 402 checkActivityObjectAttachmentsImage(o.image); |
361 unittest.expect(o.objectType, unittest.equals('foo')); | 403 unittest.expect(o.objectType, unittest.equals('foo')); |
362 checkUnnamed1987(o.thumbnails); | 404 checkUnnamed120(o.thumbnails); |
363 unittest.expect(o.url, unittest.equals('foo')); | 405 unittest.expect(o.url, unittest.equals('foo')); |
364 } | 406 } |
365 buildCounterActivityObjectAttachments--; | 407 buildCounterActivityObjectAttachments--; |
366 } | 408 } |
367 | 409 |
368 buildUnnamed1988() { | 410 buildUnnamed121() { |
369 var o = new core.List<api.ActivityObjectAttachments>(); | 411 var o = new core.List<api.ActivityObjectAttachments>(); |
370 o.add(buildActivityObjectAttachments()); | 412 o.add(buildActivityObjectAttachments()); |
371 o.add(buildActivityObjectAttachments()); | 413 o.add(buildActivityObjectAttachments()); |
372 return o; | 414 return o; |
373 } | 415 } |
374 | 416 |
375 checkUnnamed1988(core.List<api.ActivityObjectAttachments> o) { | 417 checkUnnamed121(core.List<api.ActivityObjectAttachments> o) { |
376 unittest.expect(o, unittest.hasLength(2)); | 418 unittest.expect(o, unittest.hasLength(2)); |
377 checkActivityObjectAttachments(o[0]); | 419 checkActivityObjectAttachments(o[0]); |
378 checkActivityObjectAttachments(o[1]); | 420 checkActivityObjectAttachments(o[1]); |
379 } | 421 } |
380 | 422 |
381 core.int buildCounterActivityObjectPlusoners = 0; | 423 core.int buildCounterActivityObjectPlusoners = 0; |
382 buildActivityObjectPlusoners() { | 424 buildActivityObjectPlusoners() { |
383 var o = new api.ActivityObjectPlusoners(); | 425 var o = new api.ActivityObjectPlusoners(); |
384 buildCounterActivityObjectPlusoners++; | 426 buildCounterActivityObjectPlusoners++; |
385 if (buildCounterActivityObjectPlusoners < 3) { | 427 if (buildCounterActivityObjectPlusoners < 3) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 } | 482 } |
441 buildCounterActivityObjectResharers--; | 483 buildCounterActivityObjectResharers--; |
442 } | 484 } |
443 | 485 |
444 core.int buildCounterActivityObject = 0; | 486 core.int buildCounterActivityObject = 0; |
445 buildActivityObject() { | 487 buildActivityObject() { |
446 var o = new api.ActivityObject(); | 488 var o = new api.ActivityObject(); |
447 buildCounterActivityObject++; | 489 buildCounterActivityObject++; |
448 if (buildCounterActivityObject < 3) { | 490 if (buildCounterActivityObject < 3) { |
449 o.actor = buildActivityObjectActor(); | 491 o.actor = buildActivityObjectActor(); |
450 o.attachments = buildUnnamed1988(); | 492 o.attachments = buildUnnamed121(); |
451 o.content = "foo"; | 493 o.content = "foo"; |
452 o.id = "foo"; | 494 o.id = "foo"; |
453 o.objectType = "foo"; | 495 o.objectType = "foo"; |
454 o.originalContent = "foo"; | 496 o.originalContent = "foo"; |
455 o.plusoners = buildActivityObjectPlusoners(); | 497 o.plusoners = buildActivityObjectPlusoners(); |
456 o.replies = buildActivityObjectReplies(); | 498 o.replies = buildActivityObjectReplies(); |
457 o.resharers = buildActivityObjectResharers(); | 499 o.resharers = buildActivityObjectResharers(); |
458 o.url = "foo"; | 500 o.url = "foo"; |
459 } | 501 } |
460 buildCounterActivityObject--; | 502 buildCounterActivityObject--; |
461 return o; | 503 return o; |
462 } | 504 } |
463 | 505 |
464 checkActivityObject(api.ActivityObject o) { | 506 checkActivityObject(api.ActivityObject o) { |
465 buildCounterActivityObject++; | 507 buildCounterActivityObject++; |
466 if (buildCounterActivityObject < 3) { | 508 if (buildCounterActivityObject < 3) { |
467 checkActivityObjectActor(o.actor); | 509 checkActivityObjectActor(o.actor); |
468 checkUnnamed1988(o.attachments); | 510 checkUnnamed121(o.attachments); |
469 unittest.expect(o.content, unittest.equals('foo')); | 511 unittest.expect(o.content, unittest.equals('foo')); |
470 unittest.expect(o.id, unittest.equals('foo')); | 512 unittest.expect(o.id, unittest.equals('foo')); |
471 unittest.expect(o.objectType, unittest.equals('foo')); | 513 unittest.expect(o.objectType, unittest.equals('foo')); |
472 unittest.expect(o.originalContent, unittest.equals('foo')); | 514 unittest.expect(o.originalContent, unittest.equals('foo')); |
473 checkActivityObjectPlusoners(o.plusoners); | 515 checkActivityObjectPlusoners(o.plusoners); |
474 checkActivityObjectReplies(o.replies); | 516 checkActivityObjectReplies(o.replies); |
475 checkActivityObjectResharers(o.resharers); | 517 checkActivityObjectResharers(o.resharers); |
476 unittest.expect(o.url, unittest.equals('foo')); | 518 unittest.expect(o.url, unittest.equals('foo')); |
477 } | 519 } |
478 buildCounterActivityObject--; | 520 buildCounterActivityObject--; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 589 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
548 unittest.expect(o.radius, unittest.equals('foo')); | 590 unittest.expect(o.radius, unittest.equals('foo')); |
549 unittest.expect(o.title, unittest.equals('foo')); | 591 unittest.expect(o.title, unittest.equals('foo')); |
550 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 592 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
551 unittest.expect(o.url, unittest.equals('foo')); | 593 unittest.expect(o.url, unittest.equals('foo')); |
552 unittest.expect(o.verb, unittest.equals('foo')); | 594 unittest.expect(o.verb, unittest.equals('foo')); |
553 } | 595 } |
554 buildCounterActivity--; | 596 buildCounterActivity--; |
555 } | 597 } |
556 | 598 |
557 buildUnnamed1989() { | 599 buildUnnamed122() { |
558 var o = new core.List<api.Activity>(); | 600 var o = new core.List<api.Activity>(); |
559 o.add(buildActivity()); | 601 o.add(buildActivity()); |
560 o.add(buildActivity()); | 602 o.add(buildActivity()); |
561 return o; | 603 return o; |
562 } | 604 } |
563 | 605 |
564 checkUnnamed1989(core.List<api.Activity> o) { | 606 checkUnnamed122(core.List<api.Activity> o) { |
565 unittest.expect(o, unittest.hasLength(2)); | 607 unittest.expect(o, unittest.hasLength(2)); |
566 checkActivity(o[0]); | 608 checkActivity(o[0]); |
567 checkActivity(o[1]); | 609 checkActivity(o[1]); |
568 } | 610 } |
569 | 611 |
570 core.int buildCounterActivityFeed = 0; | 612 core.int buildCounterActivityFeed = 0; |
571 buildActivityFeed() { | 613 buildActivityFeed() { |
572 var o = new api.ActivityFeed(); | 614 var o = new api.ActivityFeed(); |
573 buildCounterActivityFeed++; | 615 buildCounterActivityFeed++; |
574 if (buildCounterActivityFeed < 3) { | 616 if (buildCounterActivityFeed < 3) { |
575 o.etag = "foo"; | 617 o.etag = "foo"; |
576 o.id = "foo"; | 618 o.id = "foo"; |
577 o.items = buildUnnamed1989(); | 619 o.items = buildUnnamed122(); |
578 o.kind = "foo"; | 620 o.kind = "foo"; |
579 o.nextLink = "foo"; | 621 o.nextLink = "foo"; |
580 o.nextPageToken = "foo"; | 622 o.nextPageToken = "foo"; |
581 o.selfLink = "foo"; | 623 o.selfLink = "foo"; |
582 o.title = "foo"; | 624 o.title = "foo"; |
583 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 625 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
584 } | 626 } |
585 buildCounterActivityFeed--; | 627 buildCounterActivityFeed--; |
586 return o; | 628 return o; |
587 } | 629 } |
588 | 630 |
589 checkActivityFeed(api.ActivityFeed o) { | 631 checkActivityFeed(api.ActivityFeed o) { |
590 buildCounterActivityFeed++; | 632 buildCounterActivityFeed++; |
591 if (buildCounterActivityFeed < 3) { | 633 if (buildCounterActivityFeed < 3) { |
592 unittest.expect(o.etag, unittest.equals('foo')); | 634 unittest.expect(o.etag, unittest.equals('foo')); |
593 unittest.expect(o.id, unittest.equals('foo')); | 635 unittest.expect(o.id, unittest.equals('foo')); |
594 checkUnnamed1989(o.items); | 636 checkUnnamed122(o.items); |
595 unittest.expect(o.kind, unittest.equals('foo')); | 637 unittest.expect(o.kind, unittest.equals('foo')); |
596 unittest.expect(o.nextLink, unittest.equals('foo')); | 638 unittest.expect(o.nextLink, unittest.equals('foo')); |
597 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 639 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
598 unittest.expect(o.selfLink, unittest.equals('foo')); | 640 unittest.expect(o.selfLink, unittest.equals('foo')); |
599 unittest.expect(o.title, unittest.equals('foo')); | 641 unittest.expect(o.title, unittest.equals('foo')); |
600 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 642 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
601 } | 643 } |
602 buildCounterActivityFeed--; | 644 buildCounterActivityFeed--; |
603 } | 645 } |
604 | 646 |
605 core.int buildCounterCommentActorImage = 0; | 647 core.int buildCounterCommentActorImage = 0; |
606 buildCommentActorImage() { | 648 buildCommentActorImage() { |
607 var o = new api.CommentActorImage(); | 649 var o = new api.CommentActorImage(); |
608 buildCounterCommentActorImage++; | 650 buildCounterCommentActorImage++; |
609 if (buildCounterCommentActorImage < 3) { | 651 if (buildCounterCommentActorImage < 3) { |
610 o.url = "foo"; | 652 o.url = "foo"; |
611 } | 653 } |
612 buildCounterCommentActorImage--; | 654 buildCounterCommentActorImage--; |
613 return o; | 655 return o; |
614 } | 656 } |
615 | 657 |
616 checkCommentActorImage(api.CommentActorImage o) { | 658 checkCommentActorImage(api.CommentActorImage o) { |
617 buildCounterCommentActorImage++; | 659 buildCounterCommentActorImage++; |
618 if (buildCounterCommentActorImage < 3) { | 660 if (buildCounterCommentActorImage < 3) { |
619 unittest.expect(o.url, unittest.equals('foo')); | 661 unittest.expect(o.url, unittest.equals('foo')); |
620 } | 662 } |
621 buildCounterCommentActorImage--; | 663 buildCounterCommentActorImage--; |
622 } | 664 } |
623 | 665 |
| 666 core.int buildCounterCommentActorVerification = 0; |
| 667 buildCommentActorVerification() { |
| 668 var o = new api.CommentActorVerification(); |
| 669 buildCounterCommentActorVerification++; |
| 670 if (buildCounterCommentActorVerification < 3) { |
| 671 o.adHocVerified = "foo"; |
| 672 } |
| 673 buildCounterCommentActorVerification--; |
| 674 return o; |
| 675 } |
| 676 |
| 677 checkCommentActorVerification(api.CommentActorVerification o) { |
| 678 buildCounterCommentActorVerification++; |
| 679 if (buildCounterCommentActorVerification < 3) { |
| 680 unittest.expect(o.adHocVerified, unittest.equals('foo')); |
| 681 } |
| 682 buildCounterCommentActorVerification--; |
| 683 } |
| 684 |
624 core.int buildCounterCommentActor = 0; | 685 core.int buildCounterCommentActor = 0; |
625 buildCommentActor() { | 686 buildCommentActor() { |
626 var o = new api.CommentActor(); | 687 var o = new api.CommentActor(); |
627 buildCounterCommentActor++; | 688 buildCounterCommentActor++; |
628 if (buildCounterCommentActor < 3) { | 689 if (buildCounterCommentActor < 3) { |
629 o.displayName = "foo"; | 690 o.displayName = "foo"; |
630 o.id = "foo"; | 691 o.id = "foo"; |
631 o.image = buildCommentActorImage(); | 692 o.image = buildCommentActorImage(); |
632 o.url = "foo"; | 693 o.url = "foo"; |
| 694 o.verification = buildCommentActorVerification(); |
633 } | 695 } |
634 buildCounterCommentActor--; | 696 buildCounterCommentActor--; |
635 return o; | 697 return o; |
636 } | 698 } |
637 | 699 |
638 checkCommentActor(api.CommentActor o) { | 700 checkCommentActor(api.CommentActor o) { |
639 buildCounterCommentActor++; | 701 buildCounterCommentActor++; |
640 if (buildCounterCommentActor < 3) { | 702 if (buildCounterCommentActor < 3) { |
641 unittest.expect(o.displayName, unittest.equals('foo')); | 703 unittest.expect(o.displayName, unittest.equals('foo')); |
642 unittest.expect(o.id, unittest.equals('foo')); | 704 unittest.expect(o.id, unittest.equals('foo')); |
643 checkCommentActorImage(o.image); | 705 checkCommentActorImage(o.image); |
644 unittest.expect(o.url, unittest.equals('foo')); | 706 unittest.expect(o.url, unittest.equals('foo')); |
| 707 checkCommentActorVerification(o.verification); |
645 } | 708 } |
646 buildCounterCommentActor--; | 709 buildCounterCommentActor--; |
647 } | 710 } |
648 | 711 |
649 core.int buildCounterCommentInReplyTo = 0; | 712 core.int buildCounterCommentInReplyTo = 0; |
650 buildCommentInReplyTo() { | 713 buildCommentInReplyTo() { |
651 var o = new api.CommentInReplyTo(); | 714 var o = new api.CommentInReplyTo(); |
652 buildCounterCommentInReplyTo++; | 715 buildCounterCommentInReplyTo++; |
653 if (buildCounterCommentInReplyTo < 3) { | 716 if (buildCounterCommentInReplyTo < 3) { |
654 o.id = "foo"; | 717 o.id = "foo"; |
655 o.url = "foo"; | 718 o.url = "foo"; |
656 } | 719 } |
657 buildCounterCommentInReplyTo--; | 720 buildCounterCommentInReplyTo--; |
658 return o; | 721 return o; |
659 } | 722 } |
660 | 723 |
661 checkCommentInReplyTo(api.CommentInReplyTo o) { | 724 checkCommentInReplyTo(api.CommentInReplyTo o) { |
662 buildCounterCommentInReplyTo++; | 725 buildCounterCommentInReplyTo++; |
663 if (buildCounterCommentInReplyTo < 3) { | 726 if (buildCounterCommentInReplyTo < 3) { |
664 unittest.expect(o.id, unittest.equals('foo')); | 727 unittest.expect(o.id, unittest.equals('foo')); |
665 unittest.expect(o.url, unittest.equals('foo')); | 728 unittest.expect(o.url, unittest.equals('foo')); |
666 } | 729 } |
667 buildCounterCommentInReplyTo--; | 730 buildCounterCommentInReplyTo--; |
668 } | 731 } |
669 | 732 |
670 buildUnnamed1990() { | 733 buildUnnamed123() { |
671 var o = new core.List<api.CommentInReplyTo>(); | 734 var o = new core.List<api.CommentInReplyTo>(); |
672 o.add(buildCommentInReplyTo()); | 735 o.add(buildCommentInReplyTo()); |
673 o.add(buildCommentInReplyTo()); | 736 o.add(buildCommentInReplyTo()); |
674 return o; | 737 return o; |
675 } | 738 } |
676 | 739 |
677 checkUnnamed1990(core.List<api.CommentInReplyTo> o) { | 740 checkUnnamed123(core.List<api.CommentInReplyTo> o) { |
678 unittest.expect(o, unittest.hasLength(2)); | 741 unittest.expect(o, unittest.hasLength(2)); |
679 checkCommentInReplyTo(o[0]); | 742 checkCommentInReplyTo(o[0]); |
680 checkCommentInReplyTo(o[1]); | 743 checkCommentInReplyTo(o[1]); |
681 } | 744 } |
682 | 745 |
683 core.int buildCounterCommentObject = 0; | 746 core.int buildCounterCommentObject = 0; |
684 buildCommentObject() { | 747 buildCommentObject() { |
685 var o = new api.CommentObject(); | 748 var o = new api.CommentObject(); |
686 buildCounterCommentObject++; | 749 buildCounterCommentObject++; |
687 if (buildCounterCommentObject < 3) { | 750 if (buildCounterCommentObject < 3) { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 } | 786 } |
724 | 787 |
725 core.int buildCounterComment = 0; | 788 core.int buildCounterComment = 0; |
726 buildComment() { | 789 buildComment() { |
727 var o = new api.Comment(); | 790 var o = new api.Comment(); |
728 buildCounterComment++; | 791 buildCounterComment++; |
729 if (buildCounterComment < 3) { | 792 if (buildCounterComment < 3) { |
730 o.actor = buildCommentActor(); | 793 o.actor = buildCommentActor(); |
731 o.etag = "foo"; | 794 o.etag = "foo"; |
732 o.id = "foo"; | 795 o.id = "foo"; |
733 o.inReplyTo = buildUnnamed1990(); | 796 o.inReplyTo = buildUnnamed123(); |
734 o.kind = "foo"; | 797 o.kind = "foo"; |
735 o.object = buildCommentObject(); | 798 o.object = buildCommentObject(); |
736 o.plusoners = buildCommentPlusoners(); | 799 o.plusoners = buildCommentPlusoners(); |
737 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 800 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
738 o.selfLink = "foo"; | 801 o.selfLink = "foo"; |
739 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 802 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
740 o.verb = "foo"; | 803 o.verb = "foo"; |
741 } | 804 } |
742 buildCounterComment--; | 805 buildCounterComment--; |
743 return o; | 806 return o; |
744 } | 807 } |
745 | 808 |
746 checkComment(api.Comment o) { | 809 checkComment(api.Comment o) { |
747 buildCounterComment++; | 810 buildCounterComment++; |
748 if (buildCounterComment < 3) { | 811 if (buildCounterComment < 3) { |
749 checkCommentActor(o.actor); | 812 checkCommentActor(o.actor); |
750 unittest.expect(o.etag, unittest.equals('foo')); | 813 unittest.expect(o.etag, unittest.equals('foo')); |
751 unittest.expect(o.id, unittest.equals('foo')); | 814 unittest.expect(o.id, unittest.equals('foo')); |
752 checkUnnamed1990(o.inReplyTo); | 815 checkUnnamed123(o.inReplyTo); |
753 unittest.expect(o.kind, unittest.equals('foo')); | 816 unittest.expect(o.kind, unittest.equals('foo')); |
754 checkCommentObject(o.object); | 817 checkCommentObject(o.object); |
755 checkCommentPlusoners(o.plusoners); | 818 checkCommentPlusoners(o.plusoners); |
756 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 819 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
757 unittest.expect(o.selfLink, unittest.equals('foo')); | 820 unittest.expect(o.selfLink, unittest.equals('foo')); |
758 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 821 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
759 unittest.expect(o.verb, unittest.equals('foo')); | 822 unittest.expect(o.verb, unittest.equals('foo')); |
760 } | 823 } |
761 buildCounterComment--; | 824 buildCounterComment--; |
762 } | 825 } |
763 | 826 |
764 buildUnnamed1991() { | 827 buildUnnamed124() { |
765 var o = new core.List<api.Comment>(); | 828 var o = new core.List<api.Comment>(); |
766 o.add(buildComment()); | 829 o.add(buildComment()); |
767 o.add(buildComment()); | 830 o.add(buildComment()); |
768 return o; | 831 return o; |
769 } | 832 } |
770 | 833 |
771 checkUnnamed1991(core.List<api.Comment> o) { | 834 checkUnnamed124(core.List<api.Comment> o) { |
772 unittest.expect(o, unittest.hasLength(2)); | 835 unittest.expect(o, unittest.hasLength(2)); |
773 checkComment(o[0]); | 836 checkComment(o[0]); |
774 checkComment(o[1]); | 837 checkComment(o[1]); |
775 } | 838 } |
776 | 839 |
777 core.int buildCounterCommentFeed = 0; | 840 core.int buildCounterCommentFeed = 0; |
778 buildCommentFeed() { | 841 buildCommentFeed() { |
779 var o = new api.CommentFeed(); | 842 var o = new api.CommentFeed(); |
780 buildCounterCommentFeed++; | 843 buildCounterCommentFeed++; |
781 if (buildCounterCommentFeed < 3) { | 844 if (buildCounterCommentFeed < 3) { |
782 o.etag = "foo"; | 845 o.etag = "foo"; |
783 o.id = "foo"; | 846 o.id = "foo"; |
784 o.items = buildUnnamed1991(); | 847 o.items = buildUnnamed124(); |
785 o.kind = "foo"; | 848 o.kind = "foo"; |
786 o.nextLink = "foo"; | 849 o.nextLink = "foo"; |
787 o.nextPageToken = "foo"; | 850 o.nextPageToken = "foo"; |
788 o.title = "foo"; | 851 o.title = "foo"; |
789 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 852 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
790 } | 853 } |
791 buildCounterCommentFeed--; | 854 buildCounterCommentFeed--; |
792 return o; | 855 return o; |
793 } | 856 } |
794 | 857 |
795 checkCommentFeed(api.CommentFeed o) { | 858 checkCommentFeed(api.CommentFeed o) { |
796 buildCounterCommentFeed++; | 859 buildCounterCommentFeed++; |
797 if (buildCounterCommentFeed < 3) { | 860 if (buildCounterCommentFeed < 3) { |
798 unittest.expect(o.etag, unittest.equals('foo')); | 861 unittest.expect(o.etag, unittest.equals('foo')); |
799 unittest.expect(o.id, unittest.equals('foo')); | 862 unittest.expect(o.id, unittest.equals('foo')); |
800 checkUnnamed1991(o.items); | 863 checkUnnamed124(o.items); |
801 unittest.expect(o.kind, unittest.equals('foo')); | 864 unittest.expect(o.kind, unittest.equals('foo')); |
802 unittest.expect(o.nextLink, unittest.equals('foo')); | 865 unittest.expect(o.nextLink, unittest.equals('foo')); |
803 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 866 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
804 unittest.expect(o.title, unittest.equals('foo')); | 867 unittest.expect(o.title, unittest.equals('foo')); |
805 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 868 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
806 } | 869 } |
807 buildCounterCommentFeed--; | 870 buildCounterCommentFeed--; |
808 } | 871 } |
809 | 872 |
810 buildUnnamed1992() { | 873 buildUnnamed125() { |
811 var o = new core.List<core.String>(); | 874 var o = new core.List<core.String>(); |
812 o.add("foo"); | 875 o.add("foo"); |
813 o.add("foo"); | 876 o.add("foo"); |
814 return o; | 877 return o; |
815 } | 878 } |
816 | 879 |
817 checkUnnamed1992(core.List<core.String> o) { | 880 checkUnnamed125(core.List<core.String> o) { |
818 unittest.expect(o, unittest.hasLength(2)); | 881 unittest.expect(o, unittest.hasLength(2)); |
819 unittest.expect(o[0], unittest.equals('foo')); | 882 unittest.expect(o[0], unittest.equals('foo')); |
820 unittest.expect(o[1], unittest.equals('foo')); | 883 unittest.expect(o[1], unittest.equals('foo')); |
821 } | 884 } |
822 | 885 |
823 buildUnnamed1993() { | 886 buildUnnamed126() { |
824 var o = new core.List<api.ItemScope>(); | 887 var o = new core.List<api.ItemScope>(); |
825 o.add(buildItemScope()); | 888 o.add(buildItemScope()); |
826 o.add(buildItemScope()); | 889 o.add(buildItemScope()); |
827 return o; | 890 return o; |
828 } | 891 } |
829 | 892 |
830 checkUnnamed1993(core.List<api.ItemScope> o) { | 893 checkUnnamed126(core.List<api.ItemScope> o) { |
831 unittest.expect(o, unittest.hasLength(2)); | 894 unittest.expect(o, unittest.hasLength(2)); |
832 checkItemScope(o[0]); | 895 checkItemScope(o[0]); |
833 checkItemScope(o[1]); | 896 checkItemScope(o[1]); |
834 } | 897 } |
835 | 898 |
836 buildUnnamed1994() { | 899 buildUnnamed127() { |
837 var o = new core.List<api.ItemScope>(); | 900 var o = new core.List<api.ItemScope>(); |
838 o.add(buildItemScope()); | 901 o.add(buildItemScope()); |
839 o.add(buildItemScope()); | 902 o.add(buildItemScope()); |
840 return o; | 903 return o; |
841 } | 904 } |
842 | 905 |
843 checkUnnamed1994(core.List<api.ItemScope> o) { | 906 checkUnnamed127(core.List<api.ItemScope> o) { |
844 unittest.expect(o, unittest.hasLength(2)); | 907 unittest.expect(o, unittest.hasLength(2)); |
845 checkItemScope(o[0]); | 908 checkItemScope(o[0]); |
846 checkItemScope(o[1]); | 909 checkItemScope(o[1]); |
847 } | 910 } |
848 | 911 |
849 buildUnnamed1995() { | 912 buildUnnamed128() { |
850 var o = new core.List<api.ItemScope>(); | 913 var o = new core.List<api.ItemScope>(); |
851 o.add(buildItemScope()); | 914 o.add(buildItemScope()); |
852 o.add(buildItemScope()); | 915 o.add(buildItemScope()); |
853 return o; | 916 return o; |
854 } | 917 } |
855 | 918 |
856 checkUnnamed1995(core.List<api.ItemScope> o) { | 919 checkUnnamed128(core.List<api.ItemScope> o) { |
857 unittest.expect(o, unittest.hasLength(2)); | 920 unittest.expect(o, unittest.hasLength(2)); |
858 checkItemScope(o[0]); | 921 checkItemScope(o[0]); |
859 checkItemScope(o[1]); | 922 checkItemScope(o[1]); |
860 } | 923 } |
861 | 924 |
862 buildUnnamed1996() { | 925 buildUnnamed129() { |
863 var o = new core.List<api.ItemScope>(); | 926 var o = new core.List<api.ItemScope>(); |
864 o.add(buildItemScope()); | 927 o.add(buildItemScope()); |
865 o.add(buildItemScope()); | 928 o.add(buildItemScope()); |
866 return o; | 929 return o; |
867 } | 930 } |
868 | 931 |
869 checkUnnamed1996(core.List<api.ItemScope> o) { | 932 checkUnnamed129(core.List<api.ItemScope> o) { |
870 unittest.expect(o, unittest.hasLength(2)); | 933 unittest.expect(o, unittest.hasLength(2)); |
871 checkItemScope(o[0]); | 934 checkItemScope(o[0]); |
872 checkItemScope(o[1]); | 935 checkItemScope(o[1]); |
873 } | 936 } |
874 | 937 |
875 buildUnnamed1997() { | 938 buildUnnamed130() { |
876 var o = new core.List<api.ItemScope>(); | 939 var o = new core.List<api.ItemScope>(); |
877 o.add(buildItemScope()); | 940 o.add(buildItemScope()); |
878 o.add(buildItemScope()); | 941 o.add(buildItemScope()); |
879 return o; | 942 return o; |
880 } | 943 } |
881 | 944 |
882 checkUnnamed1997(core.List<api.ItemScope> o) { | 945 checkUnnamed130(core.List<api.ItemScope> o) { |
883 unittest.expect(o, unittest.hasLength(2)); | 946 unittest.expect(o, unittest.hasLength(2)); |
884 checkItemScope(o[0]); | 947 checkItemScope(o[0]); |
885 checkItemScope(o[1]); | 948 checkItemScope(o[1]); |
886 } | 949 } |
887 | 950 |
888 core.int buildCounterItemScope = 0; | 951 core.int buildCounterItemScope = 0; |
889 buildItemScope() { | 952 buildItemScope() { |
890 var o = new api.ItemScope(); | 953 var o = new api.ItemScope(); |
891 buildCounterItemScope++; | 954 buildCounterItemScope++; |
892 if (buildCounterItemScope < 3) { | 955 if (buildCounterItemScope < 3) { |
893 o.about = buildItemScope(); | 956 o.about = buildItemScope(); |
894 o.additionalName = buildUnnamed1992(); | 957 o.additionalName = buildUnnamed125(); |
895 o.address = buildItemScope(); | 958 o.address = buildItemScope(); |
896 o.addressCountry = "foo"; | 959 o.addressCountry = "foo"; |
897 o.addressLocality = "foo"; | 960 o.addressLocality = "foo"; |
898 o.addressRegion = "foo"; | 961 o.addressRegion = "foo"; |
899 o.associatedMedia = buildUnnamed1993(); | 962 o.associatedMedia = buildUnnamed126(); |
900 o.attendeeCount = 42; | 963 o.attendeeCount = 42; |
901 o.attendees = buildUnnamed1994(); | 964 o.attendees = buildUnnamed127(); |
902 o.audio = buildItemScope(); | 965 o.audio = buildItemScope(); |
903 o.author = buildUnnamed1995(); | 966 o.author = buildUnnamed128(); |
904 o.bestRating = "foo"; | 967 o.bestRating = "foo"; |
905 o.birthDate = "foo"; | 968 o.birthDate = "foo"; |
906 o.byArtist = buildItemScope(); | 969 o.byArtist = buildItemScope(); |
907 o.caption = "foo"; | 970 o.caption = "foo"; |
908 o.contentSize = "foo"; | 971 o.contentSize = "foo"; |
909 o.contentUrl = "foo"; | 972 o.contentUrl = "foo"; |
910 o.contributor = buildUnnamed1996(); | 973 o.contributor = buildUnnamed129(); |
911 o.dateCreated = "foo"; | 974 o.dateCreated = "foo"; |
912 o.dateModified = "foo"; | 975 o.dateModified = "foo"; |
913 o.datePublished = "foo"; | 976 o.datePublished = "foo"; |
914 o.description = "foo"; | 977 o.description = "foo"; |
915 o.duration = "foo"; | 978 o.duration = "foo"; |
916 o.embedUrl = "foo"; | 979 o.embedUrl = "foo"; |
917 o.endDate = "foo"; | 980 o.endDate = "foo"; |
918 o.familyName = "foo"; | 981 o.familyName = "foo"; |
919 o.gender = "foo"; | 982 o.gender = "foo"; |
920 o.geo = buildItemScope(); | 983 o.geo = buildItemScope(); |
921 o.givenName = "foo"; | 984 o.givenName = "foo"; |
922 o.height = "foo"; | 985 o.height = "foo"; |
923 o.id = "foo"; | 986 o.id = "foo"; |
924 o.image = "foo"; | 987 o.image = "foo"; |
925 o.inAlbum = buildItemScope(); | 988 o.inAlbum = buildItemScope(); |
926 o.kind = "foo"; | 989 o.kind = "foo"; |
927 o.latitude = 42.0; | 990 o.latitude = 42.0; |
928 o.location = buildItemScope(); | 991 o.location = buildItemScope(); |
929 o.longitude = 42.0; | 992 o.longitude = 42.0; |
930 o.name = "foo"; | 993 o.name = "foo"; |
931 o.partOfTVSeries = buildItemScope(); | 994 o.partOfTVSeries = buildItemScope(); |
932 o.performers = buildUnnamed1997(); | 995 o.performers = buildUnnamed130(); |
933 o.playerType = "foo"; | 996 o.playerType = "foo"; |
934 o.postOfficeBoxNumber = "foo"; | 997 o.postOfficeBoxNumber = "foo"; |
935 o.postalCode = "foo"; | 998 o.postalCode = "foo"; |
936 o.ratingValue = "foo"; | 999 o.ratingValue = "foo"; |
937 o.reviewRating = buildItemScope(); | 1000 o.reviewRating = buildItemScope(); |
938 o.startDate = "foo"; | 1001 o.startDate = "foo"; |
939 o.streetAddress = "foo"; | 1002 o.streetAddress = "foo"; |
940 o.text = "foo"; | 1003 o.text = "foo"; |
941 o.thumbnail = buildItemScope(); | 1004 o.thumbnail = buildItemScope(); |
942 o.thumbnailUrl = "foo"; | 1005 o.thumbnailUrl = "foo"; |
943 o.tickerSymbol = "foo"; | 1006 o.tickerSymbol = "foo"; |
944 o.type = "foo"; | 1007 o.type = "foo"; |
945 o.url = "foo"; | 1008 o.url = "foo"; |
946 o.width = "foo"; | 1009 o.width = "foo"; |
947 o.worstRating = "foo"; | 1010 o.worstRating = "foo"; |
948 } | 1011 } |
949 buildCounterItemScope--; | 1012 buildCounterItemScope--; |
950 return o; | 1013 return o; |
951 } | 1014 } |
952 | 1015 |
953 checkItemScope(api.ItemScope o) { | 1016 checkItemScope(api.ItemScope o) { |
954 buildCounterItemScope++; | 1017 buildCounterItemScope++; |
955 if (buildCounterItemScope < 3) { | 1018 if (buildCounterItemScope < 3) { |
956 checkItemScope(o.about); | 1019 checkItemScope(o.about); |
957 checkUnnamed1992(o.additionalName); | 1020 checkUnnamed125(o.additionalName); |
958 checkItemScope(o.address); | 1021 checkItemScope(o.address); |
959 unittest.expect(o.addressCountry, unittest.equals('foo')); | 1022 unittest.expect(o.addressCountry, unittest.equals('foo')); |
960 unittest.expect(o.addressLocality, unittest.equals('foo')); | 1023 unittest.expect(o.addressLocality, unittest.equals('foo')); |
961 unittest.expect(o.addressRegion, unittest.equals('foo')); | 1024 unittest.expect(o.addressRegion, unittest.equals('foo')); |
962 checkUnnamed1993(o.associatedMedia); | 1025 checkUnnamed126(o.associatedMedia); |
963 unittest.expect(o.attendeeCount, unittest.equals(42)); | 1026 unittest.expect(o.attendeeCount, unittest.equals(42)); |
964 checkUnnamed1994(o.attendees); | 1027 checkUnnamed127(o.attendees); |
965 checkItemScope(o.audio); | 1028 checkItemScope(o.audio); |
966 checkUnnamed1995(o.author); | 1029 checkUnnamed128(o.author); |
967 unittest.expect(o.bestRating, unittest.equals('foo')); | 1030 unittest.expect(o.bestRating, unittest.equals('foo')); |
968 unittest.expect(o.birthDate, unittest.equals('foo')); | 1031 unittest.expect(o.birthDate, unittest.equals('foo')); |
969 checkItemScope(o.byArtist); | 1032 checkItemScope(o.byArtist); |
970 unittest.expect(o.caption, unittest.equals('foo')); | 1033 unittest.expect(o.caption, unittest.equals('foo')); |
971 unittest.expect(o.contentSize, unittest.equals('foo')); | 1034 unittest.expect(o.contentSize, unittest.equals('foo')); |
972 unittest.expect(o.contentUrl, unittest.equals('foo')); | 1035 unittest.expect(o.contentUrl, unittest.equals('foo')); |
973 checkUnnamed1996(o.contributor); | 1036 checkUnnamed129(o.contributor); |
974 unittest.expect(o.dateCreated, unittest.equals('foo')); | 1037 unittest.expect(o.dateCreated, unittest.equals('foo')); |
975 unittest.expect(o.dateModified, unittest.equals('foo')); | 1038 unittest.expect(o.dateModified, unittest.equals('foo')); |
976 unittest.expect(o.datePublished, unittest.equals('foo')); | 1039 unittest.expect(o.datePublished, unittest.equals('foo')); |
977 unittest.expect(o.description, unittest.equals('foo')); | 1040 unittest.expect(o.description, unittest.equals('foo')); |
978 unittest.expect(o.duration, unittest.equals('foo')); | 1041 unittest.expect(o.duration, unittest.equals('foo')); |
979 unittest.expect(o.embedUrl, unittest.equals('foo')); | 1042 unittest.expect(o.embedUrl, unittest.equals('foo')); |
980 unittest.expect(o.endDate, unittest.equals('foo')); | 1043 unittest.expect(o.endDate, unittest.equals('foo')); |
981 unittest.expect(o.familyName, unittest.equals('foo')); | 1044 unittest.expect(o.familyName, unittest.equals('foo')); |
982 unittest.expect(o.gender, unittest.equals('foo')); | 1045 unittest.expect(o.gender, unittest.equals('foo')); |
983 checkItemScope(o.geo); | 1046 checkItemScope(o.geo); |
984 unittest.expect(o.givenName, unittest.equals('foo')); | 1047 unittest.expect(o.givenName, unittest.equals('foo')); |
985 unittest.expect(o.height, unittest.equals('foo')); | 1048 unittest.expect(o.height, unittest.equals('foo')); |
986 unittest.expect(o.id, unittest.equals('foo')); | 1049 unittest.expect(o.id, unittest.equals('foo')); |
987 unittest.expect(o.image, unittest.equals('foo')); | 1050 unittest.expect(o.image, unittest.equals('foo')); |
988 checkItemScope(o.inAlbum); | 1051 checkItemScope(o.inAlbum); |
989 unittest.expect(o.kind, unittest.equals('foo')); | 1052 unittest.expect(o.kind, unittest.equals('foo')); |
990 unittest.expect(o.latitude, unittest.equals(42.0)); | 1053 unittest.expect(o.latitude, unittest.equals(42.0)); |
991 checkItemScope(o.location); | 1054 checkItemScope(o.location); |
992 unittest.expect(o.longitude, unittest.equals(42.0)); | 1055 unittest.expect(o.longitude, unittest.equals(42.0)); |
993 unittest.expect(o.name, unittest.equals('foo')); | 1056 unittest.expect(o.name, unittest.equals('foo')); |
994 checkItemScope(o.partOfTVSeries); | 1057 checkItemScope(o.partOfTVSeries); |
995 checkUnnamed1997(o.performers); | 1058 checkUnnamed130(o.performers); |
996 unittest.expect(o.playerType, unittest.equals('foo')); | 1059 unittest.expect(o.playerType, unittest.equals('foo')); |
997 unittest.expect(o.postOfficeBoxNumber, unittest.equals('foo')); | 1060 unittest.expect(o.postOfficeBoxNumber, unittest.equals('foo')); |
998 unittest.expect(o.postalCode, unittest.equals('foo')); | 1061 unittest.expect(o.postalCode, unittest.equals('foo')); |
999 unittest.expect(o.ratingValue, unittest.equals('foo')); | 1062 unittest.expect(o.ratingValue, unittest.equals('foo')); |
1000 checkItemScope(o.reviewRating); | 1063 checkItemScope(o.reviewRating); |
1001 unittest.expect(o.startDate, unittest.equals('foo')); | 1064 unittest.expect(o.startDate, unittest.equals('foo')); |
1002 unittest.expect(o.streetAddress, unittest.equals('foo')); | 1065 unittest.expect(o.streetAddress, unittest.equals('foo')); |
1003 unittest.expect(o.text, unittest.equals('foo')); | 1066 unittest.expect(o.text, unittest.equals('foo')); |
1004 checkItemScope(o.thumbnail); | 1067 checkItemScope(o.thumbnail); |
1005 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); | 1068 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); |
(...skipping 30 matching lines...) Expand all Loading... |
1036 unittest.expect(o.kind, unittest.equals('foo')); | 1099 unittest.expect(o.kind, unittest.equals('foo')); |
1037 checkItemScope(o.object); | 1100 checkItemScope(o.object); |
1038 checkItemScope(o.result); | 1101 checkItemScope(o.result); |
1039 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 1102 unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
1040 checkItemScope(o.target); | 1103 checkItemScope(o.target); |
1041 unittest.expect(o.type, unittest.equals('foo')); | 1104 unittest.expect(o.type, unittest.equals('foo')); |
1042 } | 1105 } |
1043 buildCounterMoment--; | 1106 buildCounterMoment--; |
1044 } | 1107 } |
1045 | 1108 |
1046 buildUnnamed1998() { | 1109 buildUnnamed131() { |
1047 var o = new core.List<api.Moment>(); | 1110 var o = new core.List<api.Moment>(); |
1048 o.add(buildMoment()); | 1111 o.add(buildMoment()); |
1049 o.add(buildMoment()); | 1112 o.add(buildMoment()); |
1050 return o; | 1113 return o; |
1051 } | 1114 } |
1052 | 1115 |
1053 checkUnnamed1998(core.List<api.Moment> o) { | 1116 checkUnnamed131(core.List<api.Moment> o) { |
1054 unittest.expect(o, unittest.hasLength(2)); | 1117 unittest.expect(o, unittest.hasLength(2)); |
1055 checkMoment(o[0]); | 1118 checkMoment(o[0]); |
1056 checkMoment(o[1]); | 1119 checkMoment(o[1]); |
1057 } | 1120 } |
1058 | 1121 |
1059 core.int buildCounterMomentsFeed = 0; | 1122 core.int buildCounterMomentsFeed = 0; |
1060 buildMomentsFeed() { | 1123 buildMomentsFeed() { |
1061 var o = new api.MomentsFeed(); | 1124 var o = new api.MomentsFeed(); |
1062 buildCounterMomentsFeed++; | 1125 buildCounterMomentsFeed++; |
1063 if (buildCounterMomentsFeed < 3) { | 1126 if (buildCounterMomentsFeed < 3) { |
1064 o.etag = "foo"; | 1127 o.etag = "foo"; |
1065 o.items = buildUnnamed1998(); | 1128 o.items = buildUnnamed131(); |
1066 o.kind = "foo"; | 1129 o.kind = "foo"; |
1067 o.nextLink = "foo"; | 1130 o.nextLink = "foo"; |
1068 o.nextPageToken = "foo"; | 1131 o.nextPageToken = "foo"; |
1069 o.selfLink = "foo"; | 1132 o.selfLink = "foo"; |
1070 o.title = "foo"; | 1133 o.title = "foo"; |
1071 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1134 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
1072 } | 1135 } |
1073 buildCounterMomentsFeed--; | 1136 buildCounterMomentsFeed--; |
1074 return o; | 1137 return o; |
1075 } | 1138 } |
1076 | 1139 |
1077 checkMomentsFeed(api.MomentsFeed o) { | 1140 checkMomentsFeed(api.MomentsFeed o) { |
1078 buildCounterMomentsFeed++; | 1141 buildCounterMomentsFeed++; |
1079 if (buildCounterMomentsFeed < 3) { | 1142 if (buildCounterMomentsFeed < 3) { |
1080 unittest.expect(o.etag, unittest.equals('foo')); | 1143 unittest.expect(o.etag, unittest.equals('foo')); |
1081 checkUnnamed1998(o.items); | 1144 checkUnnamed131(o.items); |
1082 unittest.expect(o.kind, unittest.equals('foo')); | 1145 unittest.expect(o.kind, unittest.equals('foo')); |
1083 unittest.expect(o.nextLink, unittest.equals('foo')); | 1146 unittest.expect(o.nextLink, unittest.equals('foo')); |
1084 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1147 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1085 unittest.expect(o.selfLink, unittest.equals('foo')); | 1148 unittest.expect(o.selfLink, unittest.equals('foo')); |
1086 unittest.expect(o.title, unittest.equals('foo')); | 1149 unittest.expect(o.title, unittest.equals('foo')); |
1087 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1150 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1088 } | 1151 } |
1089 buildCounterMomentsFeed--; | 1152 buildCounterMomentsFeed--; |
1090 } | 1153 } |
1091 | 1154 |
1092 buildUnnamed1999() { | 1155 buildUnnamed132() { |
1093 var o = new core.List<api.Person>(); | 1156 var o = new core.List<api.Person>(); |
1094 o.add(buildPerson()); | 1157 o.add(buildPerson()); |
1095 o.add(buildPerson()); | 1158 o.add(buildPerson()); |
1096 return o; | 1159 return o; |
1097 } | 1160 } |
1098 | 1161 |
1099 checkUnnamed1999(core.List<api.Person> o) { | 1162 checkUnnamed132(core.List<api.Person> o) { |
1100 unittest.expect(o, unittest.hasLength(2)); | 1163 unittest.expect(o, unittest.hasLength(2)); |
1101 checkPerson(o[0]); | 1164 checkPerson(o[0]); |
1102 checkPerson(o[1]); | 1165 checkPerson(o[1]); |
1103 } | 1166 } |
1104 | 1167 |
1105 core.int buildCounterPeopleFeed = 0; | 1168 core.int buildCounterPeopleFeed = 0; |
1106 buildPeopleFeed() { | 1169 buildPeopleFeed() { |
1107 var o = new api.PeopleFeed(); | 1170 var o = new api.PeopleFeed(); |
1108 buildCounterPeopleFeed++; | 1171 buildCounterPeopleFeed++; |
1109 if (buildCounterPeopleFeed < 3) { | 1172 if (buildCounterPeopleFeed < 3) { |
1110 o.etag = "foo"; | 1173 o.etag = "foo"; |
1111 o.items = buildUnnamed1999(); | 1174 o.items = buildUnnamed132(); |
1112 o.kind = "foo"; | 1175 o.kind = "foo"; |
1113 o.nextPageToken = "foo"; | 1176 o.nextPageToken = "foo"; |
1114 o.selfLink = "foo"; | 1177 o.selfLink = "foo"; |
1115 o.title = "foo"; | 1178 o.title = "foo"; |
1116 o.totalItems = 42; | 1179 o.totalItems = 42; |
1117 } | 1180 } |
1118 buildCounterPeopleFeed--; | 1181 buildCounterPeopleFeed--; |
1119 return o; | 1182 return o; |
1120 } | 1183 } |
1121 | 1184 |
1122 checkPeopleFeed(api.PeopleFeed o) { | 1185 checkPeopleFeed(api.PeopleFeed o) { |
1123 buildCounterPeopleFeed++; | 1186 buildCounterPeopleFeed++; |
1124 if (buildCounterPeopleFeed < 3) { | 1187 if (buildCounterPeopleFeed < 3) { |
1125 unittest.expect(o.etag, unittest.equals('foo')); | 1188 unittest.expect(o.etag, unittest.equals('foo')); |
1126 checkUnnamed1999(o.items); | 1189 checkUnnamed132(o.items); |
1127 unittest.expect(o.kind, unittest.equals('foo')); | 1190 unittest.expect(o.kind, unittest.equals('foo')); |
1128 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1191 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1129 unittest.expect(o.selfLink, unittest.equals('foo')); | 1192 unittest.expect(o.selfLink, unittest.equals('foo')); |
1130 unittest.expect(o.title, unittest.equals('foo')); | 1193 unittest.expect(o.title, unittest.equals('foo')); |
1131 unittest.expect(o.totalItems, unittest.equals(42)); | 1194 unittest.expect(o.totalItems, unittest.equals(42)); |
1132 } | 1195 } |
1133 buildCounterPeopleFeed--; | 1196 buildCounterPeopleFeed--; |
1134 } | 1197 } |
1135 | 1198 |
1136 core.int buildCounterPersonAgeRange = 0; | 1199 core.int buildCounterPersonAgeRange = 0; |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 | 1298 |
1236 checkPersonEmails(api.PersonEmails o) { | 1299 checkPersonEmails(api.PersonEmails o) { |
1237 buildCounterPersonEmails++; | 1300 buildCounterPersonEmails++; |
1238 if (buildCounterPersonEmails < 3) { | 1301 if (buildCounterPersonEmails < 3) { |
1239 unittest.expect(o.type, unittest.equals('foo')); | 1302 unittest.expect(o.type, unittest.equals('foo')); |
1240 unittest.expect(o.value, unittest.equals('foo')); | 1303 unittest.expect(o.value, unittest.equals('foo')); |
1241 } | 1304 } |
1242 buildCounterPersonEmails--; | 1305 buildCounterPersonEmails--; |
1243 } | 1306 } |
1244 | 1307 |
1245 buildUnnamed2000() { | 1308 buildUnnamed133() { |
1246 var o = new core.List<api.PersonEmails>(); | 1309 var o = new core.List<api.PersonEmails>(); |
1247 o.add(buildPersonEmails()); | 1310 o.add(buildPersonEmails()); |
1248 o.add(buildPersonEmails()); | 1311 o.add(buildPersonEmails()); |
1249 return o; | 1312 return o; |
1250 } | 1313 } |
1251 | 1314 |
1252 checkUnnamed2000(core.List<api.PersonEmails> o) { | 1315 checkUnnamed133(core.List<api.PersonEmails> o) { |
1253 unittest.expect(o, unittest.hasLength(2)); | 1316 unittest.expect(o, unittest.hasLength(2)); |
1254 checkPersonEmails(o[0]); | 1317 checkPersonEmails(o[0]); |
1255 checkPersonEmails(o[1]); | 1318 checkPersonEmails(o[1]); |
1256 } | 1319 } |
1257 | 1320 |
1258 core.int buildCounterPersonImage = 0; | 1321 core.int buildCounterPersonImage = 0; |
1259 buildPersonImage() { | 1322 buildPersonImage() { |
1260 var o = new api.PersonImage(); | 1323 var o = new api.PersonImage(); |
1261 buildCounterPersonImage++; | 1324 buildCounterPersonImage++; |
1262 if (buildCounterPersonImage < 3) { | 1325 if (buildCounterPersonImage < 3) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1333 unittest.expect(o.location, unittest.equals('foo')); | 1396 unittest.expect(o.location, unittest.equals('foo')); |
1334 unittest.expect(o.name, unittest.equals('foo')); | 1397 unittest.expect(o.name, unittest.equals('foo')); |
1335 unittest.expect(o.primary, unittest.isTrue); | 1398 unittest.expect(o.primary, unittest.isTrue); |
1336 unittest.expect(o.startDate, unittest.equals('foo')); | 1399 unittest.expect(o.startDate, unittest.equals('foo')); |
1337 unittest.expect(o.title, unittest.equals('foo')); | 1400 unittest.expect(o.title, unittest.equals('foo')); |
1338 unittest.expect(o.type, unittest.equals('foo')); | 1401 unittest.expect(o.type, unittest.equals('foo')); |
1339 } | 1402 } |
1340 buildCounterPersonOrganizations--; | 1403 buildCounterPersonOrganizations--; |
1341 } | 1404 } |
1342 | 1405 |
1343 buildUnnamed2001() { | 1406 buildUnnamed134() { |
1344 var o = new core.List<api.PersonOrganizations>(); | 1407 var o = new core.List<api.PersonOrganizations>(); |
1345 o.add(buildPersonOrganizations()); | 1408 o.add(buildPersonOrganizations()); |
1346 o.add(buildPersonOrganizations()); | 1409 o.add(buildPersonOrganizations()); |
1347 return o; | 1410 return o; |
1348 } | 1411 } |
1349 | 1412 |
1350 checkUnnamed2001(core.List<api.PersonOrganizations> o) { | 1413 checkUnnamed134(core.List<api.PersonOrganizations> o) { |
1351 unittest.expect(o, unittest.hasLength(2)); | 1414 unittest.expect(o, unittest.hasLength(2)); |
1352 checkPersonOrganizations(o[0]); | 1415 checkPersonOrganizations(o[0]); |
1353 checkPersonOrganizations(o[1]); | 1416 checkPersonOrganizations(o[1]); |
1354 } | 1417 } |
1355 | 1418 |
1356 core.int buildCounterPersonPlacesLived = 0; | 1419 core.int buildCounterPersonPlacesLived = 0; |
1357 buildPersonPlacesLived() { | 1420 buildPersonPlacesLived() { |
1358 var o = new api.PersonPlacesLived(); | 1421 var o = new api.PersonPlacesLived(); |
1359 buildCounterPersonPlacesLived++; | 1422 buildCounterPersonPlacesLived++; |
1360 if (buildCounterPersonPlacesLived < 3) { | 1423 if (buildCounterPersonPlacesLived < 3) { |
1361 o.primary = true; | 1424 o.primary = true; |
1362 o.value = "foo"; | 1425 o.value = "foo"; |
1363 } | 1426 } |
1364 buildCounterPersonPlacesLived--; | 1427 buildCounterPersonPlacesLived--; |
1365 return o; | 1428 return o; |
1366 } | 1429 } |
1367 | 1430 |
1368 checkPersonPlacesLived(api.PersonPlacesLived o) { | 1431 checkPersonPlacesLived(api.PersonPlacesLived o) { |
1369 buildCounterPersonPlacesLived++; | 1432 buildCounterPersonPlacesLived++; |
1370 if (buildCounterPersonPlacesLived < 3) { | 1433 if (buildCounterPersonPlacesLived < 3) { |
1371 unittest.expect(o.primary, unittest.isTrue); | 1434 unittest.expect(o.primary, unittest.isTrue); |
1372 unittest.expect(o.value, unittest.equals('foo')); | 1435 unittest.expect(o.value, unittest.equals('foo')); |
1373 } | 1436 } |
1374 buildCounterPersonPlacesLived--; | 1437 buildCounterPersonPlacesLived--; |
1375 } | 1438 } |
1376 | 1439 |
1377 buildUnnamed2002() { | 1440 buildUnnamed135() { |
1378 var o = new core.List<api.PersonPlacesLived>(); | 1441 var o = new core.List<api.PersonPlacesLived>(); |
1379 o.add(buildPersonPlacesLived()); | 1442 o.add(buildPersonPlacesLived()); |
1380 o.add(buildPersonPlacesLived()); | 1443 o.add(buildPersonPlacesLived()); |
1381 return o; | 1444 return o; |
1382 } | 1445 } |
1383 | 1446 |
1384 checkUnnamed2002(core.List<api.PersonPlacesLived> o) { | 1447 checkUnnamed135(core.List<api.PersonPlacesLived> o) { |
1385 unittest.expect(o, unittest.hasLength(2)); | 1448 unittest.expect(o, unittest.hasLength(2)); |
1386 checkPersonPlacesLived(o[0]); | 1449 checkPersonPlacesLived(o[0]); |
1387 checkPersonPlacesLived(o[1]); | 1450 checkPersonPlacesLived(o[1]); |
1388 } | 1451 } |
1389 | 1452 |
1390 core.int buildCounterPersonUrls = 0; | 1453 core.int buildCounterPersonUrls = 0; |
1391 buildPersonUrls() { | 1454 buildPersonUrls() { |
1392 var o = new api.PersonUrls(); | 1455 var o = new api.PersonUrls(); |
1393 buildCounterPersonUrls++; | 1456 buildCounterPersonUrls++; |
1394 if (buildCounterPersonUrls < 3) { | 1457 if (buildCounterPersonUrls < 3) { |
1395 o.label = "foo"; | 1458 o.label = "foo"; |
1396 o.type = "foo"; | 1459 o.type = "foo"; |
1397 o.value = "foo"; | 1460 o.value = "foo"; |
1398 } | 1461 } |
1399 buildCounterPersonUrls--; | 1462 buildCounterPersonUrls--; |
1400 return o; | 1463 return o; |
1401 } | 1464 } |
1402 | 1465 |
1403 checkPersonUrls(api.PersonUrls o) { | 1466 checkPersonUrls(api.PersonUrls o) { |
1404 buildCounterPersonUrls++; | 1467 buildCounterPersonUrls++; |
1405 if (buildCounterPersonUrls < 3) { | 1468 if (buildCounterPersonUrls < 3) { |
1406 unittest.expect(o.label, unittest.equals('foo')); | 1469 unittest.expect(o.label, unittest.equals('foo')); |
1407 unittest.expect(o.type, unittest.equals('foo')); | 1470 unittest.expect(o.type, unittest.equals('foo')); |
1408 unittest.expect(o.value, unittest.equals('foo')); | 1471 unittest.expect(o.value, unittest.equals('foo')); |
1409 } | 1472 } |
1410 buildCounterPersonUrls--; | 1473 buildCounterPersonUrls--; |
1411 } | 1474 } |
1412 | 1475 |
1413 buildUnnamed2003() { | 1476 buildUnnamed136() { |
1414 var o = new core.List<api.PersonUrls>(); | 1477 var o = new core.List<api.PersonUrls>(); |
1415 o.add(buildPersonUrls()); | 1478 o.add(buildPersonUrls()); |
1416 o.add(buildPersonUrls()); | 1479 o.add(buildPersonUrls()); |
1417 return o; | 1480 return o; |
1418 } | 1481 } |
1419 | 1482 |
1420 checkUnnamed2003(core.List<api.PersonUrls> o) { | 1483 checkUnnamed136(core.List<api.PersonUrls> o) { |
1421 unittest.expect(o, unittest.hasLength(2)); | 1484 unittest.expect(o, unittest.hasLength(2)); |
1422 checkPersonUrls(o[0]); | 1485 checkPersonUrls(o[0]); |
1423 checkPersonUrls(o[1]); | 1486 checkPersonUrls(o[1]); |
1424 } | 1487 } |
1425 | 1488 |
1426 core.int buildCounterPerson = 0; | 1489 core.int buildCounterPerson = 0; |
1427 buildPerson() { | 1490 buildPerson() { |
1428 var o = new api.Person(); | 1491 var o = new api.Person(); |
1429 buildCounterPerson++; | 1492 buildCounterPerson++; |
1430 if (buildCounterPerson < 3) { | 1493 if (buildCounterPerson < 3) { |
1431 o.aboutMe = "foo"; | 1494 o.aboutMe = "foo"; |
1432 o.ageRange = buildPersonAgeRange(); | 1495 o.ageRange = buildPersonAgeRange(); |
1433 o.birthday = "foo"; | 1496 o.birthday = "foo"; |
1434 o.braggingRights = "foo"; | 1497 o.braggingRights = "foo"; |
1435 o.circledByCount = 42; | 1498 o.circledByCount = 42; |
1436 o.cover = buildPersonCover(); | 1499 o.cover = buildPersonCover(); |
1437 o.currentLocation = "foo"; | 1500 o.currentLocation = "foo"; |
1438 o.displayName = "foo"; | 1501 o.displayName = "foo"; |
1439 o.domain = "foo"; | 1502 o.domain = "foo"; |
1440 o.emails = buildUnnamed2000(); | 1503 o.emails = buildUnnamed133(); |
1441 o.etag = "foo"; | 1504 o.etag = "foo"; |
1442 o.gender = "foo"; | 1505 o.gender = "foo"; |
1443 o.id = "foo"; | 1506 o.id = "foo"; |
1444 o.image = buildPersonImage(); | 1507 o.image = buildPersonImage(); |
1445 o.isPlusUser = true; | 1508 o.isPlusUser = true; |
1446 o.kind = "foo"; | 1509 o.kind = "foo"; |
1447 o.language = "foo"; | 1510 o.language = "foo"; |
1448 o.name = buildPersonName(); | 1511 o.name = buildPersonName(); |
1449 o.nickname = "foo"; | 1512 o.nickname = "foo"; |
1450 o.objectType = "foo"; | 1513 o.objectType = "foo"; |
1451 o.occupation = "foo"; | 1514 o.occupation = "foo"; |
1452 o.organizations = buildUnnamed2001(); | 1515 o.organizations = buildUnnamed134(); |
1453 o.placesLived = buildUnnamed2002(); | 1516 o.placesLived = buildUnnamed135(); |
1454 o.plusOneCount = 42; | 1517 o.plusOneCount = 42; |
1455 o.relationshipStatus = "foo"; | 1518 o.relationshipStatus = "foo"; |
1456 o.skills = "foo"; | 1519 o.skills = "foo"; |
1457 o.tagline = "foo"; | 1520 o.tagline = "foo"; |
1458 o.url = "foo"; | 1521 o.url = "foo"; |
1459 o.urls = buildUnnamed2003(); | 1522 o.urls = buildUnnamed136(); |
1460 o.verified = true; | 1523 o.verified = true; |
1461 } | 1524 } |
1462 buildCounterPerson--; | 1525 buildCounterPerson--; |
1463 return o; | 1526 return o; |
1464 } | 1527 } |
1465 | 1528 |
1466 checkPerson(api.Person o) { | 1529 checkPerson(api.Person o) { |
1467 buildCounterPerson++; | 1530 buildCounterPerson++; |
1468 if (buildCounterPerson < 3) { | 1531 if (buildCounterPerson < 3) { |
1469 unittest.expect(o.aboutMe, unittest.equals('foo')); | 1532 unittest.expect(o.aboutMe, unittest.equals('foo')); |
1470 checkPersonAgeRange(o.ageRange); | 1533 checkPersonAgeRange(o.ageRange); |
1471 unittest.expect(o.birthday, unittest.equals('foo')); | 1534 unittest.expect(o.birthday, unittest.equals('foo')); |
1472 unittest.expect(o.braggingRights, unittest.equals('foo')); | 1535 unittest.expect(o.braggingRights, unittest.equals('foo')); |
1473 unittest.expect(o.circledByCount, unittest.equals(42)); | 1536 unittest.expect(o.circledByCount, unittest.equals(42)); |
1474 checkPersonCover(o.cover); | 1537 checkPersonCover(o.cover); |
1475 unittest.expect(o.currentLocation, unittest.equals('foo')); | 1538 unittest.expect(o.currentLocation, unittest.equals('foo')); |
1476 unittest.expect(o.displayName, unittest.equals('foo')); | 1539 unittest.expect(o.displayName, unittest.equals('foo')); |
1477 unittest.expect(o.domain, unittest.equals('foo')); | 1540 unittest.expect(o.domain, unittest.equals('foo')); |
1478 checkUnnamed2000(o.emails); | 1541 checkUnnamed133(o.emails); |
1479 unittest.expect(o.etag, unittest.equals('foo')); | 1542 unittest.expect(o.etag, unittest.equals('foo')); |
1480 unittest.expect(o.gender, unittest.equals('foo')); | 1543 unittest.expect(o.gender, unittest.equals('foo')); |
1481 unittest.expect(o.id, unittest.equals('foo')); | 1544 unittest.expect(o.id, unittest.equals('foo')); |
1482 checkPersonImage(o.image); | 1545 checkPersonImage(o.image); |
1483 unittest.expect(o.isPlusUser, unittest.isTrue); | 1546 unittest.expect(o.isPlusUser, unittest.isTrue); |
1484 unittest.expect(o.kind, unittest.equals('foo')); | 1547 unittest.expect(o.kind, unittest.equals('foo')); |
1485 unittest.expect(o.language, unittest.equals('foo')); | 1548 unittest.expect(o.language, unittest.equals('foo')); |
1486 checkPersonName(o.name); | 1549 checkPersonName(o.name); |
1487 unittest.expect(o.nickname, unittest.equals('foo')); | 1550 unittest.expect(o.nickname, unittest.equals('foo')); |
1488 unittest.expect(o.objectType, unittest.equals('foo')); | 1551 unittest.expect(o.objectType, unittest.equals('foo')); |
1489 unittest.expect(o.occupation, unittest.equals('foo')); | 1552 unittest.expect(o.occupation, unittest.equals('foo')); |
1490 checkUnnamed2001(o.organizations); | 1553 checkUnnamed134(o.organizations); |
1491 checkUnnamed2002(o.placesLived); | 1554 checkUnnamed135(o.placesLived); |
1492 unittest.expect(o.plusOneCount, unittest.equals(42)); | 1555 unittest.expect(o.plusOneCount, unittest.equals(42)); |
1493 unittest.expect(o.relationshipStatus, unittest.equals('foo')); | 1556 unittest.expect(o.relationshipStatus, unittest.equals('foo')); |
1494 unittest.expect(o.skills, unittest.equals('foo')); | 1557 unittest.expect(o.skills, unittest.equals('foo')); |
1495 unittest.expect(o.tagline, unittest.equals('foo')); | 1558 unittest.expect(o.tagline, unittest.equals('foo')); |
1496 unittest.expect(o.url, unittest.equals('foo')); | 1559 unittest.expect(o.url, unittest.equals('foo')); |
1497 checkUnnamed2003(o.urls); | 1560 checkUnnamed136(o.urls); |
1498 unittest.expect(o.verified, unittest.isTrue); | 1561 unittest.expect(o.verified, unittest.isTrue); |
1499 } | 1562 } |
1500 buildCounterPerson--; | 1563 buildCounterPerson--; |
1501 } | 1564 } |
1502 | 1565 |
1503 core.int buildCounterPlaceAddress = 0; | 1566 core.int buildCounterPlaceAddress = 0; |
1504 buildPlaceAddress() { | 1567 buildPlaceAddress() { |
1505 var o = new api.PlaceAddress(); | 1568 var o = new api.PlaceAddress(); |
1506 buildCounterPlaceAddress++; | 1569 buildCounterPlaceAddress++; |
1507 if (buildCounterPlaceAddress < 3) { | 1570 if (buildCounterPlaceAddress < 3) { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 | 1675 |
1613 unittest.group("obj-schema-ActivityActorName", () { | 1676 unittest.group("obj-schema-ActivityActorName", () { |
1614 unittest.test("to-json--from-json", () { | 1677 unittest.test("to-json--from-json", () { |
1615 var o = buildActivityActorName(); | 1678 var o = buildActivityActorName(); |
1616 var od = new api.ActivityActorName.fromJson(o.toJson()); | 1679 var od = new api.ActivityActorName.fromJson(o.toJson()); |
1617 checkActivityActorName(od); | 1680 checkActivityActorName(od); |
1618 }); | 1681 }); |
1619 }); | 1682 }); |
1620 | 1683 |
1621 | 1684 |
| 1685 unittest.group("obj-schema-ActivityActorVerification", () { |
| 1686 unittest.test("to-json--from-json", () { |
| 1687 var o = buildActivityActorVerification(); |
| 1688 var od = new api.ActivityActorVerification.fromJson(o.toJson()); |
| 1689 checkActivityActorVerification(od); |
| 1690 }); |
| 1691 }); |
| 1692 |
| 1693 |
1622 unittest.group("obj-schema-ActivityActor", () { | 1694 unittest.group("obj-schema-ActivityActor", () { |
1623 unittest.test("to-json--from-json", () { | 1695 unittest.test("to-json--from-json", () { |
1624 var o = buildActivityActor(); | 1696 var o = buildActivityActor(); |
1625 var od = new api.ActivityActor.fromJson(o.toJson()); | 1697 var od = new api.ActivityActor.fromJson(o.toJson()); |
1626 checkActivityActor(od); | 1698 checkActivityActor(od); |
1627 }); | 1699 }); |
1628 }); | 1700 }); |
1629 | 1701 |
1630 | 1702 |
1631 unittest.group("obj-schema-ActivityObjectActorImage", () { | 1703 unittest.group("obj-schema-ActivityObjectActorImage", () { |
1632 unittest.test("to-json--from-json", () { | 1704 unittest.test("to-json--from-json", () { |
1633 var o = buildActivityObjectActorImage(); | 1705 var o = buildActivityObjectActorImage(); |
1634 var od = new api.ActivityObjectActorImage.fromJson(o.toJson()); | 1706 var od = new api.ActivityObjectActorImage.fromJson(o.toJson()); |
1635 checkActivityObjectActorImage(od); | 1707 checkActivityObjectActorImage(od); |
1636 }); | 1708 }); |
1637 }); | 1709 }); |
1638 | 1710 |
1639 | 1711 |
| 1712 unittest.group("obj-schema-ActivityObjectActorVerification", () { |
| 1713 unittest.test("to-json--from-json", () { |
| 1714 var o = buildActivityObjectActorVerification(); |
| 1715 var od = new api.ActivityObjectActorVerification.fromJson(o.toJson()); |
| 1716 checkActivityObjectActorVerification(od); |
| 1717 }); |
| 1718 }); |
| 1719 |
| 1720 |
1640 unittest.group("obj-schema-ActivityObjectActor", () { | 1721 unittest.group("obj-schema-ActivityObjectActor", () { |
1641 unittest.test("to-json--from-json", () { | 1722 unittest.test("to-json--from-json", () { |
1642 var o = buildActivityObjectActor(); | 1723 var o = buildActivityObjectActor(); |
1643 var od = new api.ActivityObjectActor.fromJson(o.toJson()); | 1724 var od = new api.ActivityObjectActor.fromJson(o.toJson()); |
1644 checkActivityObjectActor(od); | 1725 checkActivityObjectActor(od); |
1645 }); | 1726 }); |
1646 }); | 1727 }); |
1647 | 1728 |
1648 | 1729 |
1649 unittest.group("obj-schema-ActivityObjectAttachmentsEmbed", () { | 1730 unittest.group("obj-schema-ActivityObjectAttachmentsEmbed", () { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1765 | 1846 |
1766 unittest.group("obj-schema-CommentActorImage", () { | 1847 unittest.group("obj-schema-CommentActorImage", () { |
1767 unittest.test("to-json--from-json", () { | 1848 unittest.test("to-json--from-json", () { |
1768 var o = buildCommentActorImage(); | 1849 var o = buildCommentActorImage(); |
1769 var od = new api.CommentActorImage.fromJson(o.toJson()); | 1850 var od = new api.CommentActorImage.fromJson(o.toJson()); |
1770 checkCommentActorImage(od); | 1851 checkCommentActorImage(od); |
1771 }); | 1852 }); |
1772 }); | 1853 }); |
1773 | 1854 |
1774 | 1855 |
| 1856 unittest.group("obj-schema-CommentActorVerification", () { |
| 1857 unittest.test("to-json--from-json", () { |
| 1858 var o = buildCommentActorVerification(); |
| 1859 var od = new api.CommentActorVerification.fromJson(o.toJson()); |
| 1860 checkCommentActorVerification(od); |
| 1861 }); |
| 1862 }); |
| 1863 |
| 1864 |
1775 unittest.group("obj-schema-CommentActor", () { | 1865 unittest.group("obj-schema-CommentActor", () { |
1776 unittest.test("to-json--from-json", () { | 1866 unittest.test("to-json--from-json", () { |
1777 var o = buildCommentActor(); | 1867 var o = buildCommentActor(); |
1778 var od = new api.CommentActor.fromJson(o.toJson()); | 1868 var od = new api.CommentActor.fromJson(o.toJson()); |
1779 checkCommentActor(od); | 1869 checkCommentActor(od); |
1780 }); | 1870 }); |
1781 }); | 1871 }); |
1782 | 1872 |
1783 | 1873 |
1784 unittest.group("obj-schema-CommentInReplyTo", () { | 1874 unittest.group("obj-schema-CommentInReplyTo", () { |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2400 "content-type" : "application/json; charset=utf-8", | 2490 "content-type" : "application/json; charset=utf-8", |
2401 }; | 2491 }; |
2402 var resp = convert.JSON.encode(buildMomentsFeed()); | 2492 var resp = convert.JSON.encode(buildMomentsFeed()); |
2403 return new async.Future.value(stringResponse(200, h, resp)); | 2493 return new async.Future.value(stringResponse(200, h, resp)); |
2404 }), true); | 2494 }), true); |
2405 res.list(arg_userId, arg_collection, maxResults: arg_maxResults, pageToken
: arg_pageToken, targetUrl: arg_targetUrl, type: arg_type).then(unittest.expectA
sync(((api.MomentsFeed response) { | 2495 res.list(arg_userId, arg_collection, maxResults: arg_maxResults, pageToken
: arg_pageToken, targetUrl: arg_targetUrl, type: arg_type).then(unittest.expectA
sync(((api.MomentsFeed response) { |
2406 checkMomentsFeed(response); | 2496 checkMomentsFeed(response); |
2407 }))); | 2497 }))); |
2408 }); | 2498 }); |
2409 | 2499 |
2410 unittest.test("method--remove", () { | |
2411 | |
2412 var mock = new HttpServerMock(); | |
2413 api.MomentsResourceApi res = new api.PlusApi(mock).moments; | |
2414 var arg_id = "foo"; | |
2415 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
2416 var path = (req.url).path; | |
2417 var pathOffset = 0; | |
2418 var index; | |
2419 var subPart; | |
2420 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
2421 pathOffset += 1; | |
2422 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("plus/v1/")); | |
2423 pathOffset += 8; | |
2424 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("moments/")); | |
2425 pathOffset += 8; | |
2426 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
2427 pathOffset = path.length; | |
2428 unittest.expect(subPart, unittest.equals("$arg_id")); | |
2429 | |
2430 var query = (req.url).query; | |
2431 var queryOffset = 0; | |
2432 var queryMap = {}; | |
2433 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
2434 parseBool(n) { | |
2435 if (n == "true") return true; | |
2436 if (n == "false") return false; | |
2437 if (n == null) return null; | |
2438 throw new core.ArgumentError("Invalid boolean: $n"); | |
2439 } | |
2440 if (query.length > 0) { | |
2441 for (var part in query.split("&")) { | |
2442 var keyvalue = part.split("="); | |
2443 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
2444 } | |
2445 } | |
2446 | |
2447 | |
2448 var h = { | |
2449 "content-type" : "application/json; charset=utf-8", | |
2450 }; | |
2451 var resp = ""; | |
2452 return new async.Future.value(stringResponse(200, h, resp)); | |
2453 }), true); | |
2454 res.remove(arg_id).then(unittest.expectAsync((_) {})); | |
2455 }); | |
2456 | |
2457 }); | 2500 }); |
2458 | 2501 |
2459 | 2502 |
2460 unittest.group("resource-PeopleResourceApi", () { | 2503 unittest.group("resource-PeopleResourceApi", () { |
2461 unittest.test("method--get", () { | 2504 unittest.test("method--get", () { |
2462 | 2505 |
2463 var mock = new HttpServerMock(); | 2506 var mock = new HttpServerMock(); |
2464 api.PeopleResourceApi res = new api.PlusApi(mock).people; | 2507 api.PeopleResourceApi res = new api.PlusApi(mock).people; |
2465 var arg_userId = "foo"; | 2508 var arg_userId = "foo"; |
2466 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2509 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2682 res.search(arg_query, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { | 2725 res.search(arg_query, language: arg_language, maxResults: arg_maxResults,
pageToken: arg_pageToken).then(unittest.expectAsync(((api.PeopleFeed response) { |
2683 checkPeopleFeed(response); | 2726 checkPeopleFeed(response); |
2684 }))); | 2727 }))); |
2685 }); | 2728 }); |
2686 | 2729 |
2687 }); | 2730 }); |
2688 | 2731 |
2689 | 2732 |
2690 } | 2733 } |
2691 | 2734 |
OLD | NEW |