OLD | NEW |
1 library googleapis.blogger.v3.test; | 1 library googleapis.blogger.v3.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 checkBlogPages(api.BlogPages o) { | 54 checkBlogPages(api.BlogPages o) { |
55 buildCounterBlogPages++; | 55 buildCounterBlogPages++; |
56 if (buildCounterBlogPages < 3) { | 56 if (buildCounterBlogPages < 3) { |
57 unittest.expect(o.selfLink, unittest.equals('foo')); | 57 unittest.expect(o.selfLink, unittest.equals('foo')); |
58 unittest.expect(o.totalItems, unittest.equals(42)); | 58 unittest.expect(o.totalItems, unittest.equals(42)); |
59 } | 59 } |
60 buildCounterBlogPages--; | 60 buildCounterBlogPages--; |
61 } | 61 } |
62 | 62 |
63 buildUnnamed719() { | 63 buildUnnamed287() { |
64 var o = new core.List<api.Post>(); | 64 var o = new core.List<api.Post>(); |
65 o.add(buildPost()); | 65 o.add(buildPost()); |
66 o.add(buildPost()); | 66 o.add(buildPost()); |
67 return o; | 67 return o; |
68 } | 68 } |
69 | 69 |
70 checkUnnamed719(core.List<api.Post> o) { | 70 checkUnnamed287(core.List<api.Post> o) { |
71 unittest.expect(o, unittest.hasLength(2)); | 71 unittest.expect(o, unittest.hasLength(2)); |
72 checkPost(o[0]); | 72 checkPost(o[0]); |
73 checkPost(o[1]); | 73 checkPost(o[1]); |
74 } | 74 } |
75 | 75 |
76 core.int buildCounterBlogPosts = 0; | 76 core.int buildCounterBlogPosts = 0; |
77 buildBlogPosts() { | 77 buildBlogPosts() { |
78 var o = new api.BlogPosts(); | 78 var o = new api.BlogPosts(); |
79 buildCounterBlogPosts++; | 79 buildCounterBlogPosts++; |
80 if (buildCounterBlogPosts < 3) { | 80 if (buildCounterBlogPosts < 3) { |
81 o.items = buildUnnamed719(); | 81 o.items = buildUnnamed287(); |
82 o.selfLink = "foo"; | 82 o.selfLink = "foo"; |
83 o.totalItems = 42; | 83 o.totalItems = 42; |
84 } | 84 } |
85 buildCounterBlogPosts--; | 85 buildCounterBlogPosts--; |
86 return o; | 86 return o; |
87 } | 87 } |
88 | 88 |
89 checkBlogPosts(api.BlogPosts o) { | 89 checkBlogPosts(api.BlogPosts o) { |
90 buildCounterBlogPosts++; | 90 buildCounterBlogPosts++; |
91 if (buildCounterBlogPosts < 3) { | 91 if (buildCounterBlogPosts < 3) { |
92 checkUnnamed719(o.items); | 92 checkUnnamed287(o.items); |
93 unittest.expect(o.selfLink, unittest.equals('foo')); | 93 unittest.expect(o.selfLink, unittest.equals('foo')); |
94 unittest.expect(o.totalItems, unittest.equals(42)); | 94 unittest.expect(o.totalItems, unittest.equals(42)); |
95 } | 95 } |
96 buildCounterBlogPosts--; | 96 buildCounterBlogPosts--; |
97 } | 97 } |
98 | 98 |
99 core.int buildCounterBlog = 0; | 99 core.int buildCounterBlog = 0; |
100 buildBlog() { | 100 buildBlog() { |
101 var o = new api.Blog(); | 101 var o = new api.Blog(); |
102 buildCounterBlog++; | 102 buildCounterBlog++; |
(...skipping 29 matching lines...) Expand all Loading... |
132 checkBlogPosts(o.posts); | 132 checkBlogPosts(o.posts); |
133 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 133 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
134 unittest.expect(o.selfLink, unittest.equals('foo')); | 134 unittest.expect(o.selfLink, unittest.equals('foo')); |
135 unittest.expect(o.status, unittest.equals('foo')); | 135 unittest.expect(o.status, unittest.equals('foo')); |
136 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 136 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
137 unittest.expect(o.url, unittest.equals('foo')); | 137 unittest.expect(o.url, unittest.equals('foo')); |
138 } | 138 } |
139 buildCounterBlog--; | 139 buildCounterBlog--; |
140 } | 140 } |
141 | 141 |
142 buildUnnamed720() { | 142 buildUnnamed288() { |
143 var o = new core.List<api.BlogUserInfo>(); | 143 var o = new core.List<api.BlogUserInfo>(); |
144 o.add(buildBlogUserInfo()); | 144 o.add(buildBlogUserInfo()); |
145 o.add(buildBlogUserInfo()); | 145 o.add(buildBlogUserInfo()); |
146 return o; | 146 return o; |
147 } | 147 } |
148 | 148 |
149 checkUnnamed720(core.List<api.BlogUserInfo> o) { | 149 checkUnnamed288(core.List<api.BlogUserInfo> o) { |
150 unittest.expect(o, unittest.hasLength(2)); | 150 unittest.expect(o, unittest.hasLength(2)); |
151 checkBlogUserInfo(o[0]); | 151 checkBlogUserInfo(o[0]); |
152 checkBlogUserInfo(o[1]); | 152 checkBlogUserInfo(o[1]); |
153 } | 153 } |
154 | 154 |
155 buildUnnamed721() { | 155 buildUnnamed289() { |
156 var o = new core.List<api.Blog>(); | 156 var o = new core.List<api.Blog>(); |
157 o.add(buildBlog()); | 157 o.add(buildBlog()); |
158 o.add(buildBlog()); | 158 o.add(buildBlog()); |
159 return o; | 159 return o; |
160 } | 160 } |
161 | 161 |
162 checkUnnamed721(core.List<api.Blog> o) { | 162 checkUnnamed289(core.List<api.Blog> o) { |
163 unittest.expect(o, unittest.hasLength(2)); | 163 unittest.expect(o, unittest.hasLength(2)); |
164 checkBlog(o[0]); | 164 checkBlog(o[0]); |
165 checkBlog(o[1]); | 165 checkBlog(o[1]); |
166 } | 166 } |
167 | 167 |
168 core.int buildCounterBlogList = 0; | 168 core.int buildCounterBlogList = 0; |
169 buildBlogList() { | 169 buildBlogList() { |
170 var o = new api.BlogList(); | 170 var o = new api.BlogList(); |
171 buildCounterBlogList++; | 171 buildCounterBlogList++; |
172 if (buildCounterBlogList < 3) { | 172 if (buildCounterBlogList < 3) { |
173 o.blogUserInfos = buildUnnamed720(); | 173 o.blogUserInfos = buildUnnamed288(); |
174 o.items = buildUnnamed721(); | 174 o.items = buildUnnamed289(); |
175 o.kind = "foo"; | 175 o.kind = "foo"; |
176 } | 176 } |
177 buildCounterBlogList--; | 177 buildCounterBlogList--; |
178 return o; | 178 return o; |
179 } | 179 } |
180 | 180 |
181 checkBlogList(api.BlogList o) { | 181 checkBlogList(api.BlogList o) { |
182 buildCounterBlogList++; | 182 buildCounterBlogList++; |
183 if (buildCounterBlogList < 3) { | 183 if (buildCounterBlogList < 3) { |
184 checkUnnamed720(o.blogUserInfos); | 184 checkUnnamed288(o.blogUserInfos); |
185 checkUnnamed721(o.items); | 185 checkUnnamed289(o.items); |
186 unittest.expect(o.kind, unittest.equals('foo')); | 186 unittest.expect(o.kind, unittest.equals('foo')); |
187 } | 187 } |
188 buildCounterBlogList--; | 188 buildCounterBlogList--; |
189 } | 189 } |
190 | 190 |
191 core.int buildCounterBlogPerUserInfo = 0; | 191 core.int buildCounterBlogPerUserInfo = 0; |
192 buildBlogPerUserInfo() { | 192 buildBlogPerUserInfo() { |
193 var o = new api.BlogPerUserInfo(); | 193 var o = new api.BlogPerUserInfo(); |
194 buildCounterBlogPerUserInfo++; | 194 buildCounterBlogPerUserInfo++; |
195 if (buildCounterBlogPerUserInfo < 3) { | 195 if (buildCounterBlogPerUserInfo < 3) { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 unittest.expect(o.kind, unittest.equals('foo')); | 373 unittest.expect(o.kind, unittest.equals('foo')); |
374 checkCommentPost(o.post); | 374 checkCommentPost(o.post); |
375 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 375 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
376 unittest.expect(o.selfLink, unittest.equals('foo')); | 376 unittest.expect(o.selfLink, unittest.equals('foo')); |
377 unittest.expect(o.status, unittest.equals('foo')); | 377 unittest.expect(o.status, unittest.equals('foo')); |
378 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 378 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
379 } | 379 } |
380 buildCounterComment--; | 380 buildCounterComment--; |
381 } | 381 } |
382 | 382 |
383 buildUnnamed722() { | 383 buildUnnamed290() { |
384 var o = new core.List<api.Comment>(); | 384 var o = new core.List<api.Comment>(); |
385 o.add(buildComment()); | 385 o.add(buildComment()); |
386 o.add(buildComment()); | 386 o.add(buildComment()); |
387 return o; | 387 return o; |
388 } | 388 } |
389 | 389 |
390 checkUnnamed722(core.List<api.Comment> o) { | 390 checkUnnamed290(core.List<api.Comment> o) { |
391 unittest.expect(o, unittest.hasLength(2)); | 391 unittest.expect(o, unittest.hasLength(2)); |
392 checkComment(o[0]); | 392 checkComment(o[0]); |
393 checkComment(o[1]); | 393 checkComment(o[1]); |
394 } | 394 } |
395 | 395 |
396 core.int buildCounterCommentList = 0; | 396 core.int buildCounterCommentList = 0; |
397 buildCommentList() { | 397 buildCommentList() { |
398 var o = new api.CommentList(); | 398 var o = new api.CommentList(); |
399 buildCounterCommentList++; | 399 buildCounterCommentList++; |
400 if (buildCounterCommentList < 3) { | 400 if (buildCounterCommentList < 3) { |
401 o.items = buildUnnamed722(); | 401 o.items = buildUnnamed290(); |
402 o.kind = "foo"; | 402 o.kind = "foo"; |
403 o.nextPageToken = "foo"; | 403 o.nextPageToken = "foo"; |
404 o.prevPageToken = "foo"; | 404 o.prevPageToken = "foo"; |
405 } | 405 } |
406 buildCounterCommentList--; | 406 buildCounterCommentList--; |
407 return o; | 407 return o; |
408 } | 408 } |
409 | 409 |
410 checkCommentList(api.CommentList o) { | 410 checkCommentList(api.CommentList o) { |
411 buildCounterCommentList++; | 411 buildCounterCommentList++; |
412 if (buildCounterCommentList < 3) { | 412 if (buildCounterCommentList < 3) { |
413 checkUnnamed722(o.items); | 413 checkUnnamed290(o.items); |
414 unittest.expect(o.kind, unittest.equals('foo')); | 414 unittest.expect(o.kind, unittest.equals('foo')); |
415 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 415 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
416 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 416 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
417 } | 417 } |
418 buildCounterCommentList--; | 418 buildCounterCommentList--; |
419 } | 419 } |
420 | 420 |
421 core.int buildCounterPageAuthorImage = 0; | 421 core.int buildCounterPageAuthorImage = 0; |
422 buildPageAuthorImage() { | 422 buildPageAuthorImage() { |
423 var o = new api.PageAuthorImage(); | 423 var o = new api.PageAuthorImage(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 515 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
516 unittest.expect(o.selfLink, unittest.equals('foo')); | 516 unittest.expect(o.selfLink, unittest.equals('foo')); |
517 unittest.expect(o.status, unittest.equals('foo')); | 517 unittest.expect(o.status, unittest.equals('foo')); |
518 unittest.expect(o.title, unittest.equals('foo')); | 518 unittest.expect(o.title, unittest.equals('foo')); |
519 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 519 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
520 unittest.expect(o.url, unittest.equals('foo')); | 520 unittest.expect(o.url, unittest.equals('foo')); |
521 } | 521 } |
522 buildCounterPage--; | 522 buildCounterPage--; |
523 } | 523 } |
524 | 524 |
525 buildUnnamed723() { | 525 buildUnnamed291() { |
526 var o = new core.List<api.Page>(); | 526 var o = new core.List<api.Page>(); |
527 o.add(buildPage()); | 527 o.add(buildPage()); |
528 o.add(buildPage()); | 528 o.add(buildPage()); |
529 return o; | 529 return o; |
530 } | 530 } |
531 | 531 |
532 checkUnnamed723(core.List<api.Page> o) { | 532 checkUnnamed291(core.List<api.Page> o) { |
533 unittest.expect(o, unittest.hasLength(2)); | 533 unittest.expect(o, unittest.hasLength(2)); |
534 checkPage(o[0]); | 534 checkPage(o[0]); |
535 checkPage(o[1]); | 535 checkPage(o[1]); |
536 } | 536 } |
537 | 537 |
538 core.int buildCounterPageList = 0; | 538 core.int buildCounterPageList = 0; |
539 buildPageList() { | 539 buildPageList() { |
540 var o = new api.PageList(); | 540 var o = new api.PageList(); |
541 buildCounterPageList++; | 541 buildCounterPageList++; |
542 if (buildCounterPageList < 3) { | 542 if (buildCounterPageList < 3) { |
543 o.items = buildUnnamed723(); | 543 o.items = buildUnnamed291(); |
544 o.kind = "foo"; | 544 o.kind = "foo"; |
545 } | 545 } |
546 buildCounterPageList--; | 546 buildCounterPageList--; |
547 return o; | 547 return o; |
548 } | 548 } |
549 | 549 |
550 checkPageList(api.PageList o) { | 550 checkPageList(api.PageList o) { |
551 buildCounterPageList++; | 551 buildCounterPageList++; |
552 if (buildCounterPageList < 3) { | 552 if (buildCounterPageList < 3) { |
553 checkUnnamed723(o.items); | 553 checkUnnamed291(o.items); |
554 unittest.expect(o.kind, unittest.equals('foo')); | 554 unittest.expect(o.kind, unittest.equals('foo')); |
555 } | 555 } |
556 buildCounterPageList--; | 556 buildCounterPageList--; |
557 } | 557 } |
558 | 558 |
559 core.int buildCounterPageviewsCounts = 0; | 559 core.int buildCounterPageviewsCounts = 0; |
560 buildPageviewsCounts() { | 560 buildPageviewsCounts() { |
561 var o = new api.PageviewsCounts(); | 561 var o = new api.PageviewsCounts(); |
562 buildCounterPageviewsCounts++; | 562 buildCounterPageviewsCounts++; |
563 if (buildCounterPageviewsCounts < 3) { | 563 if (buildCounterPageviewsCounts < 3) { |
564 o.count = "foo"; | 564 o.count = "foo"; |
565 o.timeRange = "foo"; | 565 o.timeRange = "foo"; |
566 } | 566 } |
567 buildCounterPageviewsCounts--; | 567 buildCounterPageviewsCounts--; |
568 return o; | 568 return o; |
569 } | 569 } |
570 | 570 |
571 checkPageviewsCounts(api.PageviewsCounts o) { | 571 checkPageviewsCounts(api.PageviewsCounts o) { |
572 buildCounterPageviewsCounts++; | 572 buildCounterPageviewsCounts++; |
573 if (buildCounterPageviewsCounts < 3) { | 573 if (buildCounterPageviewsCounts < 3) { |
574 unittest.expect(o.count, unittest.equals('foo')); | 574 unittest.expect(o.count, unittest.equals('foo')); |
575 unittest.expect(o.timeRange, unittest.equals('foo')); | 575 unittest.expect(o.timeRange, unittest.equals('foo')); |
576 } | 576 } |
577 buildCounterPageviewsCounts--; | 577 buildCounterPageviewsCounts--; |
578 } | 578 } |
579 | 579 |
580 buildUnnamed724() { | 580 buildUnnamed292() { |
581 var o = new core.List<api.PageviewsCounts>(); | 581 var o = new core.List<api.PageviewsCounts>(); |
582 o.add(buildPageviewsCounts()); | 582 o.add(buildPageviewsCounts()); |
583 o.add(buildPageviewsCounts()); | 583 o.add(buildPageviewsCounts()); |
584 return o; | 584 return o; |
585 } | 585 } |
586 | 586 |
587 checkUnnamed724(core.List<api.PageviewsCounts> o) { | 587 checkUnnamed292(core.List<api.PageviewsCounts> o) { |
588 unittest.expect(o, unittest.hasLength(2)); | 588 unittest.expect(o, unittest.hasLength(2)); |
589 checkPageviewsCounts(o[0]); | 589 checkPageviewsCounts(o[0]); |
590 checkPageviewsCounts(o[1]); | 590 checkPageviewsCounts(o[1]); |
591 } | 591 } |
592 | 592 |
593 core.int buildCounterPageviews = 0; | 593 core.int buildCounterPageviews = 0; |
594 buildPageviews() { | 594 buildPageviews() { |
595 var o = new api.Pageviews(); | 595 var o = new api.Pageviews(); |
596 buildCounterPageviews++; | 596 buildCounterPageviews++; |
597 if (buildCounterPageviews < 3) { | 597 if (buildCounterPageviews < 3) { |
598 o.blogId = "foo"; | 598 o.blogId = "foo"; |
599 o.counts = buildUnnamed724(); | 599 o.counts = buildUnnamed292(); |
600 o.kind = "foo"; | 600 o.kind = "foo"; |
601 } | 601 } |
602 buildCounterPageviews--; | 602 buildCounterPageviews--; |
603 return o; | 603 return o; |
604 } | 604 } |
605 | 605 |
606 checkPageviews(api.Pageviews o) { | 606 checkPageviews(api.Pageviews o) { |
607 buildCounterPageviews++; | 607 buildCounterPageviews++; |
608 if (buildCounterPageviews < 3) { | 608 if (buildCounterPageviews < 3) { |
609 unittest.expect(o.blogId, unittest.equals('foo')); | 609 unittest.expect(o.blogId, unittest.equals('foo')); |
610 checkUnnamed724(o.counts); | 610 checkUnnamed292(o.counts); |
611 unittest.expect(o.kind, unittest.equals('foo')); | 611 unittest.expect(o.kind, unittest.equals('foo')); |
612 } | 612 } |
613 buildCounterPageviews--; | 613 buildCounterPageviews--; |
614 } | 614 } |
615 | 615 |
616 core.int buildCounterPostAuthorImage = 0; | 616 core.int buildCounterPostAuthorImage = 0; |
617 buildPostAuthorImage() { | 617 buildPostAuthorImage() { |
618 var o = new api.PostAuthorImage(); | 618 var o = new api.PostAuthorImage(); |
619 buildCounterPostAuthorImage++; | 619 buildCounterPostAuthorImage++; |
620 if (buildCounterPostAuthorImage < 3) { | 620 if (buildCounterPostAuthorImage < 3) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 } | 688 } |
689 | 689 |
690 checkPostImages(api.PostImages o) { | 690 checkPostImages(api.PostImages o) { |
691 buildCounterPostImages++; | 691 buildCounterPostImages++; |
692 if (buildCounterPostImages < 3) { | 692 if (buildCounterPostImages < 3) { |
693 unittest.expect(o.url, unittest.equals('foo')); | 693 unittest.expect(o.url, unittest.equals('foo')); |
694 } | 694 } |
695 buildCounterPostImages--; | 695 buildCounterPostImages--; |
696 } | 696 } |
697 | 697 |
698 buildUnnamed725() { | 698 buildUnnamed293() { |
699 var o = new core.List<api.PostImages>(); | 699 var o = new core.List<api.PostImages>(); |
700 o.add(buildPostImages()); | 700 o.add(buildPostImages()); |
701 o.add(buildPostImages()); | 701 o.add(buildPostImages()); |
702 return o; | 702 return o; |
703 } | 703 } |
704 | 704 |
705 checkUnnamed725(core.List<api.PostImages> o) { | 705 checkUnnamed293(core.List<api.PostImages> o) { |
706 unittest.expect(o, unittest.hasLength(2)); | 706 unittest.expect(o, unittest.hasLength(2)); |
707 checkPostImages(o[0]); | 707 checkPostImages(o[0]); |
708 checkPostImages(o[1]); | 708 checkPostImages(o[1]); |
709 } | 709 } |
710 | 710 |
711 buildUnnamed726() { | 711 buildUnnamed294() { |
712 var o = new core.List<core.String>(); | 712 var o = new core.List<core.String>(); |
713 o.add("foo"); | 713 o.add("foo"); |
714 o.add("foo"); | 714 o.add("foo"); |
715 return o; | 715 return o; |
716 } | 716 } |
717 | 717 |
718 checkUnnamed726(core.List<core.String> o) { | 718 checkUnnamed294(core.List<core.String> o) { |
719 unittest.expect(o, unittest.hasLength(2)); | 719 unittest.expect(o, unittest.hasLength(2)); |
720 unittest.expect(o[0], unittest.equals('foo')); | 720 unittest.expect(o[0], unittest.equals('foo')); |
721 unittest.expect(o[1], unittest.equals('foo')); | 721 unittest.expect(o[1], unittest.equals('foo')); |
722 } | 722 } |
723 | 723 |
724 core.int buildCounterPostLocation = 0; | 724 core.int buildCounterPostLocation = 0; |
725 buildPostLocation() { | 725 buildPostLocation() { |
726 var o = new api.PostLocation(); | 726 var o = new api.PostLocation(); |
727 buildCounterPostLocation++; | 727 buildCounterPostLocation++; |
728 if (buildCounterPostLocation < 3) { | 728 if (buildCounterPostLocation < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
739 buildCounterPostLocation++; | 739 buildCounterPostLocation++; |
740 if (buildCounterPostLocation < 3) { | 740 if (buildCounterPostLocation < 3) { |
741 unittest.expect(o.lat, unittest.equals(42.0)); | 741 unittest.expect(o.lat, unittest.equals(42.0)); |
742 unittest.expect(o.lng, unittest.equals(42.0)); | 742 unittest.expect(o.lng, unittest.equals(42.0)); |
743 unittest.expect(o.name, unittest.equals('foo')); | 743 unittest.expect(o.name, unittest.equals('foo')); |
744 unittest.expect(o.span, unittest.equals('foo')); | 744 unittest.expect(o.span, unittest.equals('foo')); |
745 } | 745 } |
746 buildCounterPostLocation--; | 746 buildCounterPostLocation--; |
747 } | 747 } |
748 | 748 |
749 buildUnnamed727() { | 749 buildUnnamed295() { |
750 var o = new core.List<api.Comment>(); | 750 var o = new core.List<api.Comment>(); |
751 o.add(buildComment()); | 751 o.add(buildComment()); |
752 o.add(buildComment()); | 752 o.add(buildComment()); |
753 return o; | 753 return o; |
754 } | 754 } |
755 | 755 |
756 checkUnnamed727(core.List<api.Comment> o) { | 756 checkUnnamed295(core.List<api.Comment> o) { |
757 unittest.expect(o, unittest.hasLength(2)); | 757 unittest.expect(o, unittest.hasLength(2)); |
758 checkComment(o[0]); | 758 checkComment(o[0]); |
759 checkComment(o[1]); | 759 checkComment(o[1]); |
760 } | 760 } |
761 | 761 |
762 core.int buildCounterPostReplies = 0; | 762 core.int buildCounterPostReplies = 0; |
763 buildPostReplies() { | 763 buildPostReplies() { |
764 var o = new api.PostReplies(); | 764 var o = new api.PostReplies(); |
765 buildCounterPostReplies++; | 765 buildCounterPostReplies++; |
766 if (buildCounterPostReplies < 3) { | 766 if (buildCounterPostReplies < 3) { |
767 o.items = buildUnnamed727(); | 767 o.items = buildUnnamed295(); |
768 o.selfLink = "foo"; | 768 o.selfLink = "foo"; |
769 o.totalItems = "foo"; | 769 o.totalItems = "foo"; |
770 } | 770 } |
771 buildCounterPostReplies--; | 771 buildCounterPostReplies--; |
772 return o; | 772 return o; |
773 } | 773 } |
774 | 774 |
775 checkPostReplies(api.PostReplies o) { | 775 checkPostReplies(api.PostReplies o) { |
776 buildCounterPostReplies++; | 776 buildCounterPostReplies++; |
777 if (buildCounterPostReplies < 3) { | 777 if (buildCounterPostReplies < 3) { |
778 checkUnnamed727(o.items); | 778 checkUnnamed295(o.items); |
779 unittest.expect(o.selfLink, unittest.equals('foo')); | 779 unittest.expect(o.selfLink, unittest.equals('foo')); |
780 unittest.expect(o.totalItems, unittest.equals('foo')); | 780 unittest.expect(o.totalItems, unittest.equals('foo')); |
781 } | 781 } |
782 buildCounterPostReplies--; | 782 buildCounterPostReplies--; |
783 } | 783 } |
784 | 784 |
785 core.int buildCounterPost = 0; | 785 core.int buildCounterPost = 0; |
786 buildPost() { | 786 buildPost() { |
787 var o = new api.Post(); | 787 var o = new api.Post(); |
788 buildCounterPost++; | 788 buildCounterPost++; |
789 if (buildCounterPost < 3) { | 789 if (buildCounterPost < 3) { |
790 o.author = buildPostAuthor(); | 790 o.author = buildPostAuthor(); |
791 o.blog = buildPostBlog(); | 791 o.blog = buildPostBlog(); |
792 o.content = "foo"; | 792 o.content = "foo"; |
793 o.customMetaData = "foo"; | 793 o.customMetaData = "foo"; |
794 o.etag = "foo"; | 794 o.etag = "foo"; |
795 o.id = "foo"; | 795 o.id = "foo"; |
796 o.images = buildUnnamed725(); | 796 o.images = buildUnnamed293(); |
797 o.kind = "foo"; | 797 o.kind = "foo"; |
798 o.labels = buildUnnamed726(); | 798 o.labels = buildUnnamed294(); |
799 o.location = buildPostLocation(); | 799 o.location = buildPostLocation(); |
800 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 800 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
801 o.readerComments = "foo"; | 801 o.readerComments = "foo"; |
802 o.replies = buildPostReplies(); | 802 o.replies = buildPostReplies(); |
803 o.selfLink = "foo"; | 803 o.selfLink = "foo"; |
804 o.status = "foo"; | 804 o.status = "foo"; |
805 o.title = "foo"; | 805 o.title = "foo"; |
806 o.titleLink = "foo"; | 806 o.titleLink = "foo"; |
807 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 807 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
808 o.url = "foo"; | 808 o.url = "foo"; |
809 } | 809 } |
810 buildCounterPost--; | 810 buildCounterPost--; |
811 return o; | 811 return o; |
812 } | 812 } |
813 | 813 |
814 checkPost(api.Post o) { | 814 checkPost(api.Post o) { |
815 buildCounterPost++; | 815 buildCounterPost++; |
816 if (buildCounterPost < 3) { | 816 if (buildCounterPost < 3) { |
817 checkPostAuthor(o.author); | 817 checkPostAuthor(o.author); |
818 checkPostBlog(o.blog); | 818 checkPostBlog(o.blog); |
819 unittest.expect(o.content, unittest.equals('foo')); | 819 unittest.expect(o.content, unittest.equals('foo')); |
820 unittest.expect(o.customMetaData, unittest.equals('foo')); | 820 unittest.expect(o.customMetaData, unittest.equals('foo')); |
821 unittest.expect(o.etag, unittest.equals('foo')); | 821 unittest.expect(o.etag, unittest.equals('foo')); |
822 unittest.expect(o.id, unittest.equals('foo')); | 822 unittest.expect(o.id, unittest.equals('foo')); |
823 checkUnnamed725(o.images); | 823 checkUnnamed293(o.images); |
824 unittest.expect(o.kind, unittest.equals('foo')); | 824 unittest.expect(o.kind, unittest.equals('foo')); |
825 checkUnnamed726(o.labels); | 825 checkUnnamed294(o.labels); |
826 checkPostLocation(o.location); | 826 checkPostLocation(o.location); |
827 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 827 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
828 unittest.expect(o.readerComments, unittest.equals('foo')); | 828 unittest.expect(o.readerComments, unittest.equals('foo')); |
829 checkPostReplies(o.replies); | 829 checkPostReplies(o.replies); |
830 unittest.expect(o.selfLink, unittest.equals('foo')); | 830 unittest.expect(o.selfLink, unittest.equals('foo')); |
831 unittest.expect(o.status, unittest.equals('foo')); | 831 unittest.expect(o.status, unittest.equals('foo')); |
832 unittest.expect(o.title, unittest.equals('foo')); | 832 unittest.expect(o.title, unittest.equals('foo')); |
833 unittest.expect(o.titleLink, unittest.equals('foo')); | 833 unittest.expect(o.titleLink, unittest.equals('foo')); |
834 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 834 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
835 unittest.expect(o.url, unittest.equals('foo')); | 835 unittest.expect(o.url, unittest.equals('foo')); |
836 } | 836 } |
837 buildCounterPost--; | 837 buildCounterPost--; |
838 } | 838 } |
839 | 839 |
840 buildUnnamed728() { | 840 buildUnnamed296() { |
841 var o = new core.List<api.Post>(); | 841 var o = new core.List<api.Post>(); |
842 o.add(buildPost()); | 842 o.add(buildPost()); |
843 o.add(buildPost()); | 843 o.add(buildPost()); |
844 return o; | 844 return o; |
845 } | 845 } |
846 | 846 |
847 checkUnnamed728(core.List<api.Post> o) { | 847 checkUnnamed296(core.List<api.Post> o) { |
848 unittest.expect(o, unittest.hasLength(2)); | 848 unittest.expect(o, unittest.hasLength(2)); |
849 checkPost(o[0]); | 849 checkPost(o[0]); |
850 checkPost(o[1]); | 850 checkPost(o[1]); |
851 } | 851 } |
852 | 852 |
853 core.int buildCounterPostList = 0; | 853 core.int buildCounterPostList = 0; |
854 buildPostList() { | 854 buildPostList() { |
855 var o = new api.PostList(); | 855 var o = new api.PostList(); |
856 buildCounterPostList++; | 856 buildCounterPostList++; |
857 if (buildCounterPostList < 3) { | 857 if (buildCounterPostList < 3) { |
858 o.items = buildUnnamed728(); | 858 o.items = buildUnnamed296(); |
859 o.kind = "foo"; | 859 o.kind = "foo"; |
860 o.nextPageToken = "foo"; | 860 o.nextPageToken = "foo"; |
861 } | 861 } |
862 buildCounterPostList--; | 862 buildCounterPostList--; |
863 return o; | 863 return o; |
864 } | 864 } |
865 | 865 |
866 checkPostList(api.PostList o) { | 866 checkPostList(api.PostList o) { |
867 buildCounterPostList++; | 867 buildCounterPostList++; |
868 if (buildCounterPostList < 3) { | 868 if (buildCounterPostList < 3) { |
869 checkUnnamed728(o.items); | 869 checkUnnamed296(o.items); |
870 unittest.expect(o.kind, unittest.equals('foo')); | 870 unittest.expect(o.kind, unittest.equals('foo')); |
871 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 871 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
872 } | 872 } |
873 buildCounterPostList--; | 873 buildCounterPostList--; |
874 } | 874 } |
875 | 875 |
876 core.int buildCounterPostPerUserInfo = 0; | 876 core.int buildCounterPostPerUserInfo = 0; |
877 buildPostPerUserInfo() { | 877 buildPostPerUserInfo() { |
878 var o = new api.PostPerUserInfo(); | 878 var o = new api.PostPerUserInfo(); |
879 buildCounterPostPerUserInfo++; | 879 buildCounterPostPerUserInfo++; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 checkPostUserInfo(api.PostUserInfo o) { | 916 checkPostUserInfo(api.PostUserInfo o) { |
917 buildCounterPostUserInfo++; | 917 buildCounterPostUserInfo++; |
918 if (buildCounterPostUserInfo < 3) { | 918 if (buildCounterPostUserInfo < 3) { |
919 unittest.expect(o.kind, unittest.equals('foo')); | 919 unittest.expect(o.kind, unittest.equals('foo')); |
920 checkPost(o.post); | 920 checkPost(o.post); |
921 checkPostPerUserInfo(o.postUserInfo); | 921 checkPostPerUserInfo(o.postUserInfo); |
922 } | 922 } |
923 buildCounterPostUserInfo--; | 923 buildCounterPostUserInfo--; |
924 } | 924 } |
925 | 925 |
926 buildUnnamed729() { | 926 buildUnnamed297() { |
927 var o = new core.List<api.PostUserInfo>(); | 927 var o = new core.List<api.PostUserInfo>(); |
928 o.add(buildPostUserInfo()); | 928 o.add(buildPostUserInfo()); |
929 o.add(buildPostUserInfo()); | 929 o.add(buildPostUserInfo()); |
930 return o; | 930 return o; |
931 } | 931 } |
932 | 932 |
933 checkUnnamed729(core.List<api.PostUserInfo> o) { | 933 checkUnnamed297(core.List<api.PostUserInfo> o) { |
934 unittest.expect(o, unittest.hasLength(2)); | 934 unittest.expect(o, unittest.hasLength(2)); |
935 checkPostUserInfo(o[0]); | 935 checkPostUserInfo(o[0]); |
936 checkPostUserInfo(o[1]); | 936 checkPostUserInfo(o[1]); |
937 } | 937 } |
938 | 938 |
939 core.int buildCounterPostUserInfosList = 0; | 939 core.int buildCounterPostUserInfosList = 0; |
940 buildPostUserInfosList() { | 940 buildPostUserInfosList() { |
941 var o = new api.PostUserInfosList(); | 941 var o = new api.PostUserInfosList(); |
942 buildCounterPostUserInfosList++; | 942 buildCounterPostUserInfosList++; |
943 if (buildCounterPostUserInfosList < 3) { | 943 if (buildCounterPostUserInfosList < 3) { |
944 o.items = buildUnnamed729(); | 944 o.items = buildUnnamed297(); |
945 o.kind = "foo"; | 945 o.kind = "foo"; |
946 o.nextPageToken = "foo"; | 946 o.nextPageToken = "foo"; |
947 } | 947 } |
948 buildCounterPostUserInfosList--; | 948 buildCounterPostUserInfosList--; |
949 return o; | 949 return o; |
950 } | 950 } |
951 | 951 |
952 checkPostUserInfosList(api.PostUserInfosList o) { | 952 checkPostUserInfosList(api.PostUserInfosList o) { |
953 buildCounterPostUserInfosList++; | 953 buildCounterPostUserInfosList++; |
954 if (buildCounterPostUserInfosList < 3) { | 954 if (buildCounterPostUserInfosList < 3) { |
955 checkUnnamed729(o.items); | 955 checkUnnamed297(o.items); |
956 unittest.expect(o.kind, unittest.equals('foo')); | 956 unittest.expect(o.kind, unittest.equals('foo')); |
957 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 957 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
958 } | 958 } |
959 buildCounterPostUserInfosList--; | 959 buildCounterPostUserInfosList--; |
960 } | 960 } |
961 | 961 |
962 core.int buildCounterUserBlogs = 0; | 962 core.int buildCounterUserBlogs = 0; |
963 buildUserBlogs() { | 963 buildUserBlogs() { |
964 var o = new api.UserBlogs(); | 964 var o = new api.UserBlogs(); |
965 buildCounterUserBlogs++; | 965 buildCounterUserBlogs++; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 unittest.expect(o.displayName, unittest.equals('foo')); | 1029 unittest.expect(o.displayName, unittest.equals('foo')); |
1030 unittest.expect(o.id, unittest.equals('foo')); | 1030 unittest.expect(o.id, unittest.equals('foo')); |
1031 unittest.expect(o.kind, unittest.equals('foo')); | 1031 unittest.expect(o.kind, unittest.equals('foo')); |
1032 checkUserLocale(o.locale); | 1032 checkUserLocale(o.locale); |
1033 unittest.expect(o.selfLink, unittest.equals('foo')); | 1033 unittest.expect(o.selfLink, unittest.equals('foo')); |
1034 unittest.expect(o.url, unittest.equals('foo')); | 1034 unittest.expect(o.url, unittest.equals('foo')); |
1035 } | 1035 } |
1036 buildCounterUser--; | 1036 buildCounterUser--; |
1037 } | 1037 } |
1038 | 1038 |
1039 buildUnnamed730() { | 1039 buildUnnamed298() { |
1040 var o = new core.List<core.String>(); | 1040 var o = new core.List<core.String>(); |
1041 o.add("foo"); | 1041 o.add("foo"); |
1042 o.add("foo"); | 1042 o.add("foo"); |
1043 return o; | 1043 return o; |
1044 } | 1044 } |
1045 | 1045 |
1046 checkUnnamed730(core.List<core.String> o) { | 1046 checkUnnamed298(core.List<core.String> o) { |
1047 unittest.expect(o, unittest.hasLength(2)); | 1047 unittest.expect(o, unittest.hasLength(2)); |
1048 unittest.expect(o[0], unittest.equals('foo')); | 1048 unittest.expect(o[0], unittest.equals('foo')); |
1049 unittest.expect(o[1], unittest.equals('foo')); | 1049 unittest.expect(o[1], unittest.equals('foo')); |
1050 } | 1050 } |
1051 | 1051 |
1052 buildUnnamed731() { | 1052 buildUnnamed299() { |
1053 var o = new core.List<core.String>(); | 1053 var o = new core.List<core.String>(); |
1054 o.add("foo"); | 1054 o.add("foo"); |
1055 o.add("foo"); | 1055 o.add("foo"); |
1056 return o; | 1056 return o; |
1057 } | 1057 } |
1058 | 1058 |
1059 checkUnnamed731(core.List<core.String> o) { | 1059 checkUnnamed299(core.List<core.String> o) { |
1060 unittest.expect(o, unittest.hasLength(2)); | 1060 unittest.expect(o, unittest.hasLength(2)); |
1061 unittest.expect(o[0], unittest.equals('foo')); | 1061 unittest.expect(o[0], unittest.equals('foo')); |
1062 unittest.expect(o[1], unittest.equals('foo')); | 1062 unittest.expect(o[1], unittest.equals('foo')); |
1063 } | 1063 } |
1064 | 1064 |
1065 buildUnnamed732() { | 1065 buildUnnamed300() { |
1066 var o = new core.List<core.String>(); | 1066 var o = new core.List<core.String>(); |
1067 o.add("foo"); | 1067 o.add("foo"); |
1068 o.add("foo"); | 1068 o.add("foo"); |
1069 return o; | 1069 return o; |
1070 } | 1070 } |
1071 | 1071 |
1072 checkUnnamed732(core.List<core.String> o) { | 1072 checkUnnamed300(core.List<core.String> o) { |
1073 unittest.expect(o, unittest.hasLength(2)); | 1073 unittest.expect(o, unittest.hasLength(2)); |
1074 unittest.expect(o[0], unittest.equals('foo')); | 1074 unittest.expect(o[0], unittest.equals('foo')); |
1075 unittest.expect(o[1], unittest.equals('foo')); | 1075 unittest.expect(o[1], unittest.equals('foo')); |
1076 } | 1076 } |
1077 | 1077 |
1078 buildUnnamed733() { | 1078 buildUnnamed301() { |
1079 var o = new core.List<core.String>(); | 1079 var o = new core.List<core.String>(); |
1080 o.add("foo"); | 1080 o.add("foo"); |
1081 o.add("foo"); | 1081 o.add("foo"); |
1082 return o; | 1082 return o; |
1083 } | 1083 } |
1084 | 1084 |
1085 checkUnnamed733(core.List<core.String> o) { | 1085 checkUnnamed301(core.List<core.String> o) { |
1086 unittest.expect(o, unittest.hasLength(2)); | 1086 unittest.expect(o, unittest.hasLength(2)); |
1087 unittest.expect(o[0], unittest.equals('foo')); | 1087 unittest.expect(o[0], unittest.equals('foo')); |
1088 unittest.expect(o[1], unittest.equals('foo')); | 1088 unittest.expect(o[1], unittest.equals('foo')); |
1089 } | 1089 } |
1090 | 1090 |
1091 buildUnnamed734() { | 1091 buildUnnamed302() { |
1092 var o = new core.List<core.String>(); | 1092 var o = new core.List<core.String>(); |
1093 o.add("foo"); | 1093 o.add("foo"); |
1094 o.add("foo"); | 1094 o.add("foo"); |
1095 return o; | 1095 return o; |
1096 } | 1096 } |
1097 | 1097 |
1098 checkUnnamed734(core.List<core.String> o) { | 1098 checkUnnamed302(core.List<core.String> o) { |
1099 unittest.expect(o, unittest.hasLength(2)); | 1099 unittest.expect(o, unittest.hasLength(2)); |
1100 unittest.expect(o[0], unittest.equals('foo')); | 1100 unittest.expect(o[0], unittest.equals('foo')); |
1101 unittest.expect(o[1], unittest.equals('foo')); | 1101 unittest.expect(o[1], unittest.equals('foo')); |
1102 } | 1102 } |
1103 | 1103 |
1104 buildUnnamed735() { | 1104 buildUnnamed303() { |
1105 var o = new core.List<core.String>(); | 1105 var o = new core.List<core.String>(); |
1106 o.add("foo"); | 1106 o.add("foo"); |
1107 o.add("foo"); | 1107 o.add("foo"); |
1108 return o; | 1108 return o; |
1109 } | 1109 } |
1110 | 1110 |
1111 checkUnnamed735(core.List<core.String> o) { | 1111 checkUnnamed303(core.List<core.String> o) { |
1112 unittest.expect(o, unittest.hasLength(2)); | 1112 unittest.expect(o, unittest.hasLength(2)); |
1113 unittest.expect(o[0], unittest.equals('foo')); | 1113 unittest.expect(o[0], unittest.equals('foo')); |
1114 unittest.expect(o[1], unittest.equals('foo')); | 1114 unittest.expect(o[1], unittest.equals('foo')); |
1115 } | 1115 } |
1116 | 1116 |
1117 buildUnnamed736() { | 1117 buildUnnamed304() { |
1118 var o = new core.List<core.String>(); | 1118 var o = new core.List<core.String>(); |
1119 o.add("foo"); | 1119 o.add("foo"); |
1120 o.add("foo"); | 1120 o.add("foo"); |
1121 return o; | 1121 return o; |
1122 } | 1122 } |
1123 | 1123 |
1124 checkUnnamed736(core.List<core.String> o) { | 1124 checkUnnamed304(core.List<core.String> o) { |
1125 unittest.expect(o, unittest.hasLength(2)); | 1125 unittest.expect(o, unittest.hasLength(2)); |
1126 unittest.expect(o[0], unittest.equals('foo')); | 1126 unittest.expect(o[0], unittest.equals('foo')); |
1127 unittest.expect(o[1], unittest.equals('foo')); | 1127 unittest.expect(o[1], unittest.equals('foo')); |
1128 } | 1128 } |
1129 | 1129 |
1130 | 1130 |
1131 main() { | 1131 main() { |
1132 unittest.group("obj-schema-BlogLocale", () { | 1132 unittest.group("obj-schema-BlogLocale", () { |
1133 unittest.test("to-json--from-json", () { | 1133 unittest.test("to-json--from-json", () { |
1134 var o = buildBlogLocale(); | 1134 var o = buildBlogLocale(); |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1609 checkBlog(response); | 1609 checkBlog(response); |
1610 }))); | 1610 }))); |
1611 }); | 1611 }); |
1612 | 1612 |
1613 unittest.test("method--listByUser", () { | 1613 unittest.test("method--listByUser", () { |
1614 | 1614 |
1615 var mock = new common_test.HttpServerMock(); | 1615 var mock = new common_test.HttpServerMock(); |
1616 api.BlogsResourceApi res = new api.BloggerApi(mock).blogs; | 1616 api.BlogsResourceApi res = new api.BloggerApi(mock).blogs; |
1617 var arg_userId = "foo"; | 1617 var arg_userId = "foo"; |
1618 var arg_fetchUserInfo = true; | 1618 var arg_fetchUserInfo = true; |
1619 var arg_role = buildUnnamed730(); | 1619 var arg_role = buildUnnamed298(); |
1620 var arg_status = buildUnnamed731(); | 1620 var arg_status = buildUnnamed299(); |
1621 var arg_view = "foo"; | 1621 var arg_view = "foo"; |
1622 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1622 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1623 var path = (req.url).path; | 1623 var path = (req.url).path; |
1624 var pathOffset = 0; | 1624 var pathOffset = 0; |
1625 var index; | 1625 var index; |
1626 var subPart; | 1626 var subPart; |
1627 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1627 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1628 pathOffset += 1; | 1628 pathOffset += 1; |
1629 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 1629 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
1630 pathOffset += 11; | 1630 pathOffset += 11; |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1878 | 1878 |
1879 var mock = new common_test.HttpServerMock(); | 1879 var mock = new common_test.HttpServerMock(); |
1880 api.CommentsResourceApi res = new api.BloggerApi(mock).comments; | 1880 api.CommentsResourceApi res = new api.BloggerApi(mock).comments; |
1881 var arg_blogId = "foo"; | 1881 var arg_blogId = "foo"; |
1882 var arg_postId = "foo"; | 1882 var arg_postId = "foo"; |
1883 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1883 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); |
1884 var arg_fetchBodies = true; | 1884 var arg_fetchBodies = true; |
1885 var arg_maxResults = 42; | 1885 var arg_maxResults = 42; |
1886 var arg_pageToken = "foo"; | 1886 var arg_pageToken = "foo"; |
1887 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1887 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); |
1888 var arg_status = buildUnnamed732(); | 1888 var arg_status = buildUnnamed300(); |
1889 var arg_view = "foo"; | 1889 var arg_view = "foo"; |
1890 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1890 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1891 var path = (req.url).path; | 1891 var path = (req.url).path; |
1892 var pathOffset = 0; | 1892 var pathOffset = 0; |
1893 var index; | 1893 var index; |
1894 var subPart; | 1894 var subPart; |
1895 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1895 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1896 pathOffset += 1; | 1896 pathOffset += 1; |
1897 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 1897 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
1898 pathOffset += 11; | 1898 pathOffset += 11; |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 | 2152 |
2153 }); | 2153 }); |
2154 | 2154 |
2155 | 2155 |
2156 unittest.group("resource-PageViewsResourceApi", () { | 2156 unittest.group("resource-PageViewsResourceApi", () { |
2157 unittest.test("method--get", () { | 2157 unittest.test("method--get", () { |
2158 | 2158 |
2159 var mock = new common_test.HttpServerMock(); | 2159 var mock = new common_test.HttpServerMock(); |
2160 api.PageViewsResourceApi res = new api.BloggerApi(mock).pageViews; | 2160 api.PageViewsResourceApi res = new api.BloggerApi(mock).pageViews; |
2161 var arg_blogId = "foo"; | 2161 var arg_blogId = "foo"; |
2162 var arg_range = buildUnnamed733(); | 2162 var arg_range = buildUnnamed301(); |
2163 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2163 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2164 var path = (req.url).path; | 2164 var path = (req.url).path; |
2165 var pathOffset = 0; | 2165 var pathOffset = 0; |
2166 var index; | 2166 var index; |
2167 var subPart; | 2167 var subPart; |
2168 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2168 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2169 pathOffset += 1; | 2169 pathOffset += 1; |
2170 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 2170 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
2171 pathOffset += 11; | 2171 pathOffset += 11; |
2172 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("blogs/")); | 2172 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("blogs/")); |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2385 checkPage(response); | 2385 checkPage(response); |
2386 }))); | 2386 }))); |
2387 }); | 2387 }); |
2388 | 2388 |
2389 unittest.test("method--list", () { | 2389 unittest.test("method--list", () { |
2390 | 2390 |
2391 var mock = new common_test.HttpServerMock(); | 2391 var mock = new common_test.HttpServerMock(); |
2392 api.PagesResourceApi res = new api.BloggerApi(mock).pages; | 2392 api.PagesResourceApi res = new api.BloggerApi(mock).pages; |
2393 var arg_blogId = "foo"; | 2393 var arg_blogId = "foo"; |
2394 var arg_fetchBodies = true; | 2394 var arg_fetchBodies = true; |
2395 var arg_status = buildUnnamed734(); | 2395 var arg_status = buildUnnamed302(); |
2396 var arg_view = "foo"; | 2396 var arg_view = "foo"; |
2397 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2397 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2398 var path = (req.url).path; | 2398 var path = (req.url).path; |
2399 var pathOffset = 0; | 2399 var pathOffset = 0; |
2400 var index; | 2400 var index; |
2401 var subPart; | 2401 var subPart; |
2402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2402 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2403 pathOffset += 1; | 2403 pathOffset += 1; |
2404 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 2404 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
2405 pathOffset += 11; | 2405 pathOffset += 11; |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2774 api.PostUserInfosResourceApi res = new api.BloggerApi(mock).postUserInfos; | 2774 api.PostUserInfosResourceApi res = new api.BloggerApi(mock).postUserInfos; |
2775 var arg_userId = "foo"; | 2775 var arg_userId = "foo"; |
2776 var arg_blogId = "foo"; | 2776 var arg_blogId = "foo"; |
2777 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); | 2777 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); |
2778 var arg_fetchBodies = true; | 2778 var arg_fetchBodies = true; |
2779 var arg_labels = "foo"; | 2779 var arg_labels = "foo"; |
2780 var arg_maxResults = 42; | 2780 var arg_maxResults = 42; |
2781 var arg_orderBy = "foo"; | 2781 var arg_orderBy = "foo"; |
2782 var arg_pageToken = "foo"; | 2782 var arg_pageToken = "foo"; |
2783 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); | 2783 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); |
2784 var arg_status = buildUnnamed735(); | 2784 var arg_status = buildUnnamed303(); |
2785 var arg_view = "foo"; | 2785 var arg_view = "foo"; |
2786 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2786 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2787 var path = (req.url).path; | 2787 var path = (req.url).path; |
2788 var pathOffset = 0; | 2788 var pathOffset = 0; |
2789 var index; | 2789 var index; |
2790 var subPart; | 2790 var subPart; |
2791 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2791 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2792 pathOffset += 1; | 2792 pathOffset += 1; |
2793 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 2793 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
2794 pathOffset += 11; | 2794 pathOffset += 11; |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3099 api.PostsResourceApi res = new api.BloggerApi(mock).posts; | 3099 api.PostsResourceApi res = new api.BloggerApi(mock).posts; |
3100 var arg_blogId = "foo"; | 3100 var arg_blogId = "foo"; |
3101 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); | 3101 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); |
3102 var arg_fetchBodies = true; | 3102 var arg_fetchBodies = true; |
3103 var arg_fetchImages = true; | 3103 var arg_fetchImages = true; |
3104 var arg_labels = "foo"; | 3104 var arg_labels = "foo"; |
3105 var arg_maxResults = 42; | 3105 var arg_maxResults = 42; |
3106 var arg_orderBy = "foo"; | 3106 var arg_orderBy = "foo"; |
3107 var arg_pageToken = "foo"; | 3107 var arg_pageToken = "foo"; |
3108 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); | 3108 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); |
3109 var arg_status = buildUnnamed736(); | 3109 var arg_status = buildUnnamed304(); |
3110 var arg_view = "foo"; | 3110 var arg_view = "foo"; |
3111 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3111 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3112 var path = (req.url).path; | 3112 var path = (req.url).path; |
3113 var pathOffset = 0; | 3113 var pathOffset = 0; |
3114 var index; | 3114 var index; |
3115 var subPart; | 3115 var subPart; |
3116 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3116 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3117 pathOffset += 1; | 3117 pathOffset += 1; |
3118 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 3118 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
3119 pathOffset += 11; | 3119 pathOffset += 11; |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3542 res.get(arg_userId).then(unittest.expectAsync(((api.User response) { | 3542 res.get(arg_userId).then(unittest.expectAsync(((api.User response) { |
3543 checkUser(response); | 3543 checkUser(response); |
3544 }))); | 3544 }))); |
3545 }); | 3545 }); |
3546 | 3546 |
3547 }); | 3547 }); |
3548 | 3548 |
3549 | 3549 |
3550 } | 3550 } |
3551 | 3551 |
OLD | NEW |