OLD | NEW |
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 Loading... |
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 buildUnnamed643() { | 73 buildUnnamed650() { |
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 checkUnnamed643(core.List<api.Attachment> o) { | 80 checkUnnamed650(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 = buildUnnamed643(); | 91 o.attachments = buildUnnamed650(); |
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 checkUnnamed643(o.attachments); | 100 checkUnnamed650(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 buildUnnamed644() { | 130 buildUnnamed651() { |
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 checkUnnamed644(core.List<api.CourseMaterialSet> o) { | 137 checkUnnamed651(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 = buildUnnamed644(); | 150 o.courseMaterialSets = buildUnnamed651(); |
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.guardiansEnabled = true; | 156 o.guardiansEnabled = true; |
157 o.id = "foo"; | 157 o.id = "foo"; |
158 o.name = "foo"; | 158 o.name = "foo"; |
159 o.ownerId = "foo"; | 159 o.ownerId = "foo"; |
160 o.room = "foo"; | 160 o.room = "foo"; |
161 o.section = "foo"; | 161 o.section = "foo"; |
162 o.teacherFolder = buildDriveFolder(); | 162 o.teacherFolder = buildDriveFolder(); |
163 o.teacherGroupEmail = "foo"; | 163 o.teacherGroupEmail = "foo"; |
164 o.updateTime = "foo"; | 164 o.updateTime = "foo"; |
165 } | 165 } |
166 buildCounterCourse--; | 166 buildCounterCourse--; |
167 return o; | 167 return o; |
168 } | 168 } |
169 | 169 |
170 checkCourse(api.Course o) { | 170 checkCourse(api.Course o) { |
171 buildCounterCourse++; | 171 buildCounterCourse++; |
172 if (buildCounterCourse < 3) { | 172 if (buildCounterCourse < 3) { |
173 unittest.expect(o.alternateLink, unittest.equals('foo')); | 173 unittest.expect(o.alternateLink, unittest.equals('foo')); |
174 unittest.expect(o.courseGroupEmail, unittest.equals('foo')); | 174 unittest.expect(o.courseGroupEmail, unittest.equals('foo')); |
175 checkUnnamed644(o.courseMaterialSets); | 175 checkUnnamed651(o.courseMaterialSets); |
176 unittest.expect(o.courseState, unittest.equals('foo')); | 176 unittest.expect(o.courseState, unittest.equals('foo')); |
177 unittest.expect(o.creationTime, unittest.equals('foo')); | 177 unittest.expect(o.creationTime, unittest.equals('foo')); |
178 unittest.expect(o.description, unittest.equals('foo')); | 178 unittest.expect(o.description, unittest.equals('foo')); |
179 unittest.expect(o.descriptionHeading, unittest.equals('foo')); | 179 unittest.expect(o.descriptionHeading, unittest.equals('foo')); |
180 unittest.expect(o.enrollmentCode, unittest.equals('foo')); | 180 unittest.expect(o.enrollmentCode, unittest.equals('foo')); |
181 unittest.expect(o.guardiansEnabled, unittest.isTrue); | 181 unittest.expect(o.guardiansEnabled, unittest.isTrue); |
182 unittest.expect(o.id, unittest.equals('foo')); | 182 unittest.expect(o.id, unittest.equals('foo')); |
183 unittest.expect(o.name, unittest.equals('foo')); | 183 unittest.expect(o.name, unittest.equals('foo')); |
184 unittest.expect(o.ownerId, unittest.equals('foo')); | 184 unittest.expect(o.ownerId, unittest.equals('foo')); |
185 unittest.expect(o.room, unittest.equals('foo')); | 185 unittest.expect(o.room, unittest.equals('foo')); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 buildCounterCourseMaterial++; | 228 buildCounterCourseMaterial++; |
229 if (buildCounterCourseMaterial < 3) { | 229 if (buildCounterCourseMaterial < 3) { |
230 checkDriveFile(o.driveFile); | 230 checkDriveFile(o.driveFile); |
231 checkForm(o.form); | 231 checkForm(o.form); |
232 checkLink(o.link); | 232 checkLink(o.link); |
233 checkYouTubeVideo(o.youTubeVideo); | 233 checkYouTubeVideo(o.youTubeVideo); |
234 } | 234 } |
235 buildCounterCourseMaterial--; | 235 buildCounterCourseMaterial--; |
236 } | 236 } |
237 | 237 |
238 buildUnnamed645() { | 238 buildUnnamed652() { |
239 var o = new core.List<api.CourseMaterial>(); | 239 var o = new core.List<api.CourseMaterial>(); |
240 o.add(buildCourseMaterial()); | 240 o.add(buildCourseMaterial()); |
241 o.add(buildCourseMaterial()); | 241 o.add(buildCourseMaterial()); |
242 return o; | 242 return o; |
243 } | 243 } |
244 | 244 |
245 checkUnnamed645(core.List<api.CourseMaterial> o) { | 245 checkUnnamed652(core.List<api.CourseMaterial> o) { |
246 unittest.expect(o, unittest.hasLength(2)); | 246 unittest.expect(o, unittest.hasLength(2)); |
247 checkCourseMaterial(o[0]); | 247 checkCourseMaterial(o[0]); |
248 checkCourseMaterial(o[1]); | 248 checkCourseMaterial(o[1]); |
249 } | 249 } |
250 | 250 |
251 core.int buildCounterCourseMaterialSet = 0; | 251 core.int buildCounterCourseMaterialSet = 0; |
252 buildCourseMaterialSet() { | 252 buildCourseMaterialSet() { |
253 var o = new api.CourseMaterialSet(); | 253 var o = new api.CourseMaterialSet(); |
254 buildCounterCourseMaterialSet++; | 254 buildCounterCourseMaterialSet++; |
255 if (buildCounterCourseMaterialSet < 3) { | 255 if (buildCounterCourseMaterialSet < 3) { |
256 o.materials = buildUnnamed645(); | 256 o.materials = buildUnnamed652(); |
257 o.title = "foo"; | 257 o.title = "foo"; |
258 } | 258 } |
259 buildCounterCourseMaterialSet--; | 259 buildCounterCourseMaterialSet--; |
260 return o; | 260 return o; |
261 } | 261 } |
262 | 262 |
263 checkCourseMaterialSet(api.CourseMaterialSet o) { | 263 checkCourseMaterialSet(api.CourseMaterialSet o) { |
264 buildCounterCourseMaterialSet++; | 264 buildCounterCourseMaterialSet++; |
265 if (buildCounterCourseMaterialSet < 3) { | 265 if (buildCounterCourseMaterialSet < 3) { |
266 checkUnnamed645(o.materials); | 266 checkUnnamed652(o.materials); |
267 unittest.expect(o.title, unittest.equals('foo')); | 267 unittest.expect(o.title, unittest.equals('foo')); |
268 } | 268 } |
269 buildCounterCourseMaterialSet--; | 269 buildCounterCourseMaterialSet--; |
270 } | 270 } |
271 | 271 |
272 buildUnnamed646() { | 272 buildUnnamed653() { |
273 var o = new core.List<api.Material>(); | 273 var o = new core.List<api.Material>(); |
274 o.add(buildMaterial()); | 274 o.add(buildMaterial()); |
275 o.add(buildMaterial()); | 275 o.add(buildMaterial()); |
276 return o; | 276 return o; |
277 } | 277 } |
278 | 278 |
279 checkUnnamed646(core.List<api.Material> o) { | 279 checkUnnamed653(core.List<api.Material> o) { |
280 unittest.expect(o, unittest.hasLength(2)); | 280 unittest.expect(o, unittest.hasLength(2)); |
281 checkMaterial(o[0]); | 281 checkMaterial(o[0]); |
282 checkMaterial(o[1]); | 282 checkMaterial(o[1]); |
283 } | 283 } |
284 | 284 |
285 core.int buildCounterCourseWork = 0; | 285 core.int buildCounterCourseWork = 0; |
286 buildCourseWork() { | 286 buildCourseWork() { |
287 var o = new api.CourseWork(); | 287 var o = new api.CourseWork(); |
288 buildCounterCourseWork++; | 288 buildCounterCourseWork++; |
289 if (buildCounterCourseWork < 3) { | 289 if (buildCounterCourseWork < 3) { |
290 o.alternateLink = "foo"; | 290 o.alternateLink = "foo"; |
291 o.assignment = buildAssignment(); | 291 o.assignment = buildAssignment(); |
292 o.associatedWithDeveloper = true; | 292 o.associatedWithDeveloper = true; |
293 o.courseId = "foo"; | 293 o.courseId = "foo"; |
294 o.creationTime = "foo"; | 294 o.creationTime = "foo"; |
295 o.description = "foo"; | 295 o.description = "foo"; |
296 o.dueDate = buildDate(); | 296 o.dueDate = buildDate(); |
297 o.dueTime = buildTimeOfDay(); | 297 o.dueTime = buildTimeOfDay(); |
298 o.id = "foo"; | 298 o.id = "foo"; |
299 o.materials = buildUnnamed646(); | 299 o.materials = buildUnnamed653(); |
300 o.maxPoints = 42.0; | 300 o.maxPoints = 42.0; |
301 o.multipleChoiceQuestion = buildMultipleChoiceQuestion(); | 301 o.multipleChoiceQuestion = buildMultipleChoiceQuestion(); |
302 o.state = "foo"; | 302 o.state = "foo"; |
303 o.submissionModificationMode = "foo"; | 303 o.submissionModificationMode = "foo"; |
304 o.title = "foo"; | 304 o.title = "foo"; |
305 o.updateTime = "foo"; | 305 o.updateTime = "foo"; |
306 o.workType = "foo"; | 306 o.workType = "foo"; |
307 } | 307 } |
308 buildCounterCourseWork--; | 308 buildCounterCourseWork--; |
309 return o; | 309 return o; |
310 } | 310 } |
311 | 311 |
312 checkCourseWork(api.CourseWork o) { | 312 checkCourseWork(api.CourseWork o) { |
313 buildCounterCourseWork++; | 313 buildCounterCourseWork++; |
314 if (buildCounterCourseWork < 3) { | 314 if (buildCounterCourseWork < 3) { |
315 unittest.expect(o.alternateLink, unittest.equals('foo')); | 315 unittest.expect(o.alternateLink, unittest.equals('foo')); |
316 checkAssignment(o.assignment); | 316 checkAssignment(o.assignment); |
317 unittest.expect(o.associatedWithDeveloper, unittest.isTrue); | 317 unittest.expect(o.associatedWithDeveloper, unittest.isTrue); |
318 unittest.expect(o.courseId, unittest.equals('foo')); | 318 unittest.expect(o.courseId, unittest.equals('foo')); |
319 unittest.expect(o.creationTime, unittest.equals('foo')); | 319 unittest.expect(o.creationTime, unittest.equals('foo')); |
320 unittest.expect(o.description, unittest.equals('foo')); | 320 unittest.expect(o.description, unittest.equals('foo')); |
321 checkDate(o.dueDate); | 321 checkDate(o.dueDate); |
322 checkTimeOfDay(o.dueTime); | 322 checkTimeOfDay(o.dueTime); |
323 unittest.expect(o.id, unittest.equals('foo')); | 323 unittest.expect(o.id, unittest.equals('foo')); |
324 checkUnnamed646(o.materials); | 324 checkUnnamed653(o.materials); |
325 unittest.expect(o.maxPoints, unittest.equals(42.0)); | 325 unittest.expect(o.maxPoints, unittest.equals(42.0)); |
326 checkMultipleChoiceQuestion(o.multipleChoiceQuestion); | 326 checkMultipleChoiceQuestion(o.multipleChoiceQuestion); |
327 unittest.expect(o.state, unittest.equals('foo')); | 327 unittest.expect(o.state, unittest.equals('foo')); |
328 unittest.expect(o.submissionModificationMode, unittest.equals('foo')); | 328 unittest.expect(o.submissionModificationMode, unittest.equals('foo')); |
329 unittest.expect(o.title, unittest.equals('foo')); | 329 unittest.expect(o.title, unittest.equals('foo')); |
330 unittest.expect(o.updateTime, unittest.equals('foo')); | 330 unittest.expect(o.updateTime, unittest.equals('foo')); |
331 unittest.expect(o.workType, unittest.equals('foo')); | 331 unittest.expect(o.workType, unittest.equals('foo')); |
332 } | 332 } |
333 buildCounterCourseWork--; | 333 buildCounterCourseWork--; |
334 } | 334 } |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 checkLink(api.Link o) { | 558 checkLink(api.Link o) { |
559 buildCounterLink++; | 559 buildCounterLink++; |
560 if (buildCounterLink < 3) { | 560 if (buildCounterLink < 3) { |
561 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); | 561 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); |
562 unittest.expect(o.title, unittest.equals('foo')); | 562 unittest.expect(o.title, unittest.equals('foo')); |
563 unittest.expect(o.url, unittest.equals('foo')); | 563 unittest.expect(o.url, unittest.equals('foo')); |
564 } | 564 } |
565 buildCounterLink--; | 565 buildCounterLink--; |
566 } | 566 } |
567 | 567 |
568 buildUnnamed647() { | 568 buildUnnamed654() { |
569 var o = new core.List<api.CourseAlias>(); | 569 var o = new core.List<api.CourseAlias>(); |
570 o.add(buildCourseAlias()); | 570 o.add(buildCourseAlias()); |
571 o.add(buildCourseAlias()); | 571 o.add(buildCourseAlias()); |
572 return o; | 572 return o; |
573 } | 573 } |
574 | 574 |
575 checkUnnamed647(core.List<api.CourseAlias> o) { | 575 checkUnnamed654(core.List<api.CourseAlias> o) { |
576 unittest.expect(o, unittest.hasLength(2)); | 576 unittest.expect(o, unittest.hasLength(2)); |
577 checkCourseAlias(o[0]); | 577 checkCourseAlias(o[0]); |
578 checkCourseAlias(o[1]); | 578 checkCourseAlias(o[1]); |
579 } | 579 } |
580 | 580 |
581 core.int buildCounterListCourseAliasesResponse = 0; | 581 core.int buildCounterListCourseAliasesResponse = 0; |
582 buildListCourseAliasesResponse() { | 582 buildListCourseAliasesResponse() { |
583 var o = new api.ListCourseAliasesResponse(); | 583 var o = new api.ListCourseAliasesResponse(); |
584 buildCounterListCourseAliasesResponse++; | 584 buildCounterListCourseAliasesResponse++; |
585 if (buildCounterListCourseAliasesResponse < 3) { | 585 if (buildCounterListCourseAliasesResponse < 3) { |
586 o.aliases = buildUnnamed647(); | 586 o.aliases = buildUnnamed654(); |
587 o.nextPageToken = "foo"; | 587 o.nextPageToken = "foo"; |
588 } | 588 } |
589 buildCounterListCourseAliasesResponse--; | 589 buildCounterListCourseAliasesResponse--; |
590 return o; | 590 return o; |
591 } | 591 } |
592 | 592 |
593 checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) { | 593 checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) { |
594 buildCounterListCourseAliasesResponse++; | 594 buildCounterListCourseAliasesResponse++; |
595 if (buildCounterListCourseAliasesResponse < 3) { | 595 if (buildCounterListCourseAliasesResponse < 3) { |
596 checkUnnamed647(o.aliases); | 596 checkUnnamed654(o.aliases); |
597 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 597 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
598 } | 598 } |
599 buildCounterListCourseAliasesResponse--; | 599 buildCounterListCourseAliasesResponse--; |
600 } | 600 } |
601 | 601 |
602 buildUnnamed648() { | 602 buildUnnamed655() { |
603 var o = new core.List<api.CourseWork>(); | 603 var o = new core.List<api.CourseWork>(); |
604 o.add(buildCourseWork()); | 604 o.add(buildCourseWork()); |
605 o.add(buildCourseWork()); | 605 o.add(buildCourseWork()); |
606 return o; | 606 return o; |
607 } | 607 } |
608 | 608 |
609 checkUnnamed648(core.List<api.CourseWork> o) { | 609 checkUnnamed655(core.List<api.CourseWork> o) { |
610 unittest.expect(o, unittest.hasLength(2)); | 610 unittest.expect(o, unittest.hasLength(2)); |
611 checkCourseWork(o[0]); | 611 checkCourseWork(o[0]); |
612 checkCourseWork(o[1]); | 612 checkCourseWork(o[1]); |
613 } | 613 } |
614 | 614 |
615 core.int buildCounterListCourseWorkResponse = 0; | 615 core.int buildCounterListCourseWorkResponse = 0; |
616 buildListCourseWorkResponse() { | 616 buildListCourseWorkResponse() { |
617 var o = new api.ListCourseWorkResponse(); | 617 var o = new api.ListCourseWorkResponse(); |
618 buildCounterListCourseWorkResponse++; | 618 buildCounterListCourseWorkResponse++; |
619 if (buildCounterListCourseWorkResponse < 3) { | 619 if (buildCounterListCourseWorkResponse < 3) { |
620 o.courseWork = buildUnnamed648(); | 620 o.courseWork = buildUnnamed655(); |
621 o.nextPageToken = "foo"; | 621 o.nextPageToken = "foo"; |
622 } | 622 } |
623 buildCounterListCourseWorkResponse--; | 623 buildCounterListCourseWorkResponse--; |
624 return o; | 624 return o; |
625 } | 625 } |
626 | 626 |
627 checkListCourseWorkResponse(api.ListCourseWorkResponse o) { | 627 checkListCourseWorkResponse(api.ListCourseWorkResponse o) { |
628 buildCounterListCourseWorkResponse++; | 628 buildCounterListCourseWorkResponse++; |
629 if (buildCounterListCourseWorkResponse < 3) { | 629 if (buildCounterListCourseWorkResponse < 3) { |
630 checkUnnamed648(o.courseWork); | 630 checkUnnamed655(o.courseWork); |
631 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 631 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
632 } | 632 } |
633 buildCounterListCourseWorkResponse--; | 633 buildCounterListCourseWorkResponse--; |
634 } | 634 } |
635 | 635 |
636 buildUnnamed649() { | 636 buildUnnamed656() { |
637 var o = new core.List<api.Course>(); | 637 var o = new core.List<api.Course>(); |
638 o.add(buildCourse()); | 638 o.add(buildCourse()); |
639 o.add(buildCourse()); | 639 o.add(buildCourse()); |
640 return o; | 640 return o; |
641 } | 641 } |
642 | 642 |
643 checkUnnamed649(core.List<api.Course> o) { | 643 checkUnnamed656(core.List<api.Course> o) { |
644 unittest.expect(o, unittest.hasLength(2)); | 644 unittest.expect(o, unittest.hasLength(2)); |
645 checkCourse(o[0]); | 645 checkCourse(o[0]); |
646 checkCourse(o[1]); | 646 checkCourse(o[1]); |
647 } | 647 } |
648 | 648 |
649 core.int buildCounterListCoursesResponse = 0; | 649 core.int buildCounterListCoursesResponse = 0; |
650 buildListCoursesResponse() { | 650 buildListCoursesResponse() { |
651 var o = new api.ListCoursesResponse(); | 651 var o = new api.ListCoursesResponse(); |
652 buildCounterListCoursesResponse++; | 652 buildCounterListCoursesResponse++; |
653 if (buildCounterListCoursesResponse < 3) { | 653 if (buildCounterListCoursesResponse < 3) { |
654 o.courses = buildUnnamed649(); | 654 o.courses = buildUnnamed656(); |
655 o.nextPageToken = "foo"; | 655 o.nextPageToken = "foo"; |
656 } | 656 } |
657 buildCounterListCoursesResponse--; | 657 buildCounterListCoursesResponse--; |
658 return o; | 658 return o; |
659 } | 659 } |
660 | 660 |
661 checkListCoursesResponse(api.ListCoursesResponse o) { | 661 checkListCoursesResponse(api.ListCoursesResponse o) { |
662 buildCounterListCoursesResponse++; | 662 buildCounterListCoursesResponse++; |
663 if (buildCounterListCoursesResponse < 3) { | 663 if (buildCounterListCoursesResponse < 3) { |
664 checkUnnamed649(o.courses); | 664 checkUnnamed656(o.courses); |
665 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 665 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
666 } | 666 } |
667 buildCounterListCoursesResponse--; | 667 buildCounterListCoursesResponse--; |
668 } | 668 } |
669 | 669 |
670 buildUnnamed650() { | 670 buildUnnamed657() { |
671 var o = new core.List<api.GuardianInvitation>(); | 671 var o = new core.List<api.GuardianInvitation>(); |
672 o.add(buildGuardianInvitation()); | 672 o.add(buildGuardianInvitation()); |
673 o.add(buildGuardianInvitation()); | 673 o.add(buildGuardianInvitation()); |
674 return o; | 674 return o; |
675 } | 675 } |
676 | 676 |
677 checkUnnamed650(core.List<api.GuardianInvitation> o) { | 677 checkUnnamed657(core.List<api.GuardianInvitation> o) { |
678 unittest.expect(o, unittest.hasLength(2)); | 678 unittest.expect(o, unittest.hasLength(2)); |
679 checkGuardianInvitation(o[0]); | 679 checkGuardianInvitation(o[0]); |
680 checkGuardianInvitation(o[1]); | 680 checkGuardianInvitation(o[1]); |
681 } | 681 } |
682 | 682 |
683 core.int buildCounterListGuardianInvitationsResponse = 0; | 683 core.int buildCounterListGuardianInvitationsResponse = 0; |
684 buildListGuardianInvitationsResponse() { | 684 buildListGuardianInvitationsResponse() { |
685 var o = new api.ListGuardianInvitationsResponse(); | 685 var o = new api.ListGuardianInvitationsResponse(); |
686 buildCounterListGuardianInvitationsResponse++; | 686 buildCounterListGuardianInvitationsResponse++; |
687 if (buildCounterListGuardianInvitationsResponse < 3) { | 687 if (buildCounterListGuardianInvitationsResponse < 3) { |
688 o.guardianInvitations = buildUnnamed650(); | 688 o.guardianInvitations = buildUnnamed657(); |
689 o.nextPageToken = "foo"; | 689 o.nextPageToken = "foo"; |
690 } | 690 } |
691 buildCounterListGuardianInvitationsResponse--; | 691 buildCounterListGuardianInvitationsResponse--; |
692 return o; | 692 return o; |
693 } | 693 } |
694 | 694 |
695 checkListGuardianInvitationsResponse(api.ListGuardianInvitationsResponse o) { | 695 checkListGuardianInvitationsResponse(api.ListGuardianInvitationsResponse o) { |
696 buildCounterListGuardianInvitationsResponse++; | 696 buildCounterListGuardianInvitationsResponse++; |
697 if (buildCounterListGuardianInvitationsResponse < 3) { | 697 if (buildCounterListGuardianInvitationsResponse < 3) { |
698 checkUnnamed650(o.guardianInvitations); | 698 checkUnnamed657(o.guardianInvitations); |
699 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 699 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
700 } | 700 } |
701 buildCounterListGuardianInvitationsResponse--; | 701 buildCounterListGuardianInvitationsResponse--; |
702 } | 702 } |
703 | 703 |
704 buildUnnamed651() { | 704 buildUnnamed658() { |
705 var o = new core.List<api.Guardian>(); | 705 var o = new core.List<api.Guardian>(); |
706 o.add(buildGuardian()); | 706 o.add(buildGuardian()); |
707 o.add(buildGuardian()); | 707 o.add(buildGuardian()); |
708 return o; | 708 return o; |
709 } | 709 } |
710 | 710 |
711 checkUnnamed651(core.List<api.Guardian> o) { | 711 checkUnnamed658(core.List<api.Guardian> o) { |
712 unittest.expect(o, unittest.hasLength(2)); | 712 unittest.expect(o, unittest.hasLength(2)); |
713 checkGuardian(o[0]); | 713 checkGuardian(o[0]); |
714 checkGuardian(o[1]); | 714 checkGuardian(o[1]); |
715 } | 715 } |
716 | 716 |
717 core.int buildCounterListGuardiansResponse = 0; | 717 core.int buildCounterListGuardiansResponse = 0; |
718 buildListGuardiansResponse() { | 718 buildListGuardiansResponse() { |
719 var o = new api.ListGuardiansResponse(); | 719 var o = new api.ListGuardiansResponse(); |
720 buildCounterListGuardiansResponse++; | 720 buildCounterListGuardiansResponse++; |
721 if (buildCounterListGuardiansResponse < 3) { | 721 if (buildCounterListGuardiansResponse < 3) { |
722 o.guardians = buildUnnamed651(); | 722 o.guardians = buildUnnamed658(); |
723 o.nextPageToken = "foo"; | 723 o.nextPageToken = "foo"; |
724 } | 724 } |
725 buildCounterListGuardiansResponse--; | 725 buildCounterListGuardiansResponse--; |
726 return o; | 726 return o; |
727 } | 727 } |
728 | 728 |
729 checkListGuardiansResponse(api.ListGuardiansResponse o) { | 729 checkListGuardiansResponse(api.ListGuardiansResponse o) { |
730 buildCounterListGuardiansResponse++; | 730 buildCounterListGuardiansResponse++; |
731 if (buildCounterListGuardiansResponse < 3) { | 731 if (buildCounterListGuardiansResponse < 3) { |
732 checkUnnamed651(o.guardians); | 732 checkUnnamed658(o.guardians); |
733 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 733 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
734 } | 734 } |
735 buildCounterListGuardiansResponse--; | 735 buildCounterListGuardiansResponse--; |
736 } | 736 } |
737 | 737 |
738 buildUnnamed652() { | 738 buildUnnamed659() { |
739 var o = new core.List<api.Invitation>(); | 739 var o = new core.List<api.Invitation>(); |
740 o.add(buildInvitation()); | 740 o.add(buildInvitation()); |
741 o.add(buildInvitation()); | 741 o.add(buildInvitation()); |
742 return o; | 742 return o; |
743 } | 743 } |
744 | 744 |
745 checkUnnamed652(core.List<api.Invitation> o) { | 745 checkUnnamed659(core.List<api.Invitation> o) { |
746 unittest.expect(o, unittest.hasLength(2)); | 746 unittest.expect(o, unittest.hasLength(2)); |
747 checkInvitation(o[0]); | 747 checkInvitation(o[0]); |
748 checkInvitation(o[1]); | 748 checkInvitation(o[1]); |
749 } | 749 } |
750 | 750 |
751 core.int buildCounterListInvitationsResponse = 0; | 751 core.int buildCounterListInvitationsResponse = 0; |
752 buildListInvitationsResponse() { | 752 buildListInvitationsResponse() { |
753 var o = new api.ListInvitationsResponse(); | 753 var o = new api.ListInvitationsResponse(); |
754 buildCounterListInvitationsResponse++; | 754 buildCounterListInvitationsResponse++; |
755 if (buildCounterListInvitationsResponse < 3) { | 755 if (buildCounterListInvitationsResponse < 3) { |
756 o.invitations = buildUnnamed652(); | 756 o.invitations = buildUnnamed659(); |
757 o.nextPageToken = "foo"; | 757 o.nextPageToken = "foo"; |
758 } | 758 } |
759 buildCounterListInvitationsResponse--; | 759 buildCounterListInvitationsResponse--; |
760 return o; | 760 return o; |
761 } | 761 } |
762 | 762 |
763 checkListInvitationsResponse(api.ListInvitationsResponse o) { | 763 checkListInvitationsResponse(api.ListInvitationsResponse o) { |
764 buildCounterListInvitationsResponse++; | 764 buildCounterListInvitationsResponse++; |
765 if (buildCounterListInvitationsResponse < 3) { | 765 if (buildCounterListInvitationsResponse < 3) { |
766 checkUnnamed652(o.invitations); | 766 checkUnnamed659(o.invitations); |
767 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 767 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
768 } | 768 } |
769 buildCounterListInvitationsResponse--; | 769 buildCounterListInvitationsResponse--; |
770 } | 770 } |
771 | 771 |
772 buildUnnamed653() { | 772 buildUnnamed660() { |
773 var o = new core.List<api.StudentSubmission>(); | 773 var o = new core.List<api.StudentSubmission>(); |
774 o.add(buildStudentSubmission()); | 774 o.add(buildStudentSubmission()); |
775 o.add(buildStudentSubmission()); | 775 o.add(buildStudentSubmission()); |
776 return o; | 776 return o; |
777 } | 777 } |
778 | 778 |
779 checkUnnamed653(core.List<api.StudentSubmission> o) { | 779 checkUnnamed660(core.List<api.StudentSubmission> o) { |
780 unittest.expect(o, unittest.hasLength(2)); | 780 unittest.expect(o, unittest.hasLength(2)); |
781 checkStudentSubmission(o[0]); | 781 checkStudentSubmission(o[0]); |
782 checkStudentSubmission(o[1]); | 782 checkStudentSubmission(o[1]); |
783 } | 783 } |
784 | 784 |
785 core.int buildCounterListStudentSubmissionsResponse = 0; | 785 core.int buildCounterListStudentSubmissionsResponse = 0; |
786 buildListStudentSubmissionsResponse() { | 786 buildListStudentSubmissionsResponse() { |
787 var o = new api.ListStudentSubmissionsResponse(); | 787 var o = new api.ListStudentSubmissionsResponse(); |
788 buildCounterListStudentSubmissionsResponse++; | 788 buildCounterListStudentSubmissionsResponse++; |
789 if (buildCounterListStudentSubmissionsResponse < 3) { | 789 if (buildCounterListStudentSubmissionsResponse < 3) { |
790 o.nextPageToken = "foo"; | 790 o.nextPageToken = "foo"; |
791 o.studentSubmissions = buildUnnamed653(); | 791 o.studentSubmissions = buildUnnamed660(); |
792 } | 792 } |
793 buildCounterListStudentSubmissionsResponse--; | 793 buildCounterListStudentSubmissionsResponse--; |
794 return o; | 794 return o; |
795 } | 795 } |
796 | 796 |
797 checkListStudentSubmissionsResponse(api.ListStudentSubmissionsResponse o) { | 797 checkListStudentSubmissionsResponse(api.ListStudentSubmissionsResponse o) { |
798 buildCounterListStudentSubmissionsResponse++; | 798 buildCounterListStudentSubmissionsResponse++; |
799 if (buildCounterListStudentSubmissionsResponse < 3) { | 799 if (buildCounterListStudentSubmissionsResponse < 3) { |
800 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 800 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
801 checkUnnamed653(o.studentSubmissions); | 801 checkUnnamed660(o.studentSubmissions); |
802 } | 802 } |
803 buildCounterListStudentSubmissionsResponse--; | 803 buildCounterListStudentSubmissionsResponse--; |
804 } | 804 } |
805 | 805 |
806 buildUnnamed654() { | 806 buildUnnamed661() { |
807 var o = new core.List<api.Student>(); | 807 var o = new core.List<api.Student>(); |
808 o.add(buildStudent()); | 808 o.add(buildStudent()); |
809 o.add(buildStudent()); | 809 o.add(buildStudent()); |
810 return o; | 810 return o; |
811 } | 811 } |
812 | 812 |
813 checkUnnamed654(core.List<api.Student> o) { | 813 checkUnnamed661(core.List<api.Student> o) { |
814 unittest.expect(o, unittest.hasLength(2)); | 814 unittest.expect(o, unittest.hasLength(2)); |
815 checkStudent(o[0]); | 815 checkStudent(o[0]); |
816 checkStudent(o[1]); | 816 checkStudent(o[1]); |
817 } | 817 } |
818 | 818 |
819 core.int buildCounterListStudentsResponse = 0; | 819 core.int buildCounterListStudentsResponse = 0; |
820 buildListStudentsResponse() { | 820 buildListStudentsResponse() { |
821 var o = new api.ListStudentsResponse(); | 821 var o = new api.ListStudentsResponse(); |
822 buildCounterListStudentsResponse++; | 822 buildCounterListStudentsResponse++; |
823 if (buildCounterListStudentsResponse < 3) { | 823 if (buildCounterListStudentsResponse < 3) { |
824 o.nextPageToken = "foo"; | 824 o.nextPageToken = "foo"; |
825 o.students = buildUnnamed654(); | 825 o.students = buildUnnamed661(); |
826 } | 826 } |
827 buildCounterListStudentsResponse--; | 827 buildCounterListStudentsResponse--; |
828 return o; | 828 return o; |
829 } | 829 } |
830 | 830 |
831 checkListStudentsResponse(api.ListStudentsResponse o) { | 831 checkListStudentsResponse(api.ListStudentsResponse o) { |
832 buildCounterListStudentsResponse++; | 832 buildCounterListStudentsResponse++; |
833 if (buildCounterListStudentsResponse < 3) { | 833 if (buildCounterListStudentsResponse < 3) { |
834 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 834 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
835 checkUnnamed654(o.students); | 835 checkUnnamed661(o.students); |
836 } | 836 } |
837 buildCounterListStudentsResponse--; | 837 buildCounterListStudentsResponse--; |
838 } | 838 } |
839 | 839 |
840 buildUnnamed655() { | 840 buildUnnamed662() { |
841 var o = new core.List<api.Teacher>(); | 841 var o = new core.List<api.Teacher>(); |
842 o.add(buildTeacher()); | 842 o.add(buildTeacher()); |
843 o.add(buildTeacher()); | 843 o.add(buildTeacher()); |
844 return o; | 844 return o; |
845 } | 845 } |
846 | 846 |
847 checkUnnamed655(core.List<api.Teacher> o) { | 847 checkUnnamed662(core.List<api.Teacher> o) { |
848 unittest.expect(o, unittest.hasLength(2)); | 848 unittest.expect(o, unittest.hasLength(2)); |
849 checkTeacher(o[0]); | 849 checkTeacher(o[0]); |
850 checkTeacher(o[1]); | 850 checkTeacher(o[1]); |
851 } | 851 } |
852 | 852 |
853 core.int buildCounterListTeachersResponse = 0; | 853 core.int buildCounterListTeachersResponse = 0; |
854 buildListTeachersResponse() { | 854 buildListTeachersResponse() { |
855 var o = new api.ListTeachersResponse(); | 855 var o = new api.ListTeachersResponse(); |
856 buildCounterListTeachersResponse++; | 856 buildCounterListTeachersResponse++; |
857 if (buildCounterListTeachersResponse < 3) { | 857 if (buildCounterListTeachersResponse < 3) { |
858 o.nextPageToken = "foo"; | 858 o.nextPageToken = "foo"; |
859 o.teachers = buildUnnamed655(); | 859 o.teachers = buildUnnamed662(); |
860 } | 860 } |
861 buildCounterListTeachersResponse--; | 861 buildCounterListTeachersResponse--; |
862 return o; | 862 return o; |
863 } | 863 } |
864 | 864 |
865 checkListTeachersResponse(api.ListTeachersResponse o) { | 865 checkListTeachersResponse(api.ListTeachersResponse o) { |
866 buildCounterListTeachersResponse++; | 866 buildCounterListTeachersResponse++; |
867 if (buildCounterListTeachersResponse < 3) { | 867 if (buildCounterListTeachersResponse < 3) { |
868 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 868 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
869 checkUnnamed655(o.teachers); | 869 checkUnnamed662(o.teachers); |
870 } | 870 } |
871 buildCounterListTeachersResponse--; | 871 buildCounterListTeachersResponse--; |
872 } | 872 } |
873 | 873 |
874 core.int buildCounterMaterial = 0; | 874 core.int buildCounterMaterial = 0; |
875 buildMaterial() { | 875 buildMaterial() { |
876 var o = new api.Material(); | 876 var o = new api.Material(); |
877 buildCounterMaterial++; | 877 buildCounterMaterial++; |
878 if (buildCounterMaterial < 3) { | 878 if (buildCounterMaterial < 3) { |
879 o.driveFile = buildSharedDriveFile(); | 879 o.driveFile = buildSharedDriveFile(); |
880 o.form = buildForm(); | 880 o.form = buildForm(); |
881 o.link = buildLink(); | 881 o.link = buildLink(); |
882 o.youtubeVideo = buildYouTubeVideo(); | 882 o.youtubeVideo = buildYouTubeVideo(); |
883 } | 883 } |
884 buildCounterMaterial--; | 884 buildCounterMaterial--; |
885 return o; | 885 return o; |
886 } | 886 } |
887 | 887 |
888 checkMaterial(api.Material o) { | 888 checkMaterial(api.Material o) { |
889 buildCounterMaterial++; | 889 buildCounterMaterial++; |
890 if (buildCounterMaterial < 3) { | 890 if (buildCounterMaterial < 3) { |
891 checkSharedDriveFile(o.driveFile); | 891 checkSharedDriveFile(o.driveFile); |
892 checkForm(o.form); | 892 checkForm(o.form); |
893 checkLink(o.link); | 893 checkLink(o.link); |
894 checkYouTubeVideo(o.youtubeVideo); | 894 checkYouTubeVideo(o.youtubeVideo); |
895 } | 895 } |
896 buildCounterMaterial--; | 896 buildCounterMaterial--; |
897 } | 897 } |
898 | 898 |
899 buildUnnamed656() { | 899 buildUnnamed663() { |
900 var o = new core.List<api.Attachment>(); | 900 var o = new core.List<api.Attachment>(); |
901 o.add(buildAttachment()); | 901 o.add(buildAttachment()); |
902 o.add(buildAttachment()); | 902 o.add(buildAttachment()); |
903 return o; | 903 return o; |
904 } | 904 } |
905 | 905 |
906 checkUnnamed656(core.List<api.Attachment> o) { | 906 checkUnnamed663(core.List<api.Attachment> o) { |
907 unittest.expect(o, unittest.hasLength(2)); | 907 unittest.expect(o, unittest.hasLength(2)); |
908 checkAttachment(o[0]); | 908 checkAttachment(o[0]); |
909 checkAttachment(o[1]); | 909 checkAttachment(o[1]); |
910 } | 910 } |
911 | 911 |
912 core.int buildCounterModifyAttachmentsRequest = 0; | 912 core.int buildCounterModifyAttachmentsRequest = 0; |
913 buildModifyAttachmentsRequest() { | 913 buildModifyAttachmentsRequest() { |
914 var o = new api.ModifyAttachmentsRequest(); | 914 var o = new api.ModifyAttachmentsRequest(); |
915 buildCounterModifyAttachmentsRequest++; | 915 buildCounterModifyAttachmentsRequest++; |
916 if (buildCounterModifyAttachmentsRequest < 3) { | 916 if (buildCounterModifyAttachmentsRequest < 3) { |
917 o.addAttachments = buildUnnamed656(); | 917 o.addAttachments = buildUnnamed663(); |
918 } | 918 } |
919 buildCounterModifyAttachmentsRequest--; | 919 buildCounterModifyAttachmentsRequest--; |
920 return o; | 920 return o; |
921 } | 921 } |
922 | 922 |
923 checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) { | 923 checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) { |
924 buildCounterModifyAttachmentsRequest++; | 924 buildCounterModifyAttachmentsRequest++; |
925 if (buildCounterModifyAttachmentsRequest < 3) { | 925 if (buildCounterModifyAttachmentsRequest < 3) { |
926 checkUnnamed656(o.addAttachments); | 926 checkUnnamed663(o.addAttachments); |
927 } | 927 } |
928 buildCounterModifyAttachmentsRequest--; | 928 buildCounterModifyAttachmentsRequest--; |
929 } | 929 } |
930 | 930 |
931 buildUnnamed657() { | 931 buildUnnamed664() { |
932 var o = new core.List<core.String>(); | 932 var o = new core.List<core.String>(); |
933 o.add("foo"); | 933 o.add("foo"); |
934 o.add("foo"); | 934 o.add("foo"); |
935 return o; | 935 return o; |
936 } | 936 } |
937 | 937 |
938 checkUnnamed657(core.List<core.String> o) { | 938 checkUnnamed664(core.List<core.String> o) { |
939 unittest.expect(o, unittest.hasLength(2)); | 939 unittest.expect(o, unittest.hasLength(2)); |
940 unittest.expect(o[0], unittest.equals('foo')); | 940 unittest.expect(o[0], unittest.equals('foo')); |
941 unittest.expect(o[1], unittest.equals('foo')); | 941 unittest.expect(o[1], unittest.equals('foo')); |
942 } | 942 } |
943 | 943 |
944 core.int buildCounterMultipleChoiceQuestion = 0; | 944 core.int buildCounterMultipleChoiceQuestion = 0; |
945 buildMultipleChoiceQuestion() { | 945 buildMultipleChoiceQuestion() { |
946 var o = new api.MultipleChoiceQuestion(); | 946 var o = new api.MultipleChoiceQuestion(); |
947 buildCounterMultipleChoiceQuestion++; | 947 buildCounterMultipleChoiceQuestion++; |
948 if (buildCounterMultipleChoiceQuestion < 3) { | 948 if (buildCounterMultipleChoiceQuestion < 3) { |
949 o.choices = buildUnnamed657(); | 949 o.choices = buildUnnamed664(); |
950 } | 950 } |
951 buildCounterMultipleChoiceQuestion--; | 951 buildCounterMultipleChoiceQuestion--; |
952 return o; | 952 return o; |
953 } | 953 } |
954 | 954 |
955 checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) { | 955 checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) { |
956 buildCounterMultipleChoiceQuestion++; | 956 buildCounterMultipleChoiceQuestion++; |
957 if (buildCounterMultipleChoiceQuestion < 3) { | 957 if (buildCounterMultipleChoiceQuestion < 3) { |
958 checkUnnamed657(o.choices); | 958 checkUnnamed664(o.choices); |
959 } | 959 } |
960 buildCounterMultipleChoiceQuestion--; | 960 buildCounterMultipleChoiceQuestion--; |
961 } | 961 } |
962 | 962 |
963 core.int buildCounterMultipleChoiceSubmission = 0; | 963 core.int buildCounterMultipleChoiceSubmission = 0; |
964 buildMultipleChoiceSubmission() { | 964 buildMultipleChoiceSubmission() { |
965 var o = new api.MultipleChoiceSubmission(); | 965 var o = new api.MultipleChoiceSubmission(); |
966 buildCounterMultipleChoiceSubmission++; | 966 buildCounterMultipleChoiceSubmission++; |
967 if (buildCounterMultipleChoiceSubmission < 3) { | 967 if (buildCounterMultipleChoiceSubmission < 3) { |
968 o.answer = "foo"; | 968 o.answer = "foo"; |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 return o; | 1208 return o; |
1209 } | 1209 } |
1210 | 1210 |
1211 checkTurnInStudentSubmissionRequest(api.TurnInStudentSubmissionRequest o) { | 1211 checkTurnInStudentSubmissionRequest(api.TurnInStudentSubmissionRequest o) { |
1212 buildCounterTurnInStudentSubmissionRequest++; | 1212 buildCounterTurnInStudentSubmissionRequest++; |
1213 if (buildCounterTurnInStudentSubmissionRequest < 3) { | 1213 if (buildCounterTurnInStudentSubmissionRequest < 3) { |
1214 } | 1214 } |
1215 buildCounterTurnInStudentSubmissionRequest--; | 1215 buildCounterTurnInStudentSubmissionRequest--; |
1216 } | 1216 } |
1217 | 1217 |
1218 buildUnnamed658() { | 1218 buildUnnamed665() { |
1219 var o = new core.List<api.GlobalPermission>(); | 1219 var o = new core.List<api.GlobalPermission>(); |
1220 o.add(buildGlobalPermission()); | 1220 o.add(buildGlobalPermission()); |
1221 o.add(buildGlobalPermission()); | 1221 o.add(buildGlobalPermission()); |
1222 return o; | 1222 return o; |
1223 } | 1223 } |
1224 | 1224 |
1225 checkUnnamed658(core.List<api.GlobalPermission> o) { | 1225 checkUnnamed665(core.List<api.GlobalPermission> o) { |
1226 unittest.expect(o, unittest.hasLength(2)); | 1226 unittest.expect(o, unittest.hasLength(2)); |
1227 checkGlobalPermission(o[0]); | 1227 checkGlobalPermission(o[0]); |
1228 checkGlobalPermission(o[1]); | 1228 checkGlobalPermission(o[1]); |
1229 } | 1229 } |
1230 | 1230 |
1231 core.int buildCounterUserProfile = 0; | 1231 core.int buildCounterUserProfile = 0; |
1232 buildUserProfile() { | 1232 buildUserProfile() { |
1233 var o = new api.UserProfile(); | 1233 var o = new api.UserProfile(); |
1234 buildCounterUserProfile++; | 1234 buildCounterUserProfile++; |
1235 if (buildCounterUserProfile < 3) { | 1235 if (buildCounterUserProfile < 3) { |
1236 o.emailAddress = "foo"; | 1236 o.emailAddress = "foo"; |
1237 o.id = "foo"; | 1237 o.id = "foo"; |
1238 o.name = buildName(); | 1238 o.name = buildName(); |
1239 o.permissions = buildUnnamed658(); | 1239 o.permissions = buildUnnamed665(); |
1240 o.photoUrl = "foo"; | 1240 o.photoUrl = "foo"; |
1241 } | 1241 } |
1242 buildCounterUserProfile--; | 1242 buildCounterUserProfile--; |
1243 return o; | 1243 return o; |
1244 } | 1244 } |
1245 | 1245 |
1246 checkUserProfile(api.UserProfile o) { | 1246 checkUserProfile(api.UserProfile o) { |
1247 buildCounterUserProfile++; | 1247 buildCounterUserProfile++; |
1248 if (buildCounterUserProfile < 3) { | 1248 if (buildCounterUserProfile < 3) { |
1249 unittest.expect(o.emailAddress, unittest.equals('foo')); | 1249 unittest.expect(o.emailAddress, unittest.equals('foo')); |
1250 unittest.expect(o.id, unittest.equals('foo')); | 1250 unittest.expect(o.id, unittest.equals('foo')); |
1251 checkName(o.name); | 1251 checkName(o.name); |
1252 checkUnnamed658(o.permissions); | 1252 checkUnnamed665(o.permissions); |
1253 unittest.expect(o.photoUrl, unittest.equals('foo')); | 1253 unittest.expect(o.photoUrl, unittest.equals('foo')); |
1254 } | 1254 } |
1255 buildCounterUserProfile--; | 1255 buildCounterUserProfile--; |
1256 } | 1256 } |
1257 | 1257 |
1258 core.int buildCounterYouTubeVideo = 0; | 1258 core.int buildCounterYouTubeVideo = 0; |
1259 buildYouTubeVideo() { | 1259 buildYouTubeVideo() { |
1260 var o = new api.YouTubeVideo(); | 1260 var o = new api.YouTubeVideo(); |
1261 buildCounterYouTubeVideo++; | 1261 buildCounterYouTubeVideo++; |
1262 if (buildCounterYouTubeVideo < 3) { | 1262 if (buildCounterYouTubeVideo < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
1273 buildCounterYouTubeVideo++; | 1273 buildCounterYouTubeVideo++; |
1274 if (buildCounterYouTubeVideo < 3) { | 1274 if (buildCounterYouTubeVideo < 3) { |
1275 unittest.expect(o.alternateLink, unittest.equals('foo')); | 1275 unittest.expect(o.alternateLink, unittest.equals('foo')); |
1276 unittest.expect(o.id, unittest.equals('foo')); | 1276 unittest.expect(o.id, unittest.equals('foo')); |
1277 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); | 1277 unittest.expect(o.thumbnailUrl, unittest.equals('foo')); |
1278 unittest.expect(o.title, unittest.equals('foo')); | 1278 unittest.expect(o.title, unittest.equals('foo')); |
1279 } | 1279 } |
1280 buildCounterYouTubeVideo--; | 1280 buildCounterYouTubeVideo--; |
1281 } | 1281 } |
1282 | 1282 |
1283 buildUnnamed659() { | 1283 buildUnnamed666() { |
1284 var o = new core.List<core.String>(); | 1284 var o = new core.List<core.String>(); |
1285 o.add("foo"); | 1285 o.add("foo"); |
1286 o.add("foo"); | 1286 o.add("foo"); |
1287 return o; | 1287 return o; |
1288 } | 1288 } |
1289 | 1289 |
1290 checkUnnamed659(core.List<core.String> o) { | 1290 checkUnnamed666(core.List<core.String> o) { |
1291 unittest.expect(o, unittest.hasLength(2)); | 1291 unittest.expect(o, unittest.hasLength(2)); |
1292 unittest.expect(o[0], unittest.equals('foo')); | 1292 unittest.expect(o[0], unittest.equals('foo')); |
1293 unittest.expect(o[1], unittest.equals('foo')); | 1293 unittest.expect(o[1], unittest.equals('foo')); |
1294 } | 1294 } |
1295 | 1295 |
1296 buildUnnamed660() { | 1296 buildUnnamed667() { |
1297 var o = new core.List<core.String>(); | 1297 var o = new core.List<core.String>(); |
1298 o.add("foo"); | 1298 o.add("foo"); |
1299 o.add("foo"); | 1299 o.add("foo"); |
1300 return o; | 1300 return o; |
1301 } | 1301 } |
1302 | 1302 |
1303 checkUnnamed660(core.List<core.String> o) { | 1303 checkUnnamed667(core.List<core.String> o) { |
1304 unittest.expect(o, unittest.hasLength(2)); | 1304 unittest.expect(o, unittest.hasLength(2)); |
1305 unittest.expect(o[0], unittest.equals('foo')); | 1305 unittest.expect(o[0], unittest.equals('foo')); |
1306 unittest.expect(o[1], unittest.equals('foo')); | 1306 unittest.expect(o[1], unittest.equals('foo')); |
1307 } | 1307 } |
1308 | 1308 |
1309 buildUnnamed661() { | 1309 buildUnnamed668() { |
1310 var o = new core.List<core.String>(); | 1310 var o = new core.List<core.String>(); |
1311 o.add("foo"); | 1311 o.add("foo"); |
1312 o.add("foo"); | 1312 o.add("foo"); |
1313 return o; | 1313 return o; |
1314 } | 1314 } |
1315 | 1315 |
1316 checkUnnamed661(core.List<core.String> o) { | 1316 checkUnnamed668(core.List<core.String> o) { |
1317 unittest.expect(o, unittest.hasLength(2)); | 1317 unittest.expect(o, unittest.hasLength(2)); |
1318 unittest.expect(o[0], unittest.equals('foo')); | 1318 unittest.expect(o[0], unittest.equals('foo')); |
1319 unittest.expect(o[1], unittest.equals('foo')); | 1319 unittest.expect(o[1], unittest.equals('foo')); |
1320 } | 1320 } |
1321 | 1321 |
1322 buildUnnamed662() { | 1322 buildUnnamed669() { |
1323 var o = new core.List<core.String>(); | 1323 var o = new core.List<core.String>(); |
1324 o.add("foo"); | 1324 o.add("foo"); |
1325 o.add("foo"); | 1325 o.add("foo"); |
1326 return o; | 1326 return o; |
1327 } | 1327 } |
1328 | 1328 |
1329 checkUnnamed662(core.List<core.String> o) { | 1329 checkUnnamed669(core.List<core.String> o) { |
1330 unittest.expect(o, unittest.hasLength(2)); | 1330 unittest.expect(o, unittest.hasLength(2)); |
1331 unittest.expect(o[0], unittest.equals('foo')); | 1331 unittest.expect(o[0], unittest.equals('foo')); |
1332 unittest.expect(o[1], unittest.equals('foo')); | 1332 unittest.expect(o[1], unittest.equals('foo')); |
1333 } | 1333 } |
1334 | 1334 |
1335 | 1335 |
1336 main() { | 1336 main() { |
1337 unittest.group("obj-schema-Assignment", () { | 1337 unittest.group("obj-schema-Assignment", () { |
1338 unittest.test("to-json--from-json", () { | 1338 unittest.test("to-json--from-json", () { |
1339 var o = buildAssignment(); | 1339 var o = buildAssignment(); |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1862 checkCourse(response); | 1862 checkCourse(response); |
1863 }))); | 1863 }))); |
1864 }); | 1864 }); |
1865 | 1865 |
1866 unittest.test("method--list", () { | 1866 unittest.test("method--list", () { |
1867 | 1867 |
1868 var mock = new HttpServerMock(); | 1868 var mock = new HttpServerMock(); |
1869 api.CoursesResourceApi res = new api.ClassroomApi(mock).courses; | 1869 api.CoursesResourceApi res = new api.ClassroomApi(mock).courses; |
1870 var arg_studentId = "foo"; | 1870 var arg_studentId = "foo"; |
1871 var arg_teacherId = "foo"; | 1871 var arg_teacherId = "foo"; |
1872 var arg_courseStates = buildUnnamed659(); | 1872 var arg_courseStates = buildUnnamed666(); |
1873 var arg_pageSize = 42; | 1873 var arg_pageSize = 42; |
1874 var arg_pageToken = "foo"; | 1874 var arg_pageToken = "foo"; |
1875 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1875 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1876 var path = (req.url).path; | 1876 var path = (req.url).path; |
1877 var pathOffset = 0; | 1877 var pathOffset = 0; |
1878 var index; | 1878 var index; |
1879 var subPart; | 1879 var subPart; |
1880 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1880 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1881 pathOffset += 1; | 1881 pathOffset += 1; |
1882 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("v1/courses")); | 1882 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("v1/courses")); |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2356 res.get(arg_courseId, arg_id).then(unittest.expectAsync(((api.CourseWork r
esponse) { | 2356 res.get(arg_courseId, arg_id).then(unittest.expectAsync(((api.CourseWork r
esponse) { |
2357 checkCourseWork(response); | 2357 checkCourseWork(response); |
2358 }))); | 2358 }))); |
2359 }); | 2359 }); |
2360 | 2360 |
2361 unittest.test("method--list", () { | 2361 unittest.test("method--list", () { |
2362 | 2362 |
2363 var mock = new HttpServerMock(); | 2363 var mock = new HttpServerMock(); |
2364 api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses.
courseWork; | 2364 api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses.
courseWork; |
2365 var arg_courseId = "foo"; | 2365 var arg_courseId = "foo"; |
2366 var arg_courseWorkStates = buildUnnamed660(); | 2366 var arg_courseWorkStates = buildUnnamed667(); |
2367 var arg_orderBy = "foo"; | 2367 var arg_orderBy = "foo"; |
2368 var arg_pageSize = 42; | 2368 var arg_pageSize = 42; |
2369 var arg_pageToken = "foo"; | 2369 var arg_pageToken = "foo"; |
2370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2370 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2371 var path = (req.url).path; | 2371 var path = (req.url).path; |
2372 var pathOffset = 0; | 2372 var pathOffset = 0; |
2373 var index; | 2373 var index; |
2374 var subPart; | 2374 var subPart; |
2375 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2375 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2376 pathOffset += 1; | 2376 pathOffset += 1; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2545 }))); | 2545 }))); |
2546 }); | 2546 }); |
2547 | 2547 |
2548 unittest.test("method--list", () { | 2548 unittest.test("method--list", () { |
2549 | 2549 |
2550 var mock = new HttpServerMock(); | 2550 var mock = new HttpServerMock(); |
2551 api.CoursesCourseWorkStudentSubmissionsResourceApi res = new api.Classroom
Api(mock).courses.courseWork.studentSubmissions; | 2551 api.CoursesCourseWorkStudentSubmissionsResourceApi res = new api.Classroom
Api(mock).courses.courseWork.studentSubmissions; |
2552 var arg_courseId = "foo"; | 2552 var arg_courseId = "foo"; |
2553 var arg_courseWorkId = "foo"; | 2553 var arg_courseWorkId = "foo"; |
2554 var arg_userId = "foo"; | 2554 var arg_userId = "foo"; |
2555 var arg_states = buildUnnamed661(); | 2555 var arg_states = buildUnnamed668(); |
2556 var arg_late = "foo"; | 2556 var arg_late = "foo"; |
2557 var arg_pageSize = 42; | 2557 var arg_pageSize = 42; |
2558 var arg_pageToken = "foo"; | 2558 var arg_pageToken = "foo"; |
2559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2560 var path = (req.url).path; | 2560 var path = (req.url).path; |
2561 var pathOffset = 0; | 2561 var pathOffset = 0; |
2562 var index; | 2562 var index; |
2563 var subPart; | 2563 var subPart; |
2564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2565 pathOffset += 1; | 2565 pathOffset += 1; |
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3828 checkGuardianInvitation(response); | 3828 checkGuardianInvitation(response); |
3829 }))); | 3829 }))); |
3830 }); | 3830 }); |
3831 | 3831 |
3832 unittest.test("method--list", () { | 3832 unittest.test("method--list", () { |
3833 | 3833 |
3834 var mock = new HttpServerMock(); | 3834 var mock = new HttpServerMock(); |
3835 api.UserProfilesGuardianInvitationsResourceApi res = new api.ClassroomApi(
mock).userProfiles.guardianInvitations; | 3835 api.UserProfilesGuardianInvitationsResourceApi res = new api.ClassroomApi(
mock).userProfiles.guardianInvitations; |
3836 var arg_studentId = "foo"; | 3836 var arg_studentId = "foo"; |
3837 var arg_invitedEmailAddress = "foo"; | 3837 var arg_invitedEmailAddress = "foo"; |
3838 var arg_states = buildUnnamed662(); | 3838 var arg_states = buildUnnamed669(); |
3839 var arg_pageToken = "foo"; | 3839 var arg_pageToken = "foo"; |
3840 var arg_pageSize = 42; | 3840 var arg_pageSize = 42; |
3841 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3841 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3842 var path = (req.url).path; | 3842 var path = (req.url).path; |
3843 var pathOffset = 0; | 3843 var pathOffset = 0; |
3844 var index; | 3844 var index; |
3845 var subPart; | 3845 var subPart; |
3846 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3846 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3847 pathOffset += 1; | 3847 pathOffset += 1; |
3848 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v1/userProfiles/")); | 3848 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v1/userProfiles/")); |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4118 res.list(arg_studentId, invitedEmailAddress: arg_invitedEmailAddress, page
Token: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.Li
stGuardiansResponse response) { | 4118 res.list(arg_studentId, invitedEmailAddress: arg_invitedEmailAddress, page
Token: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.Li
stGuardiansResponse response) { |
4119 checkListGuardiansResponse(response); | 4119 checkListGuardiansResponse(response); |
4120 }))); | 4120 }))); |
4121 }); | 4121 }); |
4122 | 4122 |
4123 }); | 4123 }); |
4124 | 4124 |
4125 | 4125 |
4126 } | 4126 } |
4127 | 4127 |
OLD | NEW |