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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 checkBlogPages(api.BlogPages o) { | 89 checkBlogPages(api.BlogPages o) { |
90 buildCounterBlogPages++; | 90 buildCounterBlogPages++; |
91 if (buildCounterBlogPages < 3) { | 91 if (buildCounterBlogPages < 3) { |
92 unittest.expect(o.selfLink, unittest.equals('foo')); | 92 unittest.expect(o.selfLink, unittest.equals('foo')); |
93 unittest.expect(o.totalItems, unittest.equals(42)); | 93 unittest.expect(o.totalItems, unittest.equals(42)); |
94 } | 94 } |
95 buildCounterBlogPages--; | 95 buildCounterBlogPages--; |
96 } | 96 } |
97 | 97 |
98 buildUnnamed1129() { | 98 buildUnnamed1138() { |
99 var o = new core.List<api.Post>(); | 99 var o = new core.List<api.Post>(); |
100 o.add(buildPost()); | 100 o.add(buildPost()); |
101 o.add(buildPost()); | 101 o.add(buildPost()); |
102 return o; | 102 return o; |
103 } | 103 } |
104 | 104 |
105 checkUnnamed1129(core.List<api.Post> o) { | 105 checkUnnamed1138(core.List<api.Post> o) { |
106 unittest.expect(o, unittest.hasLength(2)); | 106 unittest.expect(o, unittest.hasLength(2)); |
107 checkPost(o[0]); | 107 checkPost(o[0]); |
108 checkPost(o[1]); | 108 checkPost(o[1]); |
109 } | 109 } |
110 | 110 |
111 core.int buildCounterBlogPosts = 0; | 111 core.int buildCounterBlogPosts = 0; |
112 buildBlogPosts() { | 112 buildBlogPosts() { |
113 var o = new api.BlogPosts(); | 113 var o = new api.BlogPosts(); |
114 buildCounterBlogPosts++; | 114 buildCounterBlogPosts++; |
115 if (buildCounterBlogPosts < 3) { | 115 if (buildCounterBlogPosts < 3) { |
116 o.items = buildUnnamed1129(); | 116 o.items = buildUnnamed1138(); |
117 o.selfLink = "foo"; | 117 o.selfLink = "foo"; |
118 o.totalItems = 42; | 118 o.totalItems = 42; |
119 } | 119 } |
120 buildCounterBlogPosts--; | 120 buildCounterBlogPosts--; |
121 return o; | 121 return o; |
122 } | 122 } |
123 | 123 |
124 checkBlogPosts(api.BlogPosts o) { | 124 checkBlogPosts(api.BlogPosts o) { |
125 buildCounterBlogPosts++; | 125 buildCounterBlogPosts++; |
126 if (buildCounterBlogPosts < 3) { | 126 if (buildCounterBlogPosts < 3) { |
127 checkUnnamed1129(o.items); | 127 checkUnnamed1138(o.items); |
128 unittest.expect(o.selfLink, unittest.equals('foo')); | 128 unittest.expect(o.selfLink, unittest.equals('foo')); |
129 unittest.expect(o.totalItems, unittest.equals(42)); | 129 unittest.expect(o.totalItems, unittest.equals(42)); |
130 } | 130 } |
131 buildCounterBlogPosts--; | 131 buildCounterBlogPosts--; |
132 } | 132 } |
133 | 133 |
134 core.int buildCounterBlog = 0; | 134 core.int buildCounterBlog = 0; |
135 buildBlog() { | 135 buildBlog() { |
136 var o = new api.Blog(); | 136 var o = new api.Blog(); |
137 buildCounterBlog++; | 137 buildCounterBlog++; |
(...skipping 29 matching lines...) Expand all Loading... |
167 checkBlogPosts(o.posts); | 167 checkBlogPosts(o.posts); |
168 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 168 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
169 unittest.expect(o.selfLink, unittest.equals('foo')); | 169 unittest.expect(o.selfLink, unittest.equals('foo')); |
170 unittest.expect(o.status, unittest.equals('foo')); | 170 unittest.expect(o.status, unittest.equals('foo')); |
171 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 171 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
172 unittest.expect(o.url, unittest.equals('foo')); | 172 unittest.expect(o.url, unittest.equals('foo')); |
173 } | 173 } |
174 buildCounterBlog--; | 174 buildCounterBlog--; |
175 } | 175 } |
176 | 176 |
177 buildUnnamed1130() { | 177 buildUnnamed1139() { |
178 var o = new core.List<api.BlogUserInfo>(); | 178 var o = new core.List<api.BlogUserInfo>(); |
179 o.add(buildBlogUserInfo()); | 179 o.add(buildBlogUserInfo()); |
180 o.add(buildBlogUserInfo()); | 180 o.add(buildBlogUserInfo()); |
181 return o; | 181 return o; |
182 } | 182 } |
183 | 183 |
184 checkUnnamed1130(core.List<api.BlogUserInfo> o) { | 184 checkUnnamed1139(core.List<api.BlogUserInfo> o) { |
185 unittest.expect(o, unittest.hasLength(2)); | 185 unittest.expect(o, unittest.hasLength(2)); |
186 checkBlogUserInfo(o[0]); | 186 checkBlogUserInfo(o[0]); |
187 checkBlogUserInfo(o[1]); | 187 checkBlogUserInfo(o[1]); |
188 } | 188 } |
189 | 189 |
190 buildUnnamed1131() { | 190 buildUnnamed1140() { |
191 var o = new core.List<api.Blog>(); | 191 var o = new core.List<api.Blog>(); |
192 o.add(buildBlog()); | 192 o.add(buildBlog()); |
193 o.add(buildBlog()); | 193 o.add(buildBlog()); |
194 return o; | 194 return o; |
195 } | 195 } |
196 | 196 |
197 checkUnnamed1131(core.List<api.Blog> o) { | 197 checkUnnamed1140(core.List<api.Blog> o) { |
198 unittest.expect(o, unittest.hasLength(2)); | 198 unittest.expect(o, unittest.hasLength(2)); |
199 checkBlog(o[0]); | 199 checkBlog(o[0]); |
200 checkBlog(o[1]); | 200 checkBlog(o[1]); |
201 } | 201 } |
202 | 202 |
203 core.int buildCounterBlogList = 0; | 203 core.int buildCounterBlogList = 0; |
204 buildBlogList() { | 204 buildBlogList() { |
205 var o = new api.BlogList(); | 205 var o = new api.BlogList(); |
206 buildCounterBlogList++; | 206 buildCounterBlogList++; |
207 if (buildCounterBlogList < 3) { | 207 if (buildCounterBlogList < 3) { |
208 o.blogUserInfos = buildUnnamed1130(); | 208 o.blogUserInfos = buildUnnamed1139(); |
209 o.items = buildUnnamed1131(); | 209 o.items = buildUnnamed1140(); |
210 o.kind = "foo"; | 210 o.kind = "foo"; |
211 } | 211 } |
212 buildCounterBlogList--; | 212 buildCounterBlogList--; |
213 return o; | 213 return o; |
214 } | 214 } |
215 | 215 |
216 checkBlogList(api.BlogList o) { | 216 checkBlogList(api.BlogList o) { |
217 buildCounterBlogList++; | 217 buildCounterBlogList++; |
218 if (buildCounterBlogList < 3) { | 218 if (buildCounterBlogList < 3) { |
219 checkUnnamed1130(o.blogUserInfos); | 219 checkUnnamed1139(o.blogUserInfos); |
220 checkUnnamed1131(o.items); | 220 checkUnnamed1140(o.items); |
221 unittest.expect(o.kind, unittest.equals('foo')); | 221 unittest.expect(o.kind, unittest.equals('foo')); |
222 } | 222 } |
223 buildCounterBlogList--; | 223 buildCounterBlogList--; |
224 } | 224 } |
225 | 225 |
226 core.int buildCounterBlogPerUserInfo = 0; | 226 core.int buildCounterBlogPerUserInfo = 0; |
227 buildBlogPerUserInfo() { | 227 buildBlogPerUserInfo() { |
228 var o = new api.BlogPerUserInfo(); | 228 var o = new api.BlogPerUserInfo(); |
229 buildCounterBlogPerUserInfo++; | 229 buildCounterBlogPerUserInfo++; |
230 if (buildCounterBlogPerUserInfo < 3) { | 230 if (buildCounterBlogPerUserInfo < 3) { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 unittest.expect(o.kind, unittest.equals('foo')); | 408 unittest.expect(o.kind, unittest.equals('foo')); |
409 checkCommentPost(o.post); | 409 checkCommentPost(o.post); |
410 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 410 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
411 unittest.expect(o.selfLink, unittest.equals('foo')); | 411 unittest.expect(o.selfLink, unittest.equals('foo')); |
412 unittest.expect(o.status, unittest.equals('foo')); | 412 unittest.expect(o.status, unittest.equals('foo')); |
413 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 413 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
414 } | 414 } |
415 buildCounterComment--; | 415 buildCounterComment--; |
416 } | 416 } |
417 | 417 |
418 buildUnnamed1132() { | 418 buildUnnamed1141() { |
419 var o = new core.List<api.Comment>(); | 419 var o = new core.List<api.Comment>(); |
420 o.add(buildComment()); | 420 o.add(buildComment()); |
421 o.add(buildComment()); | 421 o.add(buildComment()); |
422 return o; | 422 return o; |
423 } | 423 } |
424 | 424 |
425 checkUnnamed1132(core.List<api.Comment> o) { | 425 checkUnnamed1141(core.List<api.Comment> o) { |
426 unittest.expect(o, unittest.hasLength(2)); | 426 unittest.expect(o, unittest.hasLength(2)); |
427 checkComment(o[0]); | 427 checkComment(o[0]); |
428 checkComment(o[1]); | 428 checkComment(o[1]); |
429 } | 429 } |
430 | 430 |
431 core.int buildCounterCommentList = 0; | 431 core.int buildCounterCommentList = 0; |
432 buildCommentList() { | 432 buildCommentList() { |
433 var o = new api.CommentList(); | 433 var o = new api.CommentList(); |
434 buildCounterCommentList++; | 434 buildCounterCommentList++; |
435 if (buildCounterCommentList < 3) { | 435 if (buildCounterCommentList < 3) { |
436 o.etag = "foo"; | 436 o.etag = "foo"; |
437 o.items = buildUnnamed1132(); | 437 o.items = buildUnnamed1141(); |
438 o.kind = "foo"; | 438 o.kind = "foo"; |
439 o.nextPageToken = "foo"; | 439 o.nextPageToken = "foo"; |
440 o.prevPageToken = "foo"; | 440 o.prevPageToken = "foo"; |
441 } | 441 } |
442 buildCounterCommentList--; | 442 buildCounterCommentList--; |
443 return o; | 443 return o; |
444 } | 444 } |
445 | 445 |
446 checkCommentList(api.CommentList o) { | 446 checkCommentList(api.CommentList o) { |
447 buildCounterCommentList++; | 447 buildCounterCommentList++; |
448 if (buildCounterCommentList < 3) { | 448 if (buildCounterCommentList < 3) { |
449 unittest.expect(o.etag, unittest.equals('foo')); | 449 unittest.expect(o.etag, unittest.equals('foo')); |
450 checkUnnamed1132(o.items); | 450 checkUnnamed1141(o.items); |
451 unittest.expect(o.kind, unittest.equals('foo')); | 451 unittest.expect(o.kind, unittest.equals('foo')); |
452 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 452 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
453 unittest.expect(o.prevPageToken, unittest.equals('foo')); | 453 unittest.expect(o.prevPageToken, unittest.equals('foo')); |
454 } | 454 } |
455 buildCounterCommentList--; | 455 buildCounterCommentList--; |
456 } | 456 } |
457 | 457 |
458 core.int buildCounterPageAuthorImage = 0; | 458 core.int buildCounterPageAuthorImage = 0; |
459 buildPageAuthorImage() { | 459 buildPageAuthorImage() { |
460 var o = new api.PageAuthorImage(); | 460 var o = new api.PageAuthorImage(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 552 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
553 unittest.expect(o.selfLink, unittest.equals('foo')); | 553 unittest.expect(o.selfLink, unittest.equals('foo')); |
554 unittest.expect(o.status, unittest.equals('foo')); | 554 unittest.expect(o.status, unittest.equals('foo')); |
555 unittest.expect(o.title, unittest.equals('foo')); | 555 unittest.expect(o.title, unittest.equals('foo')); |
556 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 556 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
557 unittest.expect(o.url, unittest.equals('foo')); | 557 unittest.expect(o.url, unittest.equals('foo')); |
558 } | 558 } |
559 buildCounterPage--; | 559 buildCounterPage--; |
560 } | 560 } |
561 | 561 |
562 buildUnnamed1133() { | 562 buildUnnamed1142() { |
563 var o = new core.List<api.Page>(); | 563 var o = new core.List<api.Page>(); |
564 o.add(buildPage()); | 564 o.add(buildPage()); |
565 o.add(buildPage()); | 565 o.add(buildPage()); |
566 return o; | 566 return o; |
567 } | 567 } |
568 | 568 |
569 checkUnnamed1133(core.List<api.Page> o) { | 569 checkUnnamed1142(core.List<api.Page> o) { |
570 unittest.expect(o, unittest.hasLength(2)); | 570 unittest.expect(o, unittest.hasLength(2)); |
571 checkPage(o[0]); | 571 checkPage(o[0]); |
572 checkPage(o[1]); | 572 checkPage(o[1]); |
573 } | 573 } |
574 | 574 |
575 core.int buildCounterPageList = 0; | 575 core.int buildCounterPageList = 0; |
576 buildPageList() { | 576 buildPageList() { |
577 var o = new api.PageList(); | 577 var o = new api.PageList(); |
578 buildCounterPageList++; | 578 buildCounterPageList++; |
579 if (buildCounterPageList < 3) { | 579 if (buildCounterPageList < 3) { |
580 o.etag = "foo"; | 580 o.etag = "foo"; |
581 o.items = buildUnnamed1133(); | 581 o.items = buildUnnamed1142(); |
582 o.kind = "foo"; | 582 o.kind = "foo"; |
583 o.nextPageToken = "foo"; | 583 o.nextPageToken = "foo"; |
584 } | 584 } |
585 buildCounterPageList--; | 585 buildCounterPageList--; |
586 return o; | 586 return o; |
587 } | 587 } |
588 | 588 |
589 checkPageList(api.PageList o) { | 589 checkPageList(api.PageList o) { |
590 buildCounterPageList++; | 590 buildCounterPageList++; |
591 if (buildCounterPageList < 3) { | 591 if (buildCounterPageList < 3) { |
592 unittest.expect(o.etag, unittest.equals('foo')); | 592 unittest.expect(o.etag, unittest.equals('foo')); |
593 checkUnnamed1133(o.items); | 593 checkUnnamed1142(o.items); |
594 unittest.expect(o.kind, unittest.equals('foo')); | 594 unittest.expect(o.kind, unittest.equals('foo')); |
595 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 595 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
596 } | 596 } |
597 buildCounterPageList--; | 597 buildCounterPageList--; |
598 } | 598 } |
599 | 599 |
600 core.int buildCounterPageviewsCounts = 0; | 600 core.int buildCounterPageviewsCounts = 0; |
601 buildPageviewsCounts() { | 601 buildPageviewsCounts() { |
602 var o = new api.PageviewsCounts(); | 602 var o = new api.PageviewsCounts(); |
603 buildCounterPageviewsCounts++; | 603 buildCounterPageviewsCounts++; |
604 if (buildCounterPageviewsCounts < 3) { | 604 if (buildCounterPageviewsCounts < 3) { |
605 o.count = "foo"; | 605 o.count = "foo"; |
606 o.timeRange = "foo"; | 606 o.timeRange = "foo"; |
607 } | 607 } |
608 buildCounterPageviewsCounts--; | 608 buildCounterPageviewsCounts--; |
609 return o; | 609 return o; |
610 } | 610 } |
611 | 611 |
612 checkPageviewsCounts(api.PageviewsCounts o) { | 612 checkPageviewsCounts(api.PageviewsCounts o) { |
613 buildCounterPageviewsCounts++; | 613 buildCounterPageviewsCounts++; |
614 if (buildCounterPageviewsCounts < 3) { | 614 if (buildCounterPageviewsCounts < 3) { |
615 unittest.expect(o.count, unittest.equals('foo')); | 615 unittest.expect(o.count, unittest.equals('foo')); |
616 unittest.expect(o.timeRange, unittest.equals('foo')); | 616 unittest.expect(o.timeRange, unittest.equals('foo')); |
617 } | 617 } |
618 buildCounterPageviewsCounts--; | 618 buildCounterPageviewsCounts--; |
619 } | 619 } |
620 | 620 |
621 buildUnnamed1134() { | 621 buildUnnamed1143() { |
622 var o = new core.List<api.PageviewsCounts>(); | 622 var o = new core.List<api.PageviewsCounts>(); |
623 o.add(buildPageviewsCounts()); | 623 o.add(buildPageviewsCounts()); |
624 o.add(buildPageviewsCounts()); | 624 o.add(buildPageviewsCounts()); |
625 return o; | 625 return o; |
626 } | 626 } |
627 | 627 |
628 checkUnnamed1134(core.List<api.PageviewsCounts> o) { | 628 checkUnnamed1143(core.List<api.PageviewsCounts> o) { |
629 unittest.expect(o, unittest.hasLength(2)); | 629 unittest.expect(o, unittest.hasLength(2)); |
630 checkPageviewsCounts(o[0]); | 630 checkPageviewsCounts(o[0]); |
631 checkPageviewsCounts(o[1]); | 631 checkPageviewsCounts(o[1]); |
632 } | 632 } |
633 | 633 |
634 core.int buildCounterPageviews = 0; | 634 core.int buildCounterPageviews = 0; |
635 buildPageviews() { | 635 buildPageviews() { |
636 var o = new api.Pageviews(); | 636 var o = new api.Pageviews(); |
637 buildCounterPageviews++; | 637 buildCounterPageviews++; |
638 if (buildCounterPageviews < 3) { | 638 if (buildCounterPageviews < 3) { |
639 o.blogId = "foo"; | 639 o.blogId = "foo"; |
640 o.counts = buildUnnamed1134(); | 640 o.counts = buildUnnamed1143(); |
641 o.kind = "foo"; | 641 o.kind = "foo"; |
642 } | 642 } |
643 buildCounterPageviews--; | 643 buildCounterPageviews--; |
644 return o; | 644 return o; |
645 } | 645 } |
646 | 646 |
647 checkPageviews(api.Pageviews o) { | 647 checkPageviews(api.Pageviews o) { |
648 buildCounterPageviews++; | 648 buildCounterPageviews++; |
649 if (buildCounterPageviews < 3) { | 649 if (buildCounterPageviews < 3) { |
650 unittest.expect(o.blogId, unittest.equals('foo')); | 650 unittest.expect(o.blogId, unittest.equals('foo')); |
651 checkUnnamed1134(o.counts); | 651 checkUnnamed1143(o.counts); |
652 unittest.expect(o.kind, unittest.equals('foo')); | 652 unittest.expect(o.kind, unittest.equals('foo')); |
653 } | 653 } |
654 buildCounterPageviews--; | 654 buildCounterPageviews--; |
655 } | 655 } |
656 | 656 |
657 core.int buildCounterPostAuthorImage = 0; | 657 core.int buildCounterPostAuthorImage = 0; |
658 buildPostAuthorImage() { | 658 buildPostAuthorImage() { |
659 var o = new api.PostAuthorImage(); | 659 var o = new api.PostAuthorImage(); |
660 buildCounterPostAuthorImage++; | 660 buildCounterPostAuthorImage++; |
661 if (buildCounterPostAuthorImage < 3) { | 661 if (buildCounterPostAuthorImage < 3) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 } | 729 } |
730 | 730 |
731 checkPostImages(api.PostImages o) { | 731 checkPostImages(api.PostImages o) { |
732 buildCounterPostImages++; | 732 buildCounterPostImages++; |
733 if (buildCounterPostImages < 3) { | 733 if (buildCounterPostImages < 3) { |
734 unittest.expect(o.url, unittest.equals('foo')); | 734 unittest.expect(o.url, unittest.equals('foo')); |
735 } | 735 } |
736 buildCounterPostImages--; | 736 buildCounterPostImages--; |
737 } | 737 } |
738 | 738 |
739 buildUnnamed1135() { | 739 buildUnnamed1144() { |
740 var o = new core.List<api.PostImages>(); | 740 var o = new core.List<api.PostImages>(); |
741 o.add(buildPostImages()); | 741 o.add(buildPostImages()); |
742 o.add(buildPostImages()); | 742 o.add(buildPostImages()); |
743 return o; | 743 return o; |
744 } | 744 } |
745 | 745 |
746 checkUnnamed1135(core.List<api.PostImages> o) { | 746 checkUnnamed1144(core.List<api.PostImages> o) { |
747 unittest.expect(o, unittest.hasLength(2)); | 747 unittest.expect(o, unittest.hasLength(2)); |
748 checkPostImages(o[0]); | 748 checkPostImages(o[0]); |
749 checkPostImages(o[1]); | 749 checkPostImages(o[1]); |
750 } | 750 } |
751 | 751 |
752 buildUnnamed1136() { | 752 buildUnnamed1145() { |
753 var o = new core.List<core.String>(); | 753 var o = new core.List<core.String>(); |
754 o.add("foo"); | 754 o.add("foo"); |
755 o.add("foo"); | 755 o.add("foo"); |
756 return o; | 756 return o; |
757 } | 757 } |
758 | 758 |
759 checkUnnamed1136(core.List<core.String> o) { | 759 checkUnnamed1145(core.List<core.String> o) { |
760 unittest.expect(o, unittest.hasLength(2)); | 760 unittest.expect(o, unittest.hasLength(2)); |
761 unittest.expect(o[0], unittest.equals('foo')); | 761 unittest.expect(o[0], unittest.equals('foo')); |
762 unittest.expect(o[1], unittest.equals('foo')); | 762 unittest.expect(o[1], unittest.equals('foo')); |
763 } | 763 } |
764 | 764 |
765 core.int buildCounterPostLocation = 0; | 765 core.int buildCounterPostLocation = 0; |
766 buildPostLocation() { | 766 buildPostLocation() { |
767 var o = new api.PostLocation(); | 767 var o = new api.PostLocation(); |
768 buildCounterPostLocation++; | 768 buildCounterPostLocation++; |
769 if (buildCounterPostLocation < 3) { | 769 if (buildCounterPostLocation < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
780 buildCounterPostLocation++; | 780 buildCounterPostLocation++; |
781 if (buildCounterPostLocation < 3) { | 781 if (buildCounterPostLocation < 3) { |
782 unittest.expect(o.lat, unittest.equals(42.0)); | 782 unittest.expect(o.lat, unittest.equals(42.0)); |
783 unittest.expect(o.lng, unittest.equals(42.0)); | 783 unittest.expect(o.lng, unittest.equals(42.0)); |
784 unittest.expect(o.name, unittest.equals('foo')); | 784 unittest.expect(o.name, unittest.equals('foo')); |
785 unittest.expect(o.span, unittest.equals('foo')); | 785 unittest.expect(o.span, unittest.equals('foo')); |
786 } | 786 } |
787 buildCounterPostLocation--; | 787 buildCounterPostLocation--; |
788 } | 788 } |
789 | 789 |
790 buildUnnamed1137() { | 790 buildUnnamed1146() { |
791 var o = new core.List<api.Comment>(); | 791 var o = new core.List<api.Comment>(); |
792 o.add(buildComment()); | 792 o.add(buildComment()); |
793 o.add(buildComment()); | 793 o.add(buildComment()); |
794 return o; | 794 return o; |
795 } | 795 } |
796 | 796 |
797 checkUnnamed1137(core.List<api.Comment> o) { | 797 checkUnnamed1146(core.List<api.Comment> o) { |
798 unittest.expect(o, unittest.hasLength(2)); | 798 unittest.expect(o, unittest.hasLength(2)); |
799 checkComment(o[0]); | 799 checkComment(o[0]); |
800 checkComment(o[1]); | 800 checkComment(o[1]); |
801 } | 801 } |
802 | 802 |
803 core.int buildCounterPostReplies = 0; | 803 core.int buildCounterPostReplies = 0; |
804 buildPostReplies() { | 804 buildPostReplies() { |
805 var o = new api.PostReplies(); | 805 var o = new api.PostReplies(); |
806 buildCounterPostReplies++; | 806 buildCounterPostReplies++; |
807 if (buildCounterPostReplies < 3) { | 807 if (buildCounterPostReplies < 3) { |
808 o.items = buildUnnamed1137(); | 808 o.items = buildUnnamed1146(); |
809 o.selfLink = "foo"; | 809 o.selfLink = "foo"; |
810 o.totalItems = "foo"; | 810 o.totalItems = "foo"; |
811 } | 811 } |
812 buildCounterPostReplies--; | 812 buildCounterPostReplies--; |
813 return o; | 813 return o; |
814 } | 814 } |
815 | 815 |
816 checkPostReplies(api.PostReplies o) { | 816 checkPostReplies(api.PostReplies o) { |
817 buildCounterPostReplies++; | 817 buildCounterPostReplies++; |
818 if (buildCounterPostReplies < 3) { | 818 if (buildCounterPostReplies < 3) { |
819 checkUnnamed1137(o.items); | 819 checkUnnamed1146(o.items); |
820 unittest.expect(o.selfLink, unittest.equals('foo')); | 820 unittest.expect(o.selfLink, unittest.equals('foo')); |
821 unittest.expect(o.totalItems, unittest.equals('foo')); | 821 unittest.expect(o.totalItems, unittest.equals('foo')); |
822 } | 822 } |
823 buildCounterPostReplies--; | 823 buildCounterPostReplies--; |
824 } | 824 } |
825 | 825 |
826 core.int buildCounterPost = 0; | 826 core.int buildCounterPost = 0; |
827 buildPost() { | 827 buildPost() { |
828 var o = new api.Post(); | 828 var o = new api.Post(); |
829 buildCounterPost++; | 829 buildCounterPost++; |
830 if (buildCounterPost < 3) { | 830 if (buildCounterPost < 3) { |
831 o.author = buildPostAuthor(); | 831 o.author = buildPostAuthor(); |
832 o.blog = buildPostBlog(); | 832 o.blog = buildPostBlog(); |
833 o.content = "foo"; | 833 o.content = "foo"; |
834 o.customMetaData = "foo"; | 834 o.customMetaData = "foo"; |
835 o.etag = "foo"; | 835 o.etag = "foo"; |
836 o.id = "foo"; | 836 o.id = "foo"; |
837 o.images = buildUnnamed1135(); | 837 o.images = buildUnnamed1144(); |
838 o.kind = "foo"; | 838 o.kind = "foo"; |
839 o.labels = buildUnnamed1136(); | 839 o.labels = buildUnnamed1145(); |
840 o.location = buildPostLocation(); | 840 o.location = buildPostLocation(); |
841 o.published = core.DateTime.parse("2002-02-27T14:01:02"); | 841 o.published = core.DateTime.parse("2002-02-27T14:01:02"); |
842 o.readerComments = "foo"; | 842 o.readerComments = "foo"; |
843 o.replies = buildPostReplies(); | 843 o.replies = buildPostReplies(); |
844 o.selfLink = "foo"; | 844 o.selfLink = "foo"; |
845 o.status = "foo"; | 845 o.status = "foo"; |
846 o.title = "foo"; | 846 o.title = "foo"; |
847 o.titleLink = "foo"; | 847 o.titleLink = "foo"; |
848 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 848 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
849 o.url = "foo"; | 849 o.url = "foo"; |
850 } | 850 } |
851 buildCounterPost--; | 851 buildCounterPost--; |
852 return o; | 852 return o; |
853 } | 853 } |
854 | 854 |
855 checkPost(api.Post o) { | 855 checkPost(api.Post o) { |
856 buildCounterPost++; | 856 buildCounterPost++; |
857 if (buildCounterPost < 3) { | 857 if (buildCounterPost < 3) { |
858 checkPostAuthor(o.author); | 858 checkPostAuthor(o.author); |
859 checkPostBlog(o.blog); | 859 checkPostBlog(o.blog); |
860 unittest.expect(o.content, unittest.equals('foo')); | 860 unittest.expect(o.content, unittest.equals('foo')); |
861 unittest.expect(o.customMetaData, unittest.equals('foo')); | 861 unittest.expect(o.customMetaData, unittest.equals('foo')); |
862 unittest.expect(o.etag, unittest.equals('foo')); | 862 unittest.expect(o.etag, unittest.equals('foo')); |
863 unittest.expect(o.id, unittest.equals('foo')); | 863 unittest.expect(o.id, unittest.equals('foo')); |
864 checkUnnamed1135(o.images); | 864 checkUnnamed1144(o.images); |
865 unittest.expect(o.kind, unittest.equals('foo')); | 865 unittest.expect(o.kind, unittest.equals('foo')); |
866 checkUnnamed1136(o.labels); | 866 checkUnnamed1145(o.labels); |
867 checkPostLocation(o.location); | 867 checkPostLocation(o.location); |
868 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); | 868 unittest.expect(o.published, unittest.equals(core.DateTime.parse("2002-02-27
T14:01:02"))); |
869 unittest.expect(o.readerComments, unittest.equals('foo')); | 869 unittest.expect(o.readerComments, unittest.equals('foo')); |
870 checkPostReplies(o.replies); | 870 checkPostReplies(o.replies); |
871 unittest.expect(o.selfLink, unittest.equals('foo')); | 871 unittest.expect(o.selfLink, unittest.equals('foo')); |
872 unittest.expect(o.status, unittest.equals('foo')); | 872 unittest.expect(o.status, unittest.equals('foo')); |
873 unittest.expect(o.title, unittest.equals('foo')); | 873 unittest.expect(o.title, unittest.equals('foo')); |
874 unittest.expect(o.titleLink, unittest.equals('foo')); | 874 unittest.expect(o.titleLink, unittest.equals('foo')); |
875 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 875 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
876 unittest.expect(o.url, unittest.equals('foo')); | 876 unittest.expect(o.url, unittest.equals('foo')); |
877 } | 877 } |
878 buildCounterPost--; | 878 buildCounterPost--; |
879 } | 879 } |
880 | 880 |
881 buildUnnamed1138() { | 881 buildUnnamed1147() { |
882 var o = new core.List<api.Post>(); | 882 var o = new core.List<api.Post>(); |
883 o.add(buildPost()); | 883 o.add(buildPost()); |
884 o.add(buildPost()); | 884 o.add(buildPost()); |
885 return o; | 885 return o; |
886 } | 886 } |
887 | 887 |
888 checkUnnamed1138(core.List<api.Post> o) { | 888 checkUnnamed1147(core.List<api.Post> o) { |
889 unittest.expect(o, unittest.hasLength(2)); | 889 unittest.expect(o, unittest.hasLength(2)); |
890 checkPost(o[0]); | 890 checkPost(o[0]); |
891 checkPost(o[1]); | 891 checkPost(o[1]); |
892 } | 892 } |
893 | 893 |
894 core.int buildCounterPostList = 0; | 894 core.int buildCounterPostList = 0; |
895 buildPostList() { | 895 buildPostList() { |
896 var o = new api.PostList(); | 896 var o = new api.PostList(); |
897 buildCounterPostList++; | 897 buildCounterPostList++; |
898 if (buildCounterPostList < 3) { | 898 if (buildCounterPostList < 3) { |
899 o.etag = "foo"; | 899 o.etag = "foo"; |
900 o.items = buildUnnamed1138(); | 900 o.items = buildUnnamed1147(); |
901 o.kind = "foo"; | 901 o.kind = "foo"; |
902 o.nextPageToken = "foo"; | 902 o.nextPageToken = "foo"; |
903 } | 903 } |
904 buildCounterPostList--; | 904 buildCounterPostList--; |
905 return o; | 905 return o; |
906 } | 906 } |
907 | 907 |
908 checkPostList(api.PostList o) { | 908 checkPostList(api.PostList o) { |
909 buildCounterPostList++; | 909 buildCounterPostList++; |
910 if (buildCounterPostList < 3) { | 910 if (buildCounterPostList < 3) { |
911 unittest.expect(o.etag, unittest.equals('foo')); | 911 unittest.expect(o.etag, unittest.equals('foo')); |
912 checkUnnamed1138(o.items); | 912 checkUnnamed1147(o.items); |
913 unittest.expect(o.kind, unittest.equals('foo')); | 913 unittest.expect(o.kind, unittest.equals('foo')); |
914 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 914 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
915 } | 915 } |
916 buildCounterPostList--; | 916 buildCounterPostList--; |
917 } | 917 } |
918 | 918 |
919 core.int buildCounterPostPerUserInfo = 0; | 919 core.int buildCounterPostPerUserInfo = 0; |
920 buildPostPerUserInfo() { | 920 buildPostPerUserInfo() { |
921 var o = new api.PostPerUserInfo(); | 921 var o = new api.PostPerUserInfo(); |
922 buildCounterPostPerUserInfo++; | 922 buildCounterPostPerUserInfo++; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 checkPostUserInfo(api.PostUserInfo o) { | 959 checkPostUserInfo(api.PostUserInfo o) { |
960 buildCounterPostUserInfo++; | 960 buildCounterPostUserInfo++; |
961 if (buildCounterPostUserInfo < 3) { | 961 if (buildCounterPostUserInfo < 3) { |
962 unittest.expect(o.kind, unittest.equals('foo')); | 962 unittest.expect(o.kind, unittest.equals('foo')); |
963 checkPost(o.post); | 963 checkPost(o.post); |
964 checkPostPerUserInfo(o.postUserInfo); | 964 checkPostPerUserInfo(o.postUserInfo); |
965 } | 965 } |
966 buildCounterPostUserInfo--; | 966 buildCounterPostUserInfo--; |
967 } | 967 } |
968 | 968 |
969 buildUnnamed1139() { | 969 buildUnnamed1148() { |
970 var o = new core.List<api.PostUserInfo>(); | 970 var o = new core.List<api.PostUserInfo>(); |
971 o.add(buildPostUserInfo()); | 971 o.add(buildPostUserInfo()); |
972 o.add(buildPostUserInfo()); | 972 o.add(buildPostUserInfo()); |
973 return o; | 973 return o; |
974 } | 974 } |
975 | 975 |
976 checkUnnamed1139(core.List<api.PostUserInfo> o) { | 976 checkUnnamed1148(core.List<api.PostUserInfo> o) { |
977 unittest.expect(o, unittest.hasLength(2)); | 977 unittest.expect(o, unittest.hasLength(2)); |
978 checkPostUserInfo(o[0]); | 978 checkPostUserInfo(o[0]); |
979 checkPostUserInfo(o[1]); | 979 checkPostUserInfo(o[1]); |
980 } | 980 } |
981 | 981 |
982 core.int buildCounterPostUserInfosList = 0; | 982 core.int buildCounterPostUserInfosList = 0; |
983 buildPostUserInfosList() { | 983 buildPostUserInfosList() { |
984 var o = new api.PostUserInfosList(); | 984 var o = new api.PostUserInfosList(); |
985 buildCounterPostUserInfosList++; | 985 buildCounterPostUserInfosList++; |
986 if (buildCounterPostUserInfosList < 3) { | 986 if (buildCounterPostUserInfosList < 3) { |
987 o.items = buildUnnamed1139(); | 987 o.items = buildUnnamed1148(); |
988 o.kind = "foo"; | 988 o.kind = "foo"; |
989 o.nextPageToken = "foo"; | 989 o.nextPageToken = "foo"; |
990 } | 990 } |
991 buildCounterPostUserInfosList--; | 991 buildCounterPostUserInfosList--; |
992 return o; | 992 return o; |
993 } | 993 } |
994 | 994 |
995 checkPostUserInfosList(api.PostUserInfosList o) { | 995 checkPostUserInfosList(api.PostUserInfosList o) { |
996 buildCounterPostUserInfosList++; | 996 buildCounterPostUserInfosList++; |
997 if (buildCounterPostUserInfosList < 3) { | 997 if (buildCounterPostUserInfosList < 3) { |
998 checkUnnamed1139(o.items); | 998 checkUnnamed1148(o.items); |
999 unittest.expect(o.kind, unittest.equals('foo')); | 999 unittest.expect(o.kind, unittest.equals('foo')); |
1000 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1000 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1001 } | 1001 } |
1002 buildCounterPostUserInfosList--; | 1002 buildCounterPostUserInfosList--; |
1003 } | 1003 } |
1004 | 1004 |
1005 core.int buildCounterUserBlogs = 0; | 1005 core.int buildCounterUserBlogs = 0; |
1006 buildUserBlogs() { | 1006 buildUserBlogs() { |
1007 var o = new api.UserBlogs(); | 1007 var o = new api.UserBlogs(); |
1008 buildCounterUserBlogs++; | 1008 buildCounterUserBlogs++; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 unittest.expect(o.displayName, unittest.equals('foo')); | 1072 unittest.expect(o.displayName, unittest.equals('foo')); |
1073 unittest.expect(o.id, unittest.equals('foo')); | 1073 unittest.expect(o.id, unittest.equals('foo')); |
1074 unittest.expect(o.kind, unittest.equals('foo')); | 1074 unittest.expect(o.kind, unittest.equals('foo')); |
1075 checkUserLocale(o.locale); | 1075 checkUserLocale(o.locale); |
1076 unittest.expect(o.selfLink, unittest.equals('foo')); | 1076 unittest.expect(o.selfLink, unittest.equals('foo')); |
1077 unittest.expect(o.url, unittest.equals('foo')); | 1077 unittest.expect(o.url, unittest.equals('foo')); |
1078 } | 1078 } |
1079 buildCounterUser--; | 1079 buildCounterUser--; |
1080 } | 1080 } |
1081 | 1081 |
1082 buildUnnamed1140() { | 1082 buildUnnamed1149() { |
1083 var o = new core.List<core.String>(); | 1083 var o = new core.List<core.String>(); |
1084 o.add("foo"); | 1084 o.add("foo"); |
1085 o.add("foo"); | 1085 o.add("foo"); |
1086 return o; | 1086 return o; |
1087 } | 1087 } |
1088 | 1088 |
1089 checkUnnamed1140(core.List<core.String> o) { | 1089 checkUnnamed1149(core.List<core.String> o) { |
1090 unittest.expect(o, unittest.hasLength(2)); | 1090 unittest.expect(o, unittest.hasLength(2)); |
1091 unittest.expect(o[0], unittest.equals('foo')); | 1091 unittest.expect(o[0], unittest.equals('foo')); |
1092 unittest.expect(o[1], unittest.equals('foo')); | 1092 unittest.expect(o[1], unittest.equals('foo')); |
1093 } | 1093 } |
1094 | 1094 |
1095 buildUnnamed1141() { | 1095 buildUnnamed1150() { |
1096 var o = new core.List<core.String>(); | 1096 var o = new core.List<core.String>(); |
1097 o.add("foo"); | 1097 o.add("foo"); |
1098 o.add("foo"); | 1098 o.add("foo"); |
1099 return o; | 1099 return o; |
1100 } | 1100 } |
1101 | 1101 |
1102 checkUnnamed1141(core.List<core.String> o) { | 1102 checkUnnamed1150(core.List<core.String> o) { |
1103 unittest.expect(o, unittest.hasLength(2)); | 1103 unittest.expect(o, unittest.hasLength(2)); |
1104 unittest.expect(o[0], unittest.equals('foo')); | 1104 unittest.expect(o[0], unittest.equals('foo')); |
1105 unittest.expect(o[1], unittest.equals('foo')); | 1105 unittest.expect(o[1], unittest.equals('foo')); |
1106 } | 1106 } |
1107 | 1107 |
1108 buildUnnamed1142() { | 1108 buildUnnamed1151() { |
1109 var o = new core.List<core.String>(); | 1109 var o = new core.List<core.String>(); |
1110 o.add("foo"); | 1110 o.add("foo"); |
1111 o.add("foo"); | 1111 o.add("foo"); |
1112 return o; | 1112 return o; |
1113 } | 1113 } |
1114 | 1114 |
1115 checkUnnamed1142(core.List<core.String> o) { | 1115 checkUnnamed1151(core.List<core.String> o) { |
1116 unittest.expect(o, unittest.hasLength(2)); | 1116 unittest.expect(o, unittest.hasLength(2)); |
1117 unittest.expect(o[0], unittest.equals('foo')); | 1117 unittest.expect(o[0], unittest.equals('foo')); |
1118 unittest.expect(o[1], unittest.equals('foo')); | 1118 unittest.expect(o[1], unittest.equals('foo')); |
1119 } | 1119 } |
1120 | 1120 |
1121 buildUnnamed1143() { | 1121 buildUnnamed1152() { |
1122 var o = new core.List<core.String>(); | 1122 var o = new core.List<core.String>(); |
1123 o.add("foo"); | 1123 o.add("foo"); |
1124 o.add("foo"); | 1124 o.add("foo"); |
1125 return o; | 1125 return o; |
1126 } | 1126 } |
1127 | 1127 |
1128 checkUnnamed1143(core.List<core.String> o) { | 1128 checkUnnamed1152(core.List<core.String> o) { |
1129 unittest.expect(o, unittest.hasLength(2)); | 1129 unittest.expect(o, unittest.hasLength(2)); |
1130 unittest.expect(o[0], unittest.equals('foo')); | 1130 unittest.expect(o[0], unittest.equals('foo')); |
1131 unittest.expect(o[1], unittest.equals('foo')); | 1131 unittest.expect(o[1], unittest.equals('foo')); |
1132 } | 1132 } |
1133 | 1133 |
1134 buildUnnamed1144() { | 1134 buildUnnamed1153() { |
1135 var o = new core.List<core.String>(); | 1135 var o = new core.List<core.String>(); |
1136 o.add("foo"); | 1136 o.add("foo"); |
1137 o.add("foo"); | 1137 o.add("foo"); |
1138 return o; | 1138 return o; |
1139 } | 1139 } |
1140 | 1140 |
1141 checkUnnamed1144(core.List<core.String> o) { | 1141 checkUnnamed1153(core.List<core.String> o) { |
1142 unittest.expect(o, unittest.hasLength(2)); | 1142 unittest.expect(o, unittest.hasLength(2)); |
1143 unittest.expect(o[0], unittest.equals('foo')); | 1143 unittest.expect(o[0], unittest.equals('foo')); |
1144 unittest.expect(o[1], unittest.equals('foo')); | 1144 unittest.expect(o[1], unittest.equals('foo')); |
1145 } | 1145 } |
1146 | 1146 |
1147 buildUnnamed1145() { | 1147 buildUnnamed1154() { |
1148 var o = new core.List<core.String>(); | 1148 var o = new core.List<core.String>(); |
1149 o.add("foo"); | 1149 o.add("foo"); |
1150 o.add("foo"); | 1150 o.add("foo"); |
1151 return o; | 1151 return o; |
1152 } | 1152 } |
1153 | 1153 |
1154 checkUnnamed1145(core.List<core.String> o) { | 1154 checkUnnamed1154(core.List<core.String> o) { |
1155 unittest.expect(o, unittest.hasLength(2)); | 1155 unittest.expect(o, unittest.hasLength(2)); |
1156 unittest.expect(o[0], unittest.equals('foo')); | 1156 unittest.expect(o[0], unittest.equals('foo')); |
1157 unittest.expect(o[1], unittest.equals('foo')); | 1157 unittest.expect(o[1], unittest.equals('foo')); |
1158 } | 1158 } |
1159 | 1159 |
1160 buildUnnamed1146() { | 1160 buildUnnamed1155() { |
1161 var o = new core.List<core.String>(); | 1161 var o = new core.List<core.String>(); |
1162 o.add("foo"); | 1162 o.add("foo"); |
1163 o.add("foo"); | 1163 o.add("foo"); |
1164 return o; | 1164 return o; |
1165 } | 1165 } |
1166 | 1166 |
1167 checkUnnamed1146(core.List<core.String> o) { | 1167 checkUnnamed1155(core.List<core.String> o) { |
1168 unittest.expect(o, unittest.hasLength(2)); | 1168 unittest.expect(o, unittest.hasLength(2)); |
1169 unittest.expect(o[0], unittest.equals('foo')); | 1169 unittest.expect(o[0], unittest.equals('foo')); |
1170 unittest.expect(o[1], unittest.equals('foo')); | 1170 unittest.expect(o[1], unittest.equals('foo')); |
1171 } | 1171 } |
1172 | 1172 |
1173 buildUnnamed1147() { | 1173 buildUnnamed1156() { |
1174 var o = new core.List<core.String>(); | 1174 var o = new core.List<core.String>(); |
1175 o.add("foo"); | 1175 o.add("foo"); |
1176 o.add("foo"); | 1176 o.add("foo"); |
1177 return o; | 1177 return o; |
1178 } | 1178 } |
1179 | 1179 |
1180 checkUnnamed1147(core.List<core.String> o) { | 1180 checkUnnamed1156(core.List<core.String> o) { |
1181 unittest.expect(o, unittest.hasLength(2)); | 1181 unittest.expect(o, unittest.hasLength(2)); |
1182 unittest.expect(o[0], unittest.equals('foo')); | 1182 unittest.expect(o[0], unittest.equals('foo')); |
1183 unittest.expect(o[1], unittest.equals('foo')); | 1183 unittest.expect(o[1], unittest.equals('foo')); |
1184 } | 1184 } |
1185 | 1185 |
1186 | 1186 |
1187 main() { | 1187 main() { |
1188 unittest.group("obj-schema-BlogLocale", () { | 1188 unittest.group("obj-schema-BlogLocale", () { |
1189 unittest.test("to-json--from-json", () { | 1189 unittest.test("to-json--from-json", () { |
1190 var o = buildBlogLocale(); | 1190 var o = buildBlogLocale(); |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1665 checkBlog(response); | 1665 checkBlog(response); |
1666 }))); | 1666 }))); |
1667 }); | 1667 }); |
1668 | 1668 |
1669 unittest.test("method--listByUser", () { | 1669 unittest.test("method--listByUser", () { |
1670 | 1670 |
1671 var mock = new HttpServerMock(); | 1671 var mock = new HttpServerMock(); |
1672 api.BlogsResourceApi res = new api.BloggerApi(mock).blogs; | 1672 api.BlogsResourceApi res = new api.BloggerApi(mock).blogs; |
1673 var arg_userId = "foo"; | 1673 var arg_userId = "foo"; |
1674 var arg_fetchUserInfo = true; | 1674 var arg_fetchUserInfo = true; |
1675 var arg_role = buildUnnamed1140(); | 1675 var arg_role = buildUnnamed1149(); |
1676 var arg_status = buildUnnamed1141(); | 1676 var arg_status = buildUnnamed1150(); |
1677 var arg_view = "foo"; | 1677 var arg_view = "foo"; |
1678 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1678 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1679 var path = (req.url).path; | 1679 var path = (req.url).path; |
1680 var pathOffset = 0; | 1680 var pathOffset = 0; |
1681 var index; | 1681 var index; |
1682 var subPart; | 1682 var subPart; |
1683 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1683 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1684 pathOffset += 1; | 1684 pathOffset += 1; |
1685 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 1685 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
1686 pathOffset += 11; | 1686 pathOffset += 11; |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 | 1934 |
1935 var mock = new HttpServerMock(); | 1935 var mock = new HttpServerMock(); |
1936 api.CommentsResourceApi res = new api.BloggerApi(mock).comments; | 1936 api.CommentsResourceApi res = new api.BloggerApi(mock).comments; |
1937 var arg_blogId = "foo"; | 1937 var arg_blogId = "foo"; |
1938 var arg_postId = "foo"; | 1938 var arg_postId = "foo"; |
1939 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1939 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); |
1940 var arg_fetchBodies = true; | 1940 var arg_fetchBodies = true; |
1941 var arg_maxResults = 42; | 1941 var arg_maxResults = 42; |
1942 var arg_pageToken = "foo"; | 1942 var arg_pageToken = "foo"; |
1943 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1943 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); |
1944 var arg_status = buildUnnamed1142(); | 1944 var arg_status = buildUnnamed1151(); |
1945 var arg_view = "foo"; | 1945 var arg_view = "foo"; |
1946 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1946 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1947 var path = (req.url).path; | 1947 var path = (req.url).path; |
1948 var pathOffset = 0; | 1948 var pathOffset = 0; |
1949 var index; | 1949 var index; |
1950 var subPart; | 1950 var subPart; |
1951 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1951 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1952 pathOffset += 1; | 1952 pathOffset += 1; |
1953 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 1953 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
1954 pathOffset += 11; | 1954 pathOffset += 11; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2008 unittest.test("method--listByBlog", () { | 2008 unittest.test("method--listByBlog", () { |
2009 | 2009 |
2010 var mock = new HttpServerMock(); | 2010 var mock = new HttpServerMock(); |
2011 api.CommentsResourceApi res = new api.BloggerApi(mock).comments; | 2011 api.CommentsResourceApi res = new api.BloggerApi(mock).comments; |
2012 var arg_blogId = "foo"; | 2012 var arg_blogId = "foo"; |
2013 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); | 2013 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); |
2014 var arg_fetchBodies = true; | 2014 var arg_fetchBodies = true; |
2015 var arg_maxResults = 42; | 2015 var arg_maxResults = 42; |
2016 var arg_pageToken = "foo"; | 2016 var arg_pageToken = "foo"; |
2017 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); | 2017 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); |
2018 var arg_status = buildUnnamed1143(); | 2018 var arg_status = buildUnnamed1152(); |
2019 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2019 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2020 var path = (req.url).path; | 2020 var path = (req.url).path; |
2021 var pathOffset = 0; | 2021 var pathOffset = 0; |
2022 var index; | 2022 var index; |
2023 var subPart; | 2023 var subPart; |
2024 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2024 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2025 pathOffset += 1; | 2025 pathOffset += 1; |
2026 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 2026 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
2027 pathOffset += 11; | 2027 pathOffset += 11; |
2028 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("blogs/")); | 2028 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("blogs/")); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2210 | 2210 |
2211 }); | 2211 }); |
2212 | 2212 |
2213 | 2213 |
2214 unittest.group("resource-PageViewsResourceApi", () { | 2214 unittest.group("resource-PageViewsResourceApi", () { |
2215 unittest.test("method--get", () { | 2215 unittest.test("method--get", () { |
2216 | 2216 |
2217 var mock = new HttpServerMock(); | 2217 var mock = new HttpServerMock(); |
2218 api.PageViewsResourceApi res = new api.BloggerApi(mock).pageViews; | 2218 api.PageViewsResourceApi res = new api.BloggerApi(mock).pageViews; |
2219 var arg_blogId = "foo"; | 2219 var arg_blogId = "foo"; |
2220 var arg_range = buildUnnamed1144(); | 2220 var arg_range = buildUnnamed1153(); |
2221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2222 var path = (req.url).path; | 2222 var path = (req.url).path; |
2223 var pathOffset = 0; | 2223 var pathOffset = 0; |
2224 var index; | 2224 var index; |
2225 var subPart; | 2225 var subPart; |
2226 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2226 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2227 pathOffset += 1; | 2227 pathOffset += 1; |
2228 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 2228 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
2229 pathOffset += 11; | 2229 pathOffset += 11; |
2230 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("blogs/")); | 2230 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("blogs/")); |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2445 }); | 2445 }); |
2446 | 2446 |
2447 unittest.test("method--list", () { | 2447 unittest.test("method--list", () { |
2448 | 2448 |
2449 var mock = new HttpServerMock(); | 2449 var mock = new HttpServerMock(); |
2450 api.PagesResourceApi res = new api.BloggerApi(mock).pages; | 2450 api.PagesResourceApi res = new api.BloggerApi(mock).pages; |
2451 var arg_blogId = "foo"; | 2451 var arg_blogId = "foo"; |
2452 var arg_fetchBodies = true; | 2452 var arg_fetchBodies = true; |
2453 var arg_maxResults = 42; | 2453 var arg_maxResults = 42; |
2454 var arg_pageToken = "foo"; | 2454 var arg_pageToken = "foo"; |
2455 var arg_status = buildUnnamed1145(); | 2455 var arg_status = buildUnnamed1154(); |
2456 var arg_view = "foo"; | 2456 var arg_view = "foo"; |
2457 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2457 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2458 var path = (req.url).path; | 2458 var path = (req.url).path; |
2459 var pathOffset = 0; | 2459 var pathOffset = 0; |
2460 var index; | 2460 var index; |
2461 var subPart; | 2461 var subPart; |
2462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2463 pathOffset += 1; | 2463 pathOffset += 1; |
2464 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 2464 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
2465 pathOffset += 11; | 2465 pathOffset += 11; |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2836 api.PostUserInfosResourceApi res = new api.BloggerApi(mock).postUserInfos; | 2836 api.PostUserInfosResourceApi res = new api.BloggerApi(mock).postUserInfos; |
2837 var arg_userId = "foo"; | 2837 var arg_userId = "foo"; |
2838 var arg_blogId = "foo"; | 2838 var arg_blogId = "foo"; |
2839 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); | 2839 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); |
2840 var arg_fetchBodies = true; | 2840 var arg_fetchBodies = true; |
2841 var arg_labels = "foo"; | 2841 var arg_labels = "foo"; |
2842 var arg_maxResults = 42; | 2842 var arg_maxResults = 42; |
2843 var arg_orderBy = "foo"; | 2843 var arg_orderBy = "foo"; |
2844 var arg_pageToken = "foo"; | 2844 var arg_pageToken = "foo"; |
2845 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); | 2845 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); |
2846 var arg_status = buildUnnamed1146(); | 2846 var arg_status = buildUnnamed1155(); |
2847 var arg_view = "foo"; | 2847 var arg_view = "foo"; |
2848 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2848 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2849 var path = (req.url).path; | 2849 var path = (req.url).path; |
2850 var pathOffset = 0; | 2850 var pathOffset = 0; |
2851 var index; | 2851 var index; |
2852 var subPart; | 2852 var subPart; |
2853 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2853 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2854 pathOffset += 1; | 2854 pathOffset += 1; |
2855 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 2855 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
2856 pathOffset += 11; | 2856 pathOffset += 11; |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3161 api.PostsResourceApi res = new api.BloggerApi(mock).posts; | 3161 api.PostsResourceApi res = new api.BloggerApi(mock).posts; |
3162 var arg_blogId = "foo"; | 3162 var arg_blogId = "foo"; |
3163 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); | 3163 var arg_endDate = core.DateTime.parse("2002-02-27T14:01:02"); |
3164 var arg_fetchBodies = true; | 3164 var arg_fetchBodies = true; |
3165 var arg_fetchImages = true; | 3165 var arg_fetchImages = true; |
3166 var arg_labels = "foo"; | 3166 var arg_labels = "foo"; |
3167 var arg_maxResults = 42; | 3167 var arg_maxResults = 42; |
3168 var arg_orderBy = "foo"; | 3168 var arg_orderBy = "foo"; |
3169 var arg_pageToken = "foo"; | 3169 var arg_pageToken = "foo"; |
3170 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); | 3170 var arg_startDate = core.DateTime.parse("2002-02-27T14:01:02"); |
3171 var arg_status = buildUnnamed1147(); | 3171 var arg_status = buildUnnamed1156(); |
3172 var arg_view = "foo"; | 3172 var arg_view = "foo"; |
3173 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3173 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3174 var path = (req.url).path; | 3174 var path = (req.url).path; |
3175 var pathOffset = 0; | 3175 var pathOffset = 0; |
3176 var index; | 3176 var index; |
3177 var subPart; | 3177 var subPart; |
3178 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3178 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3179 pathOffset += 1; | 3179 pathOffset += 1; |
3180 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); | 3180 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("blogger/v3/")); |
3181 pathOffset += 11; | 3181 pathOffset += 11; |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3604 res.get(arg_userId).then(unittest.expectAsync(((api.User response) { | 3604 res.get(arg_userId).then(unittest.expectAsync(((api.User response) { |
3605 checkUser(response); | 3605 checkUser(response); |
3606 }))); | 3606 }))); |
3607 }); | 3607 }); |
3608 | 3608 |
3609 }); | 3609 }); |
3610 | 3610 |
3611 | 3611 |
3612 } | 3612 } |
3613 | 3613 |
OLD | NEW |