Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: generated/googleapis/test/classroom/v1_test.dart

Issue 2039113004: Api-roll 37: 2016-06-06 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.classroom.v1.test; 1 library googleapis.classroom.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 checkAssignment(api.Assignment o) { 65 checkAssignment(api.Assignment o) {
66 buildCounterAssignment++; 66 buildCounterAssignment++;
67 if (buildCounterAssignment < 3) { 67 if (buildCounterAssignment < 3) {
68 checkDriveFolder(o.studentWorkFolder); 68 checkDriveFolder(o.studentWorkFolder);
69 } 69 }
70 buildCounterAssignment--; 70 buildCounterAssignment--;
71 } 71 }
72 72
73 buildUnnamed612() { 73 buildUnnamed834() {
74 var o = new core.List<api.Attachment>(); 74 var o = new core.List<api.Attachment>();
75 o.add(buildAttachment()); 75 o.add(buildAttachment());
76 o.add(buildAttachment()); 76 o.add(buildAttachment());
77 return o; 77 return o;
78 } 78 }
79 79
80 checkUnnamed612(core.List<api.Attachment> o) { 80 checkUnnamed834(core.List<api.Attachment> o) {
81 unittest.expect(o, unittest.hasLength(2)); 81 unittest.expect(o, unittest.hasLength(2));
82 checkAttachment(o[0]); 82 checkAttachment(o[0]);
83 checkAttachment(o[1]); 83 checkAttachment(o[1]);
84 } 84 }
85 85
86 core.int buildCounterAssignmentSubmission = 0; 86 core.int buildCounterAssignmentSubmission = 0;
87 buildAssignmentSubmission() { 87 buildAssignmentSubmission() {
88 var o = new api.AssignmentSubmission(); 88 var o = new api.AssignmentSubmission();
89 buildCounterAssignmentSubmission++; 89 buildCounterAssignmentSubmission++;
90 if (buildCounterAssignmentSubmission < 3) { 90 if (buildCounterAssignmentSubmission < 3) {
91 o.attachments = buildUnnamed612(); 91 o.attachments = buildUnnamed834();
92 } 92 }
93 buildCounterAssignmentSubmission--; 93 buildCounterAssignmentSubmission--;
94 return o; 94 return o;
95 } 95 }
96 96
97 checkAssignmentSubmission(api.AssignmentSubmission o) { 97 checkAssignmentSubmission(api.AssignmentSubmission o) {
98 buildCounterAssignmentSubmission++; 98 buildCounterAssignmentSubmission++;
99 if (buildCounterAssignmentSubmission < 3) { 99 if (buildCounterAssignmentSubmission < 3) {
100 checkUnnamed612(o.attachments); 100 checkUnnamed834(o.attachments);
101 } 101 }
102 buildCounterAssignmentSubmission--; 102 buildCounterAssignmentSubmission--;
103 } 103 }
104 104
105 core.int buildCounterAttachment = 0; 105 core.int buildCounterAttachment = 0;
106 buildAttachment() { 106 buildAttachment() {
107 var o = new api.Attachment(); 107 var o = new api.Attachment();
108 buildCounterAttachment++; 108 buildCounterAttachment++;
109 if (buildCounterAttachment < 3) { 109 if (buildCounterAttachment < 3) {
110 o.driveFile = buildDriveFile(); 110 o.driveFile = buildDriveFile();
111 o.form = buildForm(); 111 o.form = buildForm();
112 o.link = buildLink(); 112 o.link = buildLink();
113 o.youTubeVideo = buildYouTubeVideo(); 113 o.youTubeVideo = buildYouTubeVideo();
114 } 114 }
115 buildCounterAttachment--; 115 buildCounterAttachment--;
116 return o; 116 return o;
117 } 117 }
118 118
119 checkAttachment(api.Attachment o) { 119 checkAttachment(api.Attachment o) {
120 buildCounterAttachment++; 120 buildCounterAttachment++;
121 if (buildCounterAttachment < 3) { 121 if (buildCounterAttachment < 3) {
122 checkDriveFile(o.driveFile); 122 checkDriveFile(o.driveFile);
123 checkForm(o.form); 123 checkForm(o.form);
124 checkLink(o.link); 124 checkLink(o.link);
125 checkYouTubeVideo(o.youTubeVideo); 125 checkYouTubeVideo(o.youTubeVideo);
126 } 126 }
127 buildCounterAttachment--; 127 buildCounterAttachment--;
128 } 128 }
129 129
130 buildUnnamed613() { 130 buildUnnamed835() {
131 var o = new core.List<api.CourseMaterialSet>(); 131 var o = new core.List<api.CourseMaterialSet>();
132 o.add(buildCourseMaterialSet()); 132 o.add(buildCourseMaterialSet());
133 o.add(buildCourseMaterialSet()); 133 o.add(buildCourseMaterialSet());
134 return o; 134 return o;
135 } 135 }
136 136
137 checkUnnamed613(core.List<api.CourseMaterialSet> o) { 137 checkUnnamed835(core.List<api.CourseMaterialSet> o) {
138 unittest.expect(o, unittest.hasLength(2)); 138 unittest.expect(o, unittest.hasLength(2));
139 checkCourseMaterialSet(o[0]); 139 checkCourseMaterialSet(o[0]);
140 checkCourseMaterialSet(o[1]); 140 checkCourseMaterialSet(o[1]);
141 } 141 }
142 142
143 core.int buildCounterCourse = 0; 143 core.int buildCounterCourse = 0;
144 buildCourse() { 144 buildCourse() {
145 var o = new api.Course(); 145 var o = new api.Course();
146 buildCounterCourse++; 146 buildCounterCourse++;
147 if (buildCounterCourse < 3) { 147 if (buildCounterCourse < 3) {
148 o.alternateLink = "foo"; 148 o.alternateLink = "foo";
149 o.courseGroupEmail = "foo"; 149 o.courseGroupEmail = "foo";
150 o.courseMaterialSets = buildUnnamed613(); 150 o.courseMaterialSets = buildUnnamed835();
151 o.courseState = "foo"; 151 o.courseState = "foo";
152 o.creationTime = "foo"; 152 o.creationTime = "foo";
153 o.description = "foo"; 153 o.description = "foo";
154 o.descriptionHeading = "foo"; 154 o.descriptionHeading = "foo";
155 o.enrollmentCode = "foo"; 155 o.enrollmentCode = "foo";
156 o.id = "foo"; 156 o.id = "foo";
157 o.name = "foo"; 157 o.name = "foo";
158 o.ownerId = "foo"; 158 o.ownerId = "foo";
159 o.room = "foo"; 159 o.room = "foo";
160 o.section = "foo"; 160 o.section = "foo";
161 o.teacherFolder = buildDriveFolder(); 161 o.teacherFolder = buildDriveFolder();
162 o.teacherGroupEmail = "foo"; 162 o.teacherGroupEmail = "foo";
163 o.updateTime = "foo"; 163 o.updateTime = "foo";
164 } 164 }
165 buildCounterCourse--; 165 buildCounterCourse--;
166 return o; 166 return o;
167 } 167 }
168 168
169 checkCourse(api.Course o) { 169 checkCourse(api.Course o) {
170 buildCounterCourse++; 170 buildCounterCourse++;
171 if (buildCounterCourse < 3) { 171 if (buildCounterCourse < 3) {
172 unittest.expect(o.alternateLink, unittest.equals('foo')); 172 unittest.expect(o.alternateLink, unittest.equals('foo'));
173 unittest.expect(o.courseGroupEmail, unittest.equals('foo')); 173 unittest.expect(o.courseGroupEmail, unittest.equals('foo'));
174 checkUnnamed613(o.courseMaterialSets); 174 checkUnnamed835(o.courseMaterialSets);
175 unittest.expect(o.courseState, unittest.equals('foo')); 175 unittest.expect(o.courseState, unittest.equals('foo'));
176 unittest.expect(o.creationTime, unittest.equals('foo')); 176 unittest.expect(o.creationTime, unittest.equals('foo'));
177 unittest.expect(o.description, unittest.equals('foo')); 177 unittest.expect(o.description, unittest.equals('foo'));
178 unittest.expect(o.descriptionHeading, unittest.equals('foo')); 178 unittest.expect(o.descriptionHeading, unittest.equals('foo'));
179 unittest.expect(o.enrollmentCode, unittest.equals('foo')); 179 unittest.expect(o.enrollmentCode, unittest.equals('foo'));
180 unittest.expect(o.id, unittest.equals('foo')); 180 unittest.expect(o.id, unittest.equals('foo'));
181 unittest.expect(o.name, unittest.equals('foo')); 181 unittest.expect(o.name, unittest.equals('foo'));
182 unittest.expect(o.ownerId, unittest.equals('foo')); 182 unittest.expect(o.ownerId, unittest.equals('foo'));
183 unittest.expect(o.room, unittest.equals('foo')); 183 unittest.expect(o.room, unittest.equals('foo'));
184 unittest.expect(o.section, unittest.equals('foo')); 184 unittest.expect(o.section, unittest.equals('foo'));
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 buildCounterCourseMaterial++; 226 buildCounterCourseMaterial++;
227 if (buildCounterCourseMaterial < 3) { 227 if (buildCounterCourseMaterial < 3) {
228 checkDriveFile(o.driveFile); 228 checkDriveFile(o.driveFile);
229 checkForm(o.form); 229 checkForm(o.form);
230 checkLink(o.link); 230 checkLink(o.link);
231 checkYouTubeVideo(o.youTubeVideo); 231 checkYouTubeVideo(o.youTubeVideo);
232 } 232 }
233 buildCounterCourseMaterial--; 233 buildCounterCourseMaterial--;
234 } 234 }
235 235
236 buildUnnamed614() { 236 buildUnnamed836() {
237 var o = new core.List<api.CourseMaterial>(); 237 var o = new core.List<api.CourseMaterial>();
238 o.add(buildCourseMaterial()); 238 o.add(buildCourseMaterial());
239 o.add(buildCourseMaterial()); 239 o.add(buildCourseMaterial());
240 return o; 240 return o;
241 } 241 }
242 242
243 checkUnnamed614(core.List<api.CourseMaterial> o) { 243 checkUnnamed836(core.List<api.CourseMaterial> o) {
244 unittest.expect(o, unittest.hasLength(2)); 244 unittest.expect(o, unittest.hasLength(2));
245 checkCourseMaterial(o[0]); 245 checkCourseMaterial(o[0]);
246 checkCourseMaterial(o[1]); 246 checkCourseMaterial(o[1]);
247 } 247 }
248 248
249 core.int buildCounterCourseMaterialSet = 0; 249 core.int buildCounterCourseMaterialSet = 0;
250 buildCourseMaterialSet() { 250 buildCourseMaterialSet() {
251 var o = new api.CourseMaterialSet(); 251 var o = new api.CourseMaterialSet();
252 buildCounterCourseMaterialSet++; 252 buildCounterCourseMaterialSet++;
253 if (buildCounterCourseMaterialSet < 3) { 253 if (buildCounterCourseMaterialSet < 3) {
254 o.materials = buildUnnamed614(); 254 o.materials = buildUnnamed836();
255 o.title = "foo"; 255 o.title = "foo";
256 } 256 }
257 buildCounterCourseMaterialSet--; 257 buildCounterCourseMaterialSet--;
258 return o; 258 return o;
259 } 259 }
260 260
261 checkCourseMaterialSet(api.CourseMaterialSet o) { 261 checkCourseMaterialSet(api.CourseMaterialSet o) {
262 buildCounterCourseMaterialSet++; 262 buildCounterCourseMaterialSet++;
263 if (buildCounterCourseMaterialSet < 3) { 263 if (buildCounterCourseMaterialSet < 3) {
264 checkUnnamed614(o.materials); 264 checkUnnamed836(o.materials);
265 unittest.expect(o.title, unittest.equals('foo')); 265 unittest.expect(o.title, unittest.equals('foo'));
266 } 266 }
267 buildCounterCourseMaterialSet--; 267 buildCounterCourseMaterialSet--;
268 } 268 }
269 269
270 buildUnnamed615() { 270 buildUnnamed837() {
271 var o = new core.List<api.Material>(); 271 var o = new core.List<api.Material>();
272 o.add(buildMaterial()); 272 o.add(buildMaterial());
273 o.add(buildMaterial()); 273 o.add(buildMaterial());
274 return o; 274 return o;
275 } 275 }
276 276
277 checkUnnamed615(core.List<api.Material> o) { 277 checkUnnamed837(core.List<api.Material> o) {
278 unittest.expect(o, unittest.hasLength(2)); 278 unittest.expect(o, unittest.hasLength(2));
279 checkMaterial(o[0]); 279 checkMaterial(o[0]);
280 checkMaterial(o[1]); 280 checkMaterial(o[1]);
281 } 281 }
282 282
283 core.int buildCounterCourseWork = 0; 283 core.int buildCounterCourseWork = 0;
284 buildCourseWork() { 284 buildCourseWork() {
285 var o = new api.CourseWork(); 285 var o = new api.CourseWork();
286 buildCounterCourseWork++; 286 buildCounterCourseWork++;
287 if (buildCounterCourseWork < 3) { 287 if (buildCounterCourseWork < 3) {
288 o.alternateLink = "foo"; 288 o.alternateLink = "foo";
289 o.assignment = buildAssignment(); 289 o.assignment = buildAssignment();
290 o.associatedWithDeveloper = true; 290 o.associatedWithDeveloper = true;
291 o.courseId = "foo"; 291 o.courseId = "foo";
292 o.creationTime = "foo"; 292 o.creationTime = "foo";
293 o.description = "foo"; 293 o.description = "foo";
294 o.dueDate = buildDate(); 294 o.dueDate = buildDate();
295 o.dueTime = buildTimeOfDay(); 295 o.dueTime = buildTimeOfDay();
296 o.id = "foo"; 296 o.id = "foo";
297 o.materials = buildUnnamed615(); 297 o.materials = buildUnnamed837();
298 o.maxPoints = 42.0; 298 o.maxPoints = 42.0;
299 o.multipleChoiceQuestion = buildMultipleChoiceQuestion(); 299 o.multipleChoiceQuestion = buildMultipleChoiceQuestion();
300 o.state = "foo"; 300 o.state = "foo";
301 o.submissionModificationMode = "foo"; 301 o.submissionModificationMode = "foo";
302 o.title = "foo"; 302 o.title = "foo";
303 o.updateTime = "foo"; 303 o.updateTime = "foo";
304 o.workType = "foo"; 304 o.workType = "foo";
305 } 305 }
306 buildCounterCourseWork--; 306 buildCounterCourseWork--;
307 return o; 307 return o;
308 } 308 }
309 309
310 checkCourseWork(api.CourseWork o) { 310 checkCourseWork(api.CourseWork o) {
311 buildCounterCourseWork++; 311 buildCounterCourseWork++;
312 if (buildCounterCourseWork < 3) { 312 if (buildCounterCourseWork < 3) {
313 unittest.expect(o.alternateLink, unittest.equals('foo')); 313 unittest.expect(o.alternateLink, unittest.equals('foo'));
314 checkAssignment(o.assignment); 314 checkAssignment(o.assignment);
315 unittest.expect(o.associatedWithDeveloper, unittest.isTrue); 315 unittest.expect(o.associatedWithDeveloper, unittest.isTrue);
316 unittest.expect(o.courseId, unittest.equals('foo')); 316 unittest.expect(o.courseId, unittest.equals('foo'));
317 unittest.expect(o.creationTime, unittest.equals('foo')); 317 unittest.expect(o.creationTime, unittest.equals('foo'));
318 unittest.expect(o.description, unittest.equals('foo')); 318 unittest.expect(o.description, unittest.equals('foo'));
319 checkDate(o.dueDate); 319 checkDate(o.dueDate);
320 checkTimeOfDay(o.dueTime); 320 checkTimeOfDay(o.dueTime);
321 unittest.expect(o.id, unittest.equals('foo')); 321 unittest.expect(o.id, unittest.equals('foo'));
322 checkUnnamed615(o.materials); 322 checkUnnamed837(o.materials);
323 unittest.expect(o.maxPoints, unittest.equals(42.0)); 323 unittest.expect(o.maxPoints, unittest.equals(42.0));
324 checkMultipleChoiceQuestion(o.multipleChoiceQuestion); 324 checkMultipleChoiceQuestion(o.multipleChoiceQuestion);
325 unittest.expect(o.state, unittest.equals('foo')); 325 unittest.expect(o.state, unittest.equals('foo'));
326 unittest.expect(o.submissionModificationMode, unittest.equals('foo')); 326 unittest.expect(o.submissionModificationMode, unittest.equals('foo'));
327 unittest.expect(o.title, unittest.equals('foo')); 327 unittest.expect(o.title, unittest.equals('foo'));
328 unittest.expect(o.updateTime, unittest.equals('foo')); 328 unittest.expect(o.updateTime, unittest.equals('foo'));
329 unittest.expect(o.workType, unittest.equals('foo')); 329 unittest.expect(o.workType, unittest.equals('foo'));
330 } 330 }
331 buildCounterCourseWork--; 331 buildCounterCourseWork--;
332 } 332 }
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 checkLink(api.Link o) { 504 checkLink(api.Link o) {
505 buildCounterLink++; 505 buildCounterLink++;
506 if (buildCounterLink < 3) { 506 if (buildCounterLink < 3) {
507 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); 507 unittest.expect(o.thumbnailUrl, unittest.equals('foo'));
508 unittest.expect(o.title, unittest.equals('foo')); 508 unittest.expect(o.title, unittest.equals('foo'));
509 unittest.expect(o.url, unittest.equals('foo')); 509 unittest.expect(o.url, unittest.equals('foo'));
510 } 510 }
511 buildCounterLink--; 511 buildCounterLink--;
512 } 512 }
513 513
514 buildUnnamed616() { 514 buildUnnamed838() {
515 var o = new core.List<api.CourseAlias>(); 515 var o = new core.List<api.CourseAlias>();
516 o.add(buildCourseAlias()); 516 o.add(buildCourseAlias());
517 o.add(buildCourseAlias()); 517 o.add(buildCourseAlias());
518 return o; 518 return o;
519 } 519 }
520 520
521 checkUnnamed616(core.List<api.CourseAlias> o) { 521 checkUnnamed838(core.List<api.CourseAlias> o) {
522 unittest.expect(o, unittest.hasLength(2)); 522 unittest.expect(o, unittest.hasLength(2));
523 checkCourseAlias(o[0]); 523 checkCourseAlias(o[0]);
524 checkCourseAlias(o[1]); 524 checkCourseAlias(o[1]);
525 } 525 }
526 526
527 core.int buildCounterListCourseAliasesResponse = 0; 527 core.int buildCounterListCourseAliasesResponse = 0;
528 buildListCourseAliasesResponse() { 528 buildListCourseAliasesResponse() {
529 var o = new api.ListCourseAliasesResponse(); 529 var o = new api.ListCourseAliasesResponse();
530 buildCounterListCourseAliasesResponse++; 530 buildCounterListCourseAliasesResponse++;
531 if (buildCounterListCourseAliasesResponse < 3) { 531 if (buildCounterListCourseAliasesResponse < 3) {
532 o.aliases = buildUnnamed616(); 532 o.aliases = buildUnnamed838();
533 o.nextPageToken = "foo"; 533 o.nextPageToken = "foo";
534 } 534 }
535 buildCounterListCourseAliasesResponse--; 535 buildCounterListCourseAliasesResponse--;
536 return o; 536 return o;
537 } 537 }
538 538
539 checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) { 539 checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) {
540 buildCounterListCourseAliasesResponse++; 540 buildCounterListCourseAliasesResponse++;
541 if (buildCounterListCourseAliasesResponse < 3) { 541 if (buildCounterListCourseAliasesResponse < 3) {
542 checkUnnamed616(o.aliases); 542 checkUnnamed838(o.aliases);
543 unittest.expect(o.nextPageToken, unittest.equals('foo')); 543 unittest.expect(o.nextPageToken, unittest.equals('foo'));
544 } 544 }
545 buildCounterListCourseAliasesResponse--; 545 buildCounterListCourseAliasesResponse--;
546 } 546 }
547 547
548 buildUnnamed617() { 548 buildUnnamed839() {
549 var o = new core.List<api.CourseWork>(); 549 var o = new core.List<api.CourseWork>();
550 o.add(buildCourseWork()); 550 o.add(buildCourseWork());
551 o.add(buildCourseWork()); 551 o.add(buildCourseWork());
552 return o; 552 return o;
553 } 553 }
554 554
555 checkUnnamed617(core.List<api.CourseWork> o) { 555 checkUnnamed839(core.List<api.CourseWork> o) {
556 unittest.expect(o, unittest.hasLength(2)); 556 unittest.expect(o, unittest.hasLength(2));
557 checkCourseWork(o[0]); 557 checkCourseWork(o[0]);
558 checkCourseWork(o[1]); 558 checkCourseWork(o[1]);
559 } 559 }
560 560
561 core.int buildCounterListCourseWorkResponse = 0; 561 core.int buildCounterListCourseWorkResponse = 0;
562 buildListCourseWorkResponse() { 562 buildListCourseWorkResponse() {
563 var o = new api.ListCourseWorkResponse(); 563 var o = new api.ListCourseWorkResponse();
564 buildCounterListCourseWorkResponse++; 564 buildCounterListCourseWorkResponse++;
565 if (buildCounterListCourseWorkResponse < 3) { 565 if (buildCounterListCourseWorkResponse < 3) {
566 o.courseWork = buildUnnamed617(); 566 o.courseWork = buildUnnamed839();
567 o.nextPageToken = "foo"; 567 o.nextPageToken = "foo";
568 } 568 }
569 buildCounterListCourseWorkResponse--; 569 buildCounterListCourseWorkResponse--;
570 return o; 570 return o;
571 } 571 }
572 572
573 checkListCourseWorkResponse(api.ListCourseWorkResponse o) { 573 checkListCourseWorkResponse(api.ListCourseWorkResponse o) {
574 buildCounterListCourseWorkResponse++; 574 buildCounterListCourseWorkResponse++;
575 if (buildCounterListCourseWorkResponse < 3) { 575 if (buildCounterListCourseWorkResponse < 3) {
576 checkUnnamed617(o.courseWork); 576 checkUnnamed839(o.courseWork);
577 unittest.expect(o.nextPageToken, unittest.equals('foo')); 577 unittest.expect(o.nextPageToken, unittest.equals('foo'));
578 } 578 }
579 buildCounterListCourseWorkResponse--; 579 buildCounterListCourseWorkResponse--;
580 } 580 }
581 581
582 buildUnnamed618() { 582 buildUnnamed840() {
583 var o = new core.List<api.Course>(); 583 var o = new core.List<api.Course>();
584 o.add(buildCourse()); 584 o.add(buildCourse());
585 o.add(buildCourse()); 585 o.add(buildCourse());
586 return o; 586 return o;
587 } 587 }
588 588
589 checkUnnamed618(core.List<api.Course> o) { 589 checkUnnamed840(core.List<api.Course> o) {
590 unittest.expect(o, unittest.hasLength(2)); 590 unittest.expect(o, unittest.hasLength(2));
591 checkCourse(o[0]); 591 checkCourse(o[0]);
592 checkCourse(o[1]); 592 checkCourse(o[1]);
593 } 593 }
594 594
595 core.int buildCounterListCoursesResponse = 0; 595 core.int buildCounterListCoursesResponse = 0;
596 buildListCoursesResponse() { 596 buildListCoursesResponse() {
597 var o = new api.ListCoursesResponse(); 597 var o = new api.ListCoursesResponse();
598 buildCounterListCoursesResponse++; 598 buildCounterListCoursesResponse++;
599 if (buildCounterListCoursesResponse < 3) { 599 if (buildCounterListCoursesResponse < 3) {
600 o.courses = buildUnnamed618(); 600 o.courses = buildUnnamed840();
601 o.nextPageToken = "foo"; 601 o.nextPageToken = "foo";
602 } 602 }
603 buildCounterListCoursesResponse--; 603 buildCounterListCoursesResponse--;
604 return o; 604 return o;
605 } 605 }
606 606
607 checkListCoursesResponse(api.ListCoursesResponse o) { 607 checkListCoursesResponse(api.ListCoursesResponse o) {
608 buildCounterListCoursesResponse++; 608 buildCounterListCoursesResponse++;
609 if (buildCounterListCoursesResponse < 3) { 609 if (buildCounterListCoursesResponse < 3) {
610 checkUnnamed618(o.courses); 610 checkUnnamed840(o.courses);
611 unittest.expect(o.nextPageToken, unittest.equals('foo')); 611 unittest.expect(o.nextPageToken, unittest.equals('foo'));
612 } 612 }
613 buildCounterListCoursesResponse--; 613 buildCounterListCoursesResponse--;
614 } 614 }
615 615
616 buildUnnamed619() { 616 buildUnnamed841() {
617 var o = new core.List<api.Invitation>(); 617 var o = new core.List<api.Invitation>();
618 o.add(buildInvitation()); 618 o.add(buildInvitation());
619 o.add(buildInvitation()); 619 o.add(buildInvitation());
620 return o; 620 return o;
621 } 621 }
622 622
623 checkUnnamed619(core.List<api.Invitation> o) { 623 checkUnnamed841(core.List<api.Invitation> o) {
624 unittest.expect(o, unittest.hasLength(2)); 624 unittest.expect(o, unittest.hasLength(2));
625 checkInvitation(o[0]); 625 checkInvitation(o[0]);
626 checkInvitation(o[1]); 626 checkInvitation(o[1]);
627 } 627 }
628 628
629 core.int buildCounterListInvitationsResponse = 0; 629 core.int buildCounterListInvitationsResponse = 0;
630 buildListInvitationsResponse() { 630 buildListInvitationsResponse() {
631 var o = new api.ListInvitationsResponse(); 631 var o = new api.ListInvitationsResponse();
632 buildCounterListInvitationsResponse++; 632 buildCounterListInvitationsResponse++;
633 if (buildCounterListInvitationsResponse < 3) { 633 if (buildCounterListInvitationsResponse < 3) {
634 o.invitations = buildUnnamed619(); 634 o.invitations = buildUnnamed841();
635 o.nextPageToken = "foo"; 635 o.nextPageToken = "foo";
636 } 636 }
637 buildCounterListInvitationsResponse--; 637 buildCounterListInvitationsResponse--;
638 return o; 638 return o;
639 } 639 }
640 640
641 checkListInvitationsResponse(api.ListInvitationsResponse o) { 641 checkListInvitationsResponse(api.ListInvitationsResponse o) {
642 buildCounterListInvitationsResponse++; 642 buildCounterListInvitationsResponse++;
643 if (buildCounterListInvitationsResponse < 3) { 643 if (buildCounterListInvitationsResponse < 3) {
644 checkUnnamed619(o.invitations); 644 checkUnnamed841(o.invitations);
645 unittest.expect(o.nextPageToken, unittest.equals('foo')); 645 unittest.expect(o.nextPageToken, unittest.equals('foo'));
646 } 646 }
647 buildCounterListInvitationsResponse--; 647 buildCounterListInvitationsResponse--;
648 } 648 }
649 649
650 buildUnnamed620() { 650 buildUnnamed842() {
651 var o = new core.List<api.StudentSubmission>(); 651 var o = new core.List<api.StudentSubmission>();
652 o.add(buildStudentSubmission()); 652 o.add(buildStudentSubmission());
653 o.add(buildStudentSubmission()); 653 o.add(buildStudentSubmission());
654 return o; 654 return o;
655 } 655 }
656 656
657 checkUnnamed620(core.List<api.StudentSubmission> o) { 657 checkUnnamed842(core.List<api.StudentSubmission> o) {
658 unittest.expect(o, unittest.hasLength(2)); 658 unittest.expect(o, unittest.hasLength(2));
659 checkStudentSubmission(o[0]); 659 checkStudentSubmission(o[0]);
660 checkStudentSubmission(o[1]); 660 checkStudentSubmission(o[1]);
661 } 661 }
662 662
663 core.int buildCounterListStudentSubmissionsResponse = 0; 663 core.int buildCounterListStudentSubmissionsResponse = 0;
664 buildListStudentSubmissionsResponse() { 664 buildListStudentSubmissionsResponse() {
665 var o = new api.ListStudentSubmissionsResponse(); 665 var o = new api.ListStudentSubmissionsResponse();
666 buildCounterListStudentSubmissionsResponse++; 666 buildCounterListStudentSubmissionsResponse++;
667 if (buildCounterListStudentSubmissionsResponse < 3) { 667 if (buildCounterListStudentSubmissionsResponse < 3) {
668 o.nextPageToken = "foo"; 668 o.nextPageToken = "foo";
669 o.studentSubmissions = buildUnnamed620(); 669 o.studentSubmissions = buildUnnamed842();
670 } 670 }
671 buildCounterListStudentSubmissionsResponse--; 671 buildCounterListStudentSubmissionsResponse--;
672 return o; 672 return o;
673 } 673 }
674 674
675 checkListStudentSubmissionsResponse(api.ListStudentSubmissionsResponse o) { 675 checkListStudentSubmissionsResponse(api.ListStudentSubmissionsResponse o) {
676 buildCounterListStudentSubmissionsResponse++; 676 buildCounterListStudentSubmissionsResponse++;
677 if (buildCounterListStudentSubmissionsResponse < 3) { 677 if (buildCounterListStudentSubmissionsResponse < 3) {
678 unittest.expect(o.nextPageToken, unittest.equals('foo')); 678 unittest.expect(o.nextPageToken, unittest.equals('foo'));
679 checkUnnamed620(o.studentSubmissions); 679 checkUnnamed842(o.studentSubmissions);
680 } 680 }
681 buildCounterListStudentSubmissionsResponse--; 681 buildCounterListStudentSubmissionsResponse--;
682 } 682 }
683 683
684 buildUnnamed621() { 684 buildUnnamed843() {
685 var o = new core.List<api.Student>(); 685 var o = new core.List<api.Student>();
686 o.add(buildStudent()); 686 o.add(buildStudent());
687 o.add(buildStudent()); 687 o.add(buildStudent());
688 return o; 688 return o;
689 } 689 }
690 690
691 checkUnnamed621(core.List<api.Student> o) { 691 checkUnnamed843(core.List<api.Student> o) {
692 unittest.expect(o, unittest.hasLength(2)); 692 unittest.expect(o, unittest.hasLength(2));
693 checkStudent(o[0]); 693 checkStudent(o[0]);
694 checkStudent(o[1]); 694 checkStudent(o[1]);
695 } 695 }
696 696
697 core.int buildCounterListStudentsResponse = 0; 697 core.int buildCounterListStudentsResponse = 0;
698 buildListStudentsResponse() { 698 buildListStudentsResponse() {
699 var o = new api.ListStudentsResponse(); 699 var o = new api.ListStudentsResponse();
700 buildCounterListStudentsResponse++; 700 buildCounterListStudentsResponse++;
701 if (buildCounterListStudentsResponse < 3) { 701 if (buildCounterListStudentsResponse < 3) {
702 o.nextPageToken = "foo"; 702 o.nextPageToken = "foo";
703 o.students = buildUnnamed621(); 703 o.students = buildUnnamed843();
704 } 704 }
705 buildCounterListStudentsResponse--; 705 buildCounterListStudentsResponse--;
706 return o; 706 return o;
707 } 707 }
708 708
709 checkListStudentsResponse(api.ListStudentsResponse o) { 709 checkListStudentsResponse(api.ListStudentsResponse o) {
710 buildCounterListStudentsResponse++; 710 buildCounterListStudentsResponse++;
711 if (buildCounterListStudentsResponse < 3) { 711 if (buildCounterListStudentsResponse < 3) {
712 unittest.expect(o.nextPageToken, unittest.equals('foo')); 712 unittest.expect(o.nextPageToken, unittest.equals('foo'));
713 checkUnnamed621(o.students); 713 checkUnnamed843(o.students);
714 } 714 }
715 buildCounterListStudentsResponse--; 715 buildCounterListStudentsResponse--;
716 } 716 }
717 717
718 buildUnnamed622() { 718 buildUnnamed844() {
719 var o = new core.List<api.Teacher>(); 719 var o = new core.List<api.Teacher>();
720 o.add(buildTeacher()); 720 o.add(buildTeacher());
721 o.add(buildTeacher()); 721 o.add(buildTeacher());
722 return o; 722 return o;
723 } 723 }
724 724
725 checkUnnamed622(core.List<api.Teacher> o) { 725 checkUnnamed844(core.List<api.Teacher> o) {
726 unittest.expect(o, unittest.hasLength(2)); 726 unittest.expect(o, unittest.hasLength(2));
727 checkTeacher(o[0]); 727 checkTeacher(o[0]);
728 checkTeacher(o[1]); 728 checkTeacher(o[1]);
729 } 729 }
730 730
731 core.int buildCounterListTeachersResponse = 0; 731 core.int buildCounterListTeachersResponse = 0;
732 buildListTeachersResponse() { 732 buildListTeachersResponse() {
733 var o = new api.ListTeachersResponse(); 733 var o = new api.ListTeachersResponse();
734 buildCounterListTeachersResponse++; 734 buildCounterListTeachersResponse++;
735 if (buildCounterListTeachersResponse < 3) { 735 if (buildCounterListTeachersResponse < 3) {
736 o.nextPageToken = "foo"; 736 o.nextPageToken = "foo";
737 o.teachers = buildUnnamed622(); 737 o.teachers = buildUnnamed844();
738 } 738 }
739 buildCounterListTeachersResponse--; 739 buildCounterListTeachersResponse--;
740 return o; 740 return o;
741 } 741 }
742 742
743 checkListTeachersResponse(api.ListTeachersResponse o) { 743 checkListTeachersResponse(api.ListTeachersResponse o) {
744 buildCounterListTeachersResponse++; 744 buildCounterListTeachersResponse++;
745 if (buildCounterListTeachersResponse < 3) { 745 if (buildCounterListTeachersResponse < 3) {
746 unittest.expect(o.nextPageToken, unittest.equals('foo')); 746 unittest.expect(o.nextPageToken, unittest.equals('foo'));
747 checkUnnamed622(o.teachers); 747 checkUnnamed844(o.teachers);
748 } 748 }
749 buildCounterListTeachersResponse--; 749 buildCounterListTeachersResponse--;
750 } 750 }
751 751
752 core.int buildCounterMaterial = 0; 752 core.int buildCounterMaterial = 0;
753 buildMaterial() { 753 buildMaterial() {
754 var o = new api.Material(); 754 var o = new api.Material();
755 buildCounterMaterial++; 755 buildCounterMaterial++;
756 if (buildCounterMaterial < 3) { 756 if (buildCounterMaterial < 3) {
757 o.driveFile = buildSharedDriveFile(); 757 o.driveFile = buildSharedDriveFile();
758 o.form = buildForm(); 758 o.form = buildForm();
759 o.link = buildLink(); 759 o.link = buildLink();
760 o.youtubeVideo = buildYouTubeVideo(); 760 o.youtubeVideo = buildYouTubeVideo();
761 } 761 }
762 buildCounterMaterial--; 762 buildCounterMaterial--;
763 return o; 763 return o;
764 } 764 }
765 765
766 checkMaterial(api.Material o) { 766 checkMaterial(api.Material o) {
767 buildCounterMaterial++; 767 buildCounterMaterial++;
768 if (buildCounterMaterial < 3) { 768 if (buildCounterMaterial < 3) {
769 checkSharedDriveFile(o.driveFile); 769 checkSharedDriveFile(o.driveFile);
770 checkForm(o.form); 770 checkForm(o.form);
771 checkLink(o.link); 771 checkLink(o.link);
772 checkYouTubeVideo(o.youtubeVideo); 772 checkYouTubeVideo(o.youtubeVideo);
773 } 773 }
774 buildCounterMaterial--; 774 buildCounterMaterial--;
775 } 775 }
776 776
777 buildUnnamed623() { 777 buildUnnamed845() {
778 var o = new core.List<api.Attachment>(); 778 var o = new core.List<api.Attachment>();
779 o.add(buildAttachment()); 779 o.add(buildAttachment());
780 o.add(buildAttachment()); 780 o.add(buildAttachment());
781 return o; 781 return o;
782 } 782 }
783 783
784 checkUnnamed623(core.List<api.Attachment> o) { 784 checkUnnamed845(core.List<api.Attachment> o) {
785 unittest.expect(o, unittest.hasLength(2)); 785 unittest.expect(o, unittest.hasLength(2));
786 checkAttachment(o[0]); 786 checkAttachment(o[0]);
787 checkAttachment(o[1]); 787 checkAttachment(o[1]);
788 } 788 }
789 789
790 core.int buildCounterModifyAttachmentsRequest = 0; 790 core.int buildCounterModifyAttachmentsRequest = 0;
791 buildModifyAttachmentsRequest() { 791 buildModifyAttachmentsRequest() {
792 var o = new api.ModifyAttachmentsRequest(); 792 var o = new api.ModifyAttachmentsRequest();
793 buildCounterModifyAttachmentsRequest++; 793 buildCounterModifyAttachmentsRequest++;
794 if (buildCounterModifyAttachmentsRequest < 3) { 794 if (buildCounterModifyAttachmentsRequest < 3) {
795 o.addAttachments = buildUnnamed623(); 795 o.addAttachments = buildUnnamed845();
796 } 796 }
797 buildCounterModifyAttachmentsRequest--; 797 buildCounterModifyAttachmentsRequest--;
798 return o; 798 return o;
799 } 799 }
800 800
801 checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) { 801 checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) {
802 buildCounterModifyAttachmentsRequest++; 802 buildCounterModifyAttachmentsRequest++;
803 if (buildCounterModifyAttachmentsRequest < 3) { 803 if (buildCounterModifyAttachmentsRequest < 3) {
804 checkUnnamed623(o.addAttachments); 804 checkUnnamed845(o.addAttachments);
805 } 805 }
806 buildCounterModifyAttachmentsRequest--; 806 buildCounterModifyAttachmentsRequest--;
807 } 807 }
808 808
809 buildUnnamed624() { 809 buildUnnamed846() {
810 var o = new core.List<core.String>(); 810 var o = new core.List<core.String>();
811 o.add("foo"); 811 o.add("foo");
812 o.add("foo"); 812 o.add("foo");
813 return o; 813 return o;
814 } 814 }
815 815
816 checkUnnamed624(core.List<core.String> o) { 816 checkUnnamed846(core.List<core.String> o) {
817 unittest.expect(o, unittest.hasLength(2)); 817 unittest.expect(o, unittest.hasLength(2));
818 unittest.expect(o[0], unittest.equals('foo')); 818 unittest.expect(o[0], unittest.equals('foo'));
819 unittest.expect(o[1], unittest.equals('foo')); 819 unittest.expect(o[1], unittest.equals('foo'));
820 } 820 }
821 821
822 core.int buildCounterMultipleChoiceQuestion = 0; 822 core.int buildCounterMultipleChoiceQuestion = 0;
823 buildMultipleChoiceQuestion() { 823 buildMultipleChoiceQuestion() {
824 var o = new api.MultipleChoiceQuestion(); 824 var o = new api.MultipleChoiceQuestion();
825 buildCounterMultipleChoiceQuestion++; 825 buildCounterMultipleChoiceQuestion++;
826 if (buildCounterMultipleChoiceQuestion < 3) { 826 if (buildCounterMultipleChoiceQuestion < 3) {
827 o.choices = buildUnnamed624(); 827 o.choices = buildUnnamed846();
828 } 828 }
829 buildCounterMultipleChoiceQuestion--; 829 buildCounterMultipleChoiceQuestion--;
830 return o; 830 return o;
831 } 831 }
832 832
833 checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) { 833 checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) {
834 buildCounterMultipleChoiceQuestion++; 834 buildCounterMultipleChoiceQuestion++;
835 if (buildCounterMultipleChoiceQuestion < 3) { 835 if (buildCounterMultipleChoiceQuestion < 3) {
836 checkUnnamed624(o.choices); 836 checkUnnamed846(o.choices);
837 } 837 }
838 buildCounterMultipleChoiceQuestion--; 838 buildCounterMultipleChoiceQuestion--;
839 } 839 }
840 840
841 core.int buildCounterMultipleChoiceSubmission = 0; 841 core.int buildCounterMultipleChoiceSubmission = 0;
842 buildMultipleChoiceSubmission() { 842 buildMultipleChoiceSubmission() {
843 var o = new api.MultipleChoiceSubmission(); 843 var o = new api.MultipleChoiceSubmission();
844 buildCounterMultipleChoiceSubmission++; 844 buildCounterMultipleChoiceSubmission++;
845 if (buildCounterMultipleChoiceSubmission < 3) { 845 if (buildCounterMultipleChoiceSubmission < 3) {
846 o.answer = "foo"; 846 o.answer = "foo";
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1086 return o; 1086 return o;
1087 } 1087 }
1088 1088
1089 checkTurnInStudentSubmissionRequest(api.TurnInStudentSubmissionRequest o) { 1089 checkTurnInStudentSubmissionRequest(api.TurnInStudentSubmissionRequest o) {
1090 buildCounterTurnInStudentSubmissionRequest++; 1090 buildCounterTurnInStudentSubmissionRequest++;
1091 if (buildCounterTurnInStudentSubmissionRequest < 3) { 1091 if (buildCounterTurnInStudentSubmissionRequest < 3) {
1092 } 1092 }
1093 buildCounterTurnInStudentSubmissionRequest--; 1093 buildCounterTurnInStudentSubmissionRequest--;
1094 } 1094 }
1095 1095
1096 buildUnnamed625() { 1096 buildUnnamed847() {
1097 var o = new core.List<api.GlobalPermission>(); 1097 var o = new core.List<api.GlobalPermission>();
1098 o.add(buildGlobalPermission()); 1098 o.add(buildGlobalPermission());
1099 o.add(buildGlobalPermission()); 1099 o.add(buildGlobalPermission());
1100 return o; 1100 return o;
1101 } 1101 }
1102 1102
1103 checkUnnamed625(core.List<api.GlobalPermission> o) { 1103 checkUnnamed847(core.List<api.GlobalPermission> o) {
1104 unittest.expect(o, unittest.hasLength(2)); 1104 unittest.expect(o, unittest.hasLength(2));
1105 checkGlobalPermission(o[0]); 1105 checkGlobalPermission(o[0]);
1106 checkGlobalPermission(o[1]); 1106 checkGlobalPermission(o[1]);
1107 } 1107 }
1108 1108
1109 core.int buildCounterUserProfile = 0; 1109 core.int buildCounterUserProfile = 0;
1110 buildUserProfile() { 1110 buildUserProfile() {
1111 var o = new api.UserProfile(); 1111 var o = new api.UserProfile();
1112 buildCounterUserProfile++; 1112 buildCounterUserProfile++;
1113 if (buildCounterUserProfile < 3) { 1113 if (buildCounterUserProfile < 3) {
1114 o.emailAddress = "foo"; 1114 o.emailAddress = "foo";
1115 o.id = "foo"; 1115 o.id = "foo";
1116 o.name = buildName(); 1116 o.name = buildName();
1117 o.permissions = buildUnnamed625(); 1117 o.permissions = buildUnnamed847();
1118 o.photoUrl = "foo"; 1118 o.photoUrl = "foo";
1119 } 1119 }
1120 buildCounterUserProfile--; 1120 buildCounterUserProfile--;
1121 return o; 1121 return o;
1122 } 1122 }
1123 1123
1124 checkUserProfile(api.UserProfile o) { 1124 checkUserProfile(api.UserProfile o) {
1125 buildCounterUserProfile++; 1125 buildCounterUserProfile++;
1126 if (buildCounterUserProfile < 3) { 1126 if (buildCounterUserProfile < 3) {
1127 unittest.expect(o.emailAddress, unittest.equals('foo')); 1127 unittest.expect(o.emailAddress, unittest.equals('foo'));
1128 unittest.expect(o.id, unittest.equals('foo')); 1128 unittest.expect(o.id, unittest.equals('foo'));
1129 checkName(o.name); 1129 checkName(o.name);
1130 checkUnnamed625(o.permissions); 1130 checkUnnamed847(o.permissions);
1131 unittest.expect(o.photoUrl, unittest.equals('foo')); 1131 unittest.expect(o.photoUrl, unittest.equals('foo'));
1132 } 1132 }
1133 buildCounterUserProfile--; 1133 buildCounterUserProfile--;
1134 } 1134 }
1135 1135
1136 core.int buildCounterYouTubeVideo = 0; 1136 core.int buildCounterYouTubeVideo = 0;
1137 buildYouTubeVideo() { 1137 buildYouTubeVideo() {
1138 var o = new api.YouTubeVideo(); 1138 var o = new api.YouTubeVideo();
1139 buildCounterYouTubeVideo++; 1139 buildCounterYouTubeVideo++;
1140 if (buildCounterYouTubeVideo < 3) { 1140 if (buildCounterYouTubeVideo < 3) {
(...skipping 10 matching lines...) Expand all
1151 buildCounterYouTubeVideo++; 1151 buildCounterYouTubeVideo++;
1152 if (buildCounterYouTubeVideo < 3) { 1152 if (buildCounterYouTubeVideo < 3) {
1153 unittest.expect(o.alternateLink, unittest.equals('foo')); 1153 unittest.expect(o.alternateLink, unittest.equals('foo'));
1154 unittest.expect(o.id, unittest.equals('foo')); 1154 unittest.expect(o.id, unittest.equals('foo'));
1155 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); 1155 unittest.expect(o.thumbnailUrl, unittest.equals('foo'));
1156 unittest.expect(o.title, unittest.equals('foo')); 1156 unittest.expect(o.title, unittest.equals('foo'));
1157 } 1157 }
1158 buildCounterYouTubeVideo--; 1158 buildCounterYouTubeVideo--;
1159 } 1159 }
1160 1160
1161 buildUnnamed626() { 1161 buildUnnamed848() {
1162 var o = new core.List<core.String>(); 1162 var o = new core.List<core.String>();
1163 o.add("foo"); 1163 o.add("foo");
1164 o.add("foo"); 1164 o.add("foo");
1165 return o; 1165 return o;
1166 } 1166 }
1167 1167
1168 checkUnnamed626(core.List<core.String> o) { 1168 checkUnnamed848(core.List<core.String> o) {
1169 unittest.expect(o, unittest.hasLength(2)); 1169 unittest.expect(o, unittest.hasLength(2));
1170 unittest.expect(o[0], unittest.equals('foo')); 1170 unittest.expect(o[0], unittest.equals('foo'));
1171 unittest.expect(o[1], unittest.equals('foo')); 1171 unittest.expect(o[1], unittest.equals('foo'));
1172 } 1172 }
1173 1173
1174 buildUnnamed627() { 1174 buildUnnamed849() {
1175 var o = new core.List<core.String>(); 1175 var o = new core.List<core.String>();
1176 o.add("foo"); 1176 o.add("foo");
1177 o.add("foo"); 1177 o.add("foo");
1178 return o; 1178 return o;
1179 } 1179 }
1180 1180
1181 checkUnnamed627(core.List<core.String> o) { 1181 checkUnnamed849(core.List<core.String> o) {
1182 unittest.expect(o, unittest.hasLength(2)); 1182 unittest.expect(o, unittest.hasLength(2));
1183 unittest.expect(o[0], unittest.equals('foo')); 1183 unittest.expect(o[0], unittest.equals('foo'));
1184 unittest.expect(o[1], unittest.equals('foo')); 1184 unittest.expect(o[1], unittest.equals('foo'));
1185 } 1185 }
1186 1186
1187 1187
1188 main() { 1188 main() {
1189 unittest.group("obj-schema-Assignment", () { 1189 unittest.group("obj-schema-Assignment", () {
1190 unittest.test("to-json--from-json", () { 1190 unittest.test("to-json--from-json", () {
1191 var o = buildAssignment(); 1191 var o = buildAssignment();
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
2115 res.get(arg_courseId, arg_id).then(unittest.expectAsync(((api.CourseWork r esponse) { 2115 res.get(arg_courseId, arg_id).then(unittest.expectAsync(((api.CourseWork r esponse) {
2116 checkCourseWork(response); 2116 checkCourseWork(response);
2117 }))); 2117 })));
2118 }); 2118 });
2119 2119
2120 unittest.test("method--list", () { 2120 unittest.test("method--list", () {
2121 2121
2122 var mock = new HttpServerMock(); 2122 var mock = new HttpServerMock();
2123 api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses. courseWork; 2123 api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses. courseWork;
2124 var arg_courseId = "foo"; 2124 var arg_courseId = "foo";
2125 var arg_courseWorkStates = buildUnnamed626(); 2125 var arg_courseWorkStates = buildUnnamed848();
2126 var arg_orderBy = "foo"; 2126 var arg_orderBy = "foo";
2127 var arg_pageSize = 42; 2127 var arg_pageSize = 42;
2128 var arg_pageToken = "foo"; 2128 var arg_pageToken = "foo";
2129 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2129 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2130 var path = (req.url).path; 2130 var path = (req.url).path;
2131 var pathOffset = 0; 2131 var pathOffset = 0;
2132 var index; 2132 var index;
2133 var subPart; 2133 var subPart;
2134 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2134 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2135 pathOffset += 1; 2135 pathOffset += 1;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
2243 }))); 2243 })));
2244 }); 2244 });
2245 2245
2246 unittest.test("method--list", () { 2246 unittest.test("method--list", () {
2247 2247
2248 var mock = new HttpServerMock(); 2248 var mock = new HttpServerMock();
2249 api.CoursesCourseWorkStudentSubmissionsResourceApi res = new api.Classroom Api(mock).courses.courseWork.studentSubmissions; 2249 api.CoursesCourseWorkStudentSubmissionsResourceApi res = new api.Classroom Api(mock).courses.courseWork.studentSubmissions;
2250 var arg_courseId = "foo"; 2250 var arg_courseId = "foo";
2251 var arg_courseWorkId = "foo"; 2251 var arg_courseWorkId = "foo";
2252 var arg_userId = "foo"; 2252 var arg_userId = "foo";
2253 var arg_states = buildUnnamed627(); 2253 var arg_states = buildUnnamed849();
2254 var arg_late = "foo"; 2254 var arg_late = "foo";
2255 var arg_pageSize = 42; 2255 var arg_pageSize = 42;
2256 var arg_pageToken = "foo"; 2256 var arg_pageToken = "foo";
2257 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2257 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2258 var path = (req.url).path; 2258 var path = (req.url).path;
2259 var pathOffset = 0; 2259 var pathOffset = 0;
2260 var index; 2260 var index;
2261 var subPart; 2261 var subPart;
2262 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2262 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2263 pathOffset += 1; 2263 pathOffset += 1;
(...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
3411 res.get(arg_userId).then(unittest.expectAsync(((api.UserProfile response) { 3411 res.get(arg_userId).then(unittest.expectAsync(((api.UserProfile response) {
3412 checkUserProfile(response); 3412 checkUserProfile(response);
3413 }))); 3413 })));
3414 }); 3414 });
3415 3415
3416 }); 3416 });
3417 3417
3418 3418
3419 } 3419 }
3420 3420
OLDNEW
« no previous file with comments | « generated/googleapis/test/civicinfo/v2_test.dart ('k') | generated/googleapis/test/cloudbilling/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698