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

Side by Side Diff: generated/googleapis/test/content/v2_test.dart

Issue 595873002: Api roll 1: 2014-09-23 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 3 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.content.v2.test; 1 library googleapis.content.v2.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;
11 import 'package:googleapis/common/common.dart' as common; 11 import 'package:googleapis/common/common.dart' as common;
12 import 'package:googleapis/src/common_internal.dart' as common_internal; 12 import 'package:googleapis/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test; 13 import '../common/common_internal_test.dart' as common_test;
14 14
15 import 'package:googleapis/content/v2.dart' as api; 15 import 'package:googleapis/content/v2.dart' as api;
16 16
17 17
18 18
19 buildUnnamed299() { 19 buildUnnamed322() {
20 var o = new core.List<api.AccountAdwordsLink>(); 20 var o = new core.List<api.AccountAdwordsLink>();
21 o.add(buildAccountAdwordsLink()); 21 o.add(buildAccountAdwordsLink());
22 o.add(buildAccountAdwordsLink()); 22 o.add(buildAccountAdwordsLink());
23 return o; 23 return o;
24 } 24 }
25 25
26 checkUnnamed299(core.List<api.AccountAdwordsLink> o) { 26 checkUnnamed322(core.List<api.AccountAdwordsLink> o) {
27 unittest.expect(o, unittest.hasLength(2)); 27 unittest.expect(o, unittest.hasLength(2));
28 checkAccountAdwordsLink(o[0]); 28 checkAccountAdwordsLink(o[0]);
29 checkAccountAdwordsLink(o[1]); 29 checkAccountAdwordsLink(o[1]);
30 } 30 }
31 31
32 buildUnnamed300() { 32 buildUnnamed323() {
33 var o = new core.List<api.AccountUser>(); 33 var o = new core.List<api.AccountUser>();
34 o.add(buildAccountUser()); 34 o.add(buildAccountUser());
35 o.add(buildAccountUser()); 35 o.add(buildAccountUser());
36 return o; 36 return o;
37 } 37 }
38 38
39 checkUnnamed300(core.List<api.AccountUser> o) { 39 checkUnnamed323(core.List<api.AccountUser> o) {
40 unittest.expect(o, unittest.hasLength(2)); 40 unittest.expect(o, unittest.hasLength(2));
41 checkAccountUser(o[0]); 41 checkAccountUser(o[0]);
42 checkAccountUser(o[1]); 42 checkAccountUser(o[1]);
43 } 43 }
44 44
45 core.int buildCounterAccount = 0; 45 core.int buildCounterAccount = 0;
46 buildAccount() { 46 buildAccount() {
47 var o = new api.Account(); 47 var o = new api.Account();
48 buildCounterAccount++; 48 buildCounterAccount++;
49 if (buildCounterAccount < 3) { 49 if (buildCounterAccount < 3) {
50 o.adultContent = true; 50 o.adultContent = true;
51 o.adwordsLinks = buildUnnamed299(); 51 o.adwordsLinks = buildUnnamed322();
52 o.id = "foo"; 52 o.id = "foo";
53 o.kind = "foo"; 53 o.kind = "foo";
54 o.name = "foo"; 54 o.name = "foo";
55 o.reviewsUrl = "foo"; 55 o.reviewsUrl = "foo";
56 o.sellerId = "foo"; 56 o.sellerId = "foo";
57 o.users = buildUnnamed300(); 57 o.users = buildUnnamed323();
58 o.websiteUrl = "foo"; 58 o.websiteUrl = "foo";
59 } 59 }
60 buildCounterAccount--; 60 buildCounterAccount--;
61 return o; 61 return o;
62 } 62 }
63 63
64 checkAccount(api.Account o) { 64 checkAccount(api.Account o) {
65 buildCounterAccount++; 65 buildCounterAccount++;
66 if (buildCounterAccount < 3) { 66 if (buildCounterAccount < 3) {
67 unittest.expect(o.adultContent, unittest.isTrue); 67 unittest.expect(o.adultContent, unittest.isTrue);
68 checkUnnamed299(o.adwordsLinks); 68 checkUnnamed322(o.adwordsLinks);
69 unittest.expect(o.id, unittest.equals('foo')); 69 unittest.expect(o.id, unittest.equals('foo'));
70 unittest.expect(o.kind, unittest.equals('foo')); 70 unittest.expect(o.kind, unittest.equals('foo'));
71 unittest.expect(o.name, unittest.equals('foo')); 71 unittest.expect(o.name, unittest.equals('foo'));
72 unittest.expect(o.reviewsUrl, unittest.equals('foo')); 72 unittest.expect(o.reviewsUrl, unittest.equals('foo'));
73 unittest.expect(o.sellerId, unittest.equals('foo')); 73 unittest.expect(o.sellerId, unittest.equals('foo'));
74 checkUnnamed300(o.users); 74 checkUnnamed323(o.users);
75 unittest.expect(o.websiteUrl, unittest.equals('foo')); 75 unittest.expect(o.websiteUrl, unittest.equals('foo'));
76 } 76 }
77 buildCounterAccount--; 77 buildCounterAccount--;
78 } 78 }
79 79
80 core.int buildCounterAccountAdwordsLink = 0; 80 core.int buildCounterAccountAdwordsLink = 0;
81 buildAccountAdwordsLink() { 81 buildAccountAdwordsLink() {
82 var o = new api.AccountAdwordsLink(); 82 var o = new api.AccountAdwordsLink();
83 buildCounterAccountAdwordsLink++; 83 buildCounterAccountAdwordsLink++;
84 if (buildCounterAccountAdwordsLink < 3) { 84 if (buildCounterAccountAdwordsLink < 3) {
85 o.adwordsId = "foo"; 85 o.adwordsId = "foo";
86 o.status = "foo"; 86 o.status = "foo";
87 } 87 }
88 buildCounterAccountAdwordsLink--; 88 buildCounterAccountAdwordsLink--;
89 return o; 89 return o;
90 } 90 }
91 91
92 checkAccountAdwordsLink(api.AccountAdwordsLink o) { 92 checkAccountAdwordsLink(api.AccountAdwordsLink o) {
93 buildCounterAccountAdwordsLink++; 93 buildCounterAccountAdwordsLink++;
94 if (buildCounterAccountAdwordsLink < 3) { 94 if (buildCounterAccountAdwordsLink < 3) {
95 unittest.expect(o.adwordsId, unittest.equals('foo')); 95 unittest.expect(o.adwordsId, unittest.equals('foo'));
96 unittest.expect(o.status, unittest.equals('foo')); 96 unittest.expect(o.status, unittest.equals('foo'));
97 } 97 }
98 buildCounterAccountAdwordsLink--; 98 buildCounterAccountAdwordsLink--;
99 } 99 }
100 100
101 buildUnnamed301() { 101 buildUnnamed324() {
102 var o = new core.List<api.AccountStatusDataQualityIssue>(); 102 var o = new core.List<api.AccountStatusDataQualityIssue>();
103 o.add(buildAccountStatusDataQualityIssue()); 103 o.add(buildAccountStatusDataQualityIssue());
104 o.add(buildAccountStatusDataQualityIssue()); 104 o.add(buildAccountStatusDataQualityIssue());
105 return o; 105 return o;
106 } 106 }
107 107
108 checkUnnamed301(core.List<api.AccountStatusDataQualityIssue> o) { 108 checkUnnamed324(core.List<api.AccountStatusDataQualityIssue> o) {
109 unittest.expect(o, unittest.hasLength(2)); 109 unittest.expect(o, unittest.hasLength(2));
110 checkAccountStatusDataQualityIssue(o[0]); 110 checkAccountStatusDataQualityIssue(o[0]);
111 checkAccountStatusDataQualityIssue(o[1]); 111 checkAccountStatusDataQualityIssue(o[1]);
112 } 112 }
113 113
114 core.int buildCounterAccountStatus = 0; 114 core.int buildCounterAccountStatus = 0;
115 buildAccountStatus() { 115 buildAccountStatus() {
116 var o = new api.AccountStatus(); 116 var o = new api.AccountStatus();
117 buildCounterAccountStatus++; 117 buildCounterAccountStatus++;
118 if (buildCounterAccountStatus < 3) { 118 if (buildCounterAccountStatus < 3) {
119 o.accountId = "foo"; 119 o.accountId = "foo";
120 o.dataQualityIssues = buildUnnamed301(); 120 o.dataQualityIssues = buildUnnamed324();
121 o.kind = "foo"; 121 o.kind = "foo";
122 } 122 }
123 buildCounterAccountStatus--; 123 buildCounterAccountStatus--;
124 return o; 124 return o;
125 } 125 }
126 126
127 checkAccountStatus(api.AccountStatus o) { 127 checkAccountStatus(api.AccountStatus o) {
128 buildCounterAccountStatus++; 128 buildCounterAccountStatus++;
129 if (buildCounterAccountStatus < 3) { 129 if (buildCounterAccountStatus < 3) {
130 unittest.expect(o.accountId, unittest.equals('foo')); 130 unittest.expect(o.accountId, unittest.equals('foo'));
131 checkUnnamed301(o.dataQualityIssues); 131 checkUnnamed324(o.dataQualityIssues);
132 unittest.expect(o.kind, unittest.equals('foo')); 132 unittest.expect(o.kind, unittest.equals('foo'));
133 } 133 }
134 buildCounterAccountStatus--; 134 buildCounterAccountStatus--;
135 } 135 }
136 136
137 buildUnnamed302() { 137 buildUnnamed325() {
138 var o = new core.List<api.AccountStatusExampleItem>(); 138 var o = new core.List<api.AccountStatusExampleItem>();
139 o.add(buildAccountStatusExampleItem()); 139 o.add(buildAccountStatusExampleItem());
140 o.add(buildAccountStatusExampleItem()); 140 o.add(buildAccountStatusExampleItem());
141 return o; 141 return o;
142 } 142 }
143 143
144 checkUnnamed302(core.List<api.AccountStatusExampleItem> o) { 144 checkUnnamed325(core.List<api.AccountStatusExampleItem> o) {
145 unittest.expect(o, unittest.hasLength(2)); 145 unittest.expect(o, unittest.hasLength(2));
146 checkAccountStatusExampleItem(o[0]); 146 checkAccountStatusExampleItem(o[0]);
147 checkAccountStatusExampleItem(o[1]); 147 checkAccountStatusExampleItem(o[1]);
148 } 148 }
149 149
150 core.int buildCounterAccountStatusDataQualityIssue = 0; 150 core.int buildCounterAccountStatusDataQualityIssue = 0;
151 buildAccountStatusDataQualityIssue() { 151 buildAccountStatusDataQualityIssue() {
152 var o = new api.AccountStatusDataQualityIssue(); 152 var o = new api.AccountStatusDataQualityIssue();
153 buildCounterAccountStatusDataQualityIssue++; 153 buildCounterAccountStatusDataQualityIssue++;
154 if (buildCounterAccountStatusDataQualityIssue < 3) { 154 if (buildCounterAccountStatusDataQualityIssue < 3) {
155 o.country = "foo"; 155 o.country = "foo";
156 o.displayedValue = "foo"; 156 o.displayedValue = "foo";
157 o.exampleItems = buildUnnamed302(); 157 o.exampleItems = buildUnnamed325();
158 o.id = "foo"; 158 o.id = "foo";
159 o.lastChecked = "foo"; 159 o.lastChecked = "foo";
160 o.numItems = 42; 160 o.numItems = 42;
161 o.severity = "foo"; 161 o.severity = "foo";
162 o.submittedValue = "foo"; 162 o.submittedValue = "foo";
163 } 163 }
164 buildCounterAccountStatusDataQualityIssue--; 164 buildCounterAccountStatusDataQualityIssue--;
165 return o; 165 return o;
166 } 166 }
167 167
168 checkAccountStatusDataQualityIssue(api.AccountStatusDataQualityIssue o) { 168 checkAccountStatusDataQualityIssue(api.AccountStatusDataQualityIssue o) {
169 buildCounterAccountStatusDataQualityIssue++; 169 buildCounterAccountStatusDataQualityIssue++;
170 if (buildCounterAccountStatusDataQualityIssue < 3) { 170 if (buildCounterAccountStatusDataQualityIssue < 3) {
171 unittest.expect(o.country, unittest.equals('foo')); 171 unittest.expect(o.country, unittest.equals('foo'));
172 unittest.expect(o.displayedValue, unittest.equals('foo')); 172 unittest.expect(o.displayedValue, unittest.equals('foo'));
173 checkUnnamed302(o.exampleItems); 173 checkUnnamed325(o.exampleItems);
174 unittest.expect(o.id, unittest.equals('foo')); 174 unittest.expect(o.id, unittest.equals('foo'));
175 unittest.expect(o.lastChecked, unittest.equals('foo')); 175 unittest.expect(o.lastChecked, unittest.equals('foo'));
176 unittest.expect(o.numItems, unittest.equals(42)); 176 unittest.expect(o.numItems, unittest.equals(42));
177 unittest.expect(o.severity, unittest.equals('foo')); 177 unittest.expect(o.severity, unittest.equals('foo'));
178 unittest.expect(o.submittedValue, unittest.equals('foo')); 178 unittest.expect(o.submittedValue, unittest.equals('foo'));
179 } 179 }
180 buildCounterAccountStatusDataQualityIssue--; 180 buildCounterAccountStatusDataQualityIssue--;
181 } 181 }
182 182
183 core.int buildCounterAccountStatusExampleItem = 0; 183 core.int buildCounterAccountStatusExampleItem = 0;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 checkAccountUser(api.AccountUser o) { 222 checkAccountUser(api.AccountUser o) {
223 buildCounterAccountUser++; 223 buildCounterAccountUser++;
224 if (buildCounterAccountUser < 3) { 224 if (buildCounterAccountUser < 3) {
225 unittest.expect(o.admin, unittest.isTrue); 225 unittest.expect(o.admin, unittest.isTrue);
226 unittest.expect(o.emailAddress, unittest.equals('foo')); 226 unittest.expect(o.emailAddress, unittest.equals('foo'));
227 } 227 }
228 buildCounterAccountUser--; 228 buildCounterAccountUser--;
229 } 229 }
230 230
231 buildUnnamed303() { 231 buildUnnamed326() {
232 var o = new core.List<api.AccountsCustomBatchRequestEntry>(); 232 var o = new core.List<api.AccountsCustomBatchRequestEntry>();
233 o.add(buildAccountsCustomBatchRequestEntry()); 233 o.add(buildAccountsCustomBatchRequestEntry());
234 o.add(buildAccountsCustomBatchRequestEntry()); 234 o.add(buildAccountsCustomBatchRequestEntry());
235 return o; 235 return o;
236 } 236 }
237 237
238 checkUnnamed303(core.List<api.AccountsCustomBatchRequestEntry> o) { 238 checkUnnamed326(core.List<api.AccountsCustomBatchRequestEntry> o) {
239 unittest.expect(o, unittest.hasLength(2)); 239 unittest.expect(o, unittest.hasLength(2));
240 checkAccountsCustomBatchRequestEntry(o[0]); 240 checkAccountsCustomBatchRequestEntry(o[0]);
241 checkAccountsCustomBatchRequestEntry(o[1]); 241 checkAccountsCustomBatchRequestEntry(o[1]);
242 } 242 }
243 243
244 core.int buildCounterAccountsCustomBatchRequest = 0; 244 core.int buildCounterAccountsCustomBatchRequest = 0;
245 buildAccountsCustomBatchRequest() { 245 buildAccountsCustomBatchRequest() {
246 var o = new api.AccountsCustomBatchRequest(); 246 var o = new api.AccountsCustomBatchRequest();
247 buildCounterAccountsCustomBatchRequest++; 247 buildCounterAccountsCustomBatchRequest++;
248 if (buildCounterAccountsCustomBatchRequest < 3) { 248 if (buildCounterAccountsCustomBatchRequest < 3) {
249 o.entries = buildUnnamed303(); 249 o.entries = buildUnnamed326();
250 } 250 }
251 buildCounterAccountsCustomBatchRequest--; 251 buildCounterAccountsCustomBatchRequest--;
252 return o; 252 return o;
253 } 253 }
254 254
255 checkAccountsCustomBatchRequest(api.AccountsCustomBatchRequest o) { 255 checkAccountsCustomBatchRequest(api.AccountsCustomBatchRequest o) {
256 buildCounterAccountsCustomBatchRequest++; 256 buildCounterAccountsCustomBatchRequest++;
257 if (buildCounterAccountsCustomBatchRequest < 3) { 257 if (buildCounterAccountsCustomBatchRequest < 3) {
258 checkUnnamed303(o.entries); 258 checkUnnamed326(o.entries);
259 } 259 }
260 buildCounterAccountsCustomBatchRequest--; 260 buildCounterAccountsCustomBatchRequest--;
261 } 261 }
262 262
263 core.int buildCounterAccountsCustomBatchRequestEntry = 0; 263 core.int buildCounterAccountsCustomBatchRequestEntry = 0;
264 buildAccountsCustomBatchRequestEntry() { 264 buildAccountsCustomBatchRequestEntry() {
265 var o = new api.AccountsCustomBatchRequestEntry(); 265 var o = new api.AccountsCustomBatchRequestEntry();
266 buildCounterAccountsCustomBatchRequestEntry++; 266 buildCounterAccountsCustomBatchRequestEntry++;
267 if (buildCounterAccountsCustomBatchRequestEntry < 3) { 267 if (buildCounterAccountsCustomBatchRequestEntry < 3) {
268 o.account = buildAccount(); 268 o.account = buildAccount();
(...skipping 11 matching lines...) Expand all
280 if (buildCounterAccountsCustomBatchRequestEntry < 3) { 280 if (buildCounterAccountsCustomBatchRequestEntry < 3) {
281 checkAccount(o.account); 281 checkAccount(o.account);
282 unittest.expect(o.accountId, unittest.equals('foo')); 282 unittest.expect(o.accountId, unittest.equals('foo'));
283 unittest.expect(o.batchId, unittest.equals(42)); 283 unittest.expect(o.batchId, unittest.equals(42));
284 unittest.expect(o.merchantId, unittest.equals('foo')); 284 unittest.expect(o.merchantId, unittest.equals('foo'));
285 unittest.expect(o.method, unittest.equals('foo')); 285 unittest.expect(o.method, unittest.equals('foo'));
286 } 286 }
287 buildCounterAccountsCustomBatchRequestEntry--; 287 buildCounterAccountsCustomBatchRequestEntry--;
288 } 288 }
289 289
290 buildUnnamed304() { 290 buildUnnamed327() {
291 var o = new core.List<api.AccountsCustomBatchResponseEntry>(); 291 var o = new core.List<api.AccountsCustomBatchResponseEntry>();
292 o.add(buildAccountsCustomBatchResponseEntry()); 292 o.add(buildAccountsCustomBatchResponseEntry());
293 o.add(buildAccountsCustomBatchResponseEntry()); 293 o.add(buildAccountsCustomBatchResponseEntry());
294 return o; 294 return o;
295 } 295 }
296 296
297 checkUnnamed304(core.List<api.AccountsCustomBatchResponseEntry> o) { 297 checkUnnamed327(core.List<api.AccountsCustomBatchResponseEntry> o) {
298 unittest.expect(o, unittest.hasLength(2)); 298 unittest.expect(o, unittest.hasLength(2));
299 checkAccountsCustomBatchResponseEntry(o[0]); 299 checkAccountsCustomBatchResponseEntry(o[0]);
300 checkAccountsCustomBatchResponseEntry(o[1]); 300 checkAccountsCustomBatchResponseEntry(o[1]);
301 } 301 }
302 302
303 core.int buildCounterAccountsCustomBatchResponse = 0; 303 core.int buildCounterAccountsCustomBatchResponse = 0;
304 buildAccountsCustomBatchResponse() { 304 buildAccountsCustomBatchResponse() {
305 var o = new api.AccountsCustomBatchResponse(); 305 var o = new api.AccountsCustomBatchResponse();
306 buildCounterAccountsCustomBatchResponse++; 306 buildCounterAccountsCustomBatchResponse++;
307 if (buildCounterAccountsCustomBatchResponse < 3) { 307 if (buildCounterAccountsCustomBatchResponse < 3) {
308 o.entries = buildUnnamed304(); 308 o.entries = buildUnnamed327();
309 o.kind = "foo"; 309 o.kind = "foo";
310 } 310 }
311 buildCounterAccountsCustomBatchResponse--; 311 buildCounterAccountsCustomBatchResponse--;
312 return o; 312 return o;
313 } 313 }
314 314
315 checkAccountsCustomBatchResponse(api.AccountsCustomBatchResponse o) { 315 checkAccountsCustomBatchResponse(api.AccountsCustomBatchResponse o) {
316 buildCounterAccountsCustomBatchResponse++; 316 buildCounterAccountsCustomBatchResponse++;
317 if (buildCounterAccountsCustomBatchResponse < 3) { 317 if (buildCounterAccountsCustomBatchResponse < 3) {
318 checkUnnamed304(o.entries); 318 checkUnnamed327(o.entries);
319 unittest.expect(o.kind, unittest.equals('foo')); 319 unittest.expect(o.kind, unittest.equals('foo'));
320 } 320 }
321 buildCounterAccountsCustomBatchResponse--; 321 buildCounterAccountsCustomBatchResponse--;
322 } 322 }
323 323
324 core.int buildCounterAccountsCustomBatchResponseEntry = 0; 324 core.int buildCounterAccountsCustomBatchResponseEntry = 0;
325 buildAccountsCustomBatchResponseEntry() { 325 buildAccountsCustomBatchResponseEntry() {
326 var o = new api.AccountsCustomBatchResponseEntry(); 326 var o = new api.AccountsCustomBatchResponseEntry();
327 buildCounterAccountsCustomBatchResponseEntry++; 327 buildCounterAccountsCustomBatchResponseEntry++;
328 if (buildCounterAccountsCustomBatchResponseEntry < 3) { 328 if (buildCounterAccountsCustomBatchResponseEntry < 3) {
(...skipping 10 matching lines...) Expand all
339 buildCounterAccountsCustomBatchResponseEntry++; 339 buildCounterAccountsCustomBatchResponseEntry++;
340 if (buildCounterAccountsCustomBatchResponseEntry < 3) { 340 if (buildCounterAccountsCustomBatchResponseEntry < 3) {
341 checkAccount(o.account); 341 checkAccount(o.account);
342 unittest.expect(o.batchId, unittest.equals(42)); 342 unittest.expect(o.batchId, unittest.equals(42));
343 checkErrors(o.errors); 343 checkErrors(o.errors);
344 unittest.expect(o.kind, unittest.equals('foo')); 344 unittest.expect(o.kind, unittest.equals('foo'));
345 } 345 }
346 buildCounterAccountsCustomBatchResponseEntry--; 346 buildCounterAccountsCustomBatchResponseEntry--;
347 } 347 }
348 348
349 buildUnnamed305() { 349 buildUnnamed328() {
350 var o = new core.List<api.Account>(); 350 var o = new core.List<api.Account>();
351 o.add(buildAccount()); 351 o.add(buildAccount());
352 o.add(buildAccount()); 352 o.add(buildAccount());
353 return o; 353 return o;
354 } 354 }
355 355
356 checkUnnamed305(core.List<api.Account> o) { 356 checkUnnamed328(core.List<api.Account> o) {
357 unittest.expect(o, unittest.hasLength(2)); 357 unittest.expect(o, unittest.hasLength(2));
358 checkAccount(o[0]); 358 checkAccount(o[0]);
359 checkAccount(o[1]); 359 checkAccount(o[1]);
360 } 360 }
361 361
362 core.int buildCounterAccountsListResponse = 0; 362 core.int buildCounterAccountsListResponse = 0;
363 buildAccountsListResponse() { 363 buildAccountsListResponse() {
364 var o = new api.AccountsListResponse(); 364 var o = new api.AccountsListResponse();
365 buildCounterAccountsListResponse++; 365 buildCounterAccountsListResponse++;
366 if (buildCounterAccountsListResponse < 3) { 366 if (buildCounterAccountsListResponse < 3) {
367 o.kind = "foo"; 367 o.kind = "foo";
368 o.nextPageToken = "foo"; 368 o.nextPageToken = "foo";
369 o.resources = buildUnnamed305(); 369 o.resources = buildUnnamed328();
370 } 370 }
371 buildCounterAccountsListResponse--; 371 buildCounterAccountsListResponse--;
372 return o; 372 return o;
373 } 373 }
374 374
375 checkAccountsListResponse(api.AccountsListResponse o) { 375 checkAccountsListResponse(api.AccountsListResponse o) {
376 buildCounterAccountsListResponse++; 376 buildCounterAccountsListResponse++;
377 if (buildCounterAccountsListResponse < 3) { 377 if (buildCounterAccountsListResponse < 3) {
378 unittest.expect(o.kind, unittest.equals('foo')); 378 unittest.expect(o.kind, unittest.equals('foo'));
379 unittest.expect(o.nextPageToken, unittest.equals('foo')); 379 unittest.expect(o.nextPageToken, unittest.equals('foo'));
380 checkUnnamed305(o.resources); 380 checkUnnamed328(o.resources);
381 } 381 }
382 buildCounterAccountsListResponse--; 382 buildCounterAccountsListResponse--;
383 } 383 }
384 384
385 buildUnnamed306() { 385 buildUnnamed329() {
386 var o = new core.List<api.AccountstatusesCustomBatchRequestEntry>(); 386 var o = new core.List<api.AccountstatusesCustomBatchRequestEntry>();
387 o.add(buildAccountstatusesCustomBatchRequestEntry()); 387 o.add(buildAccountstatusesCustomBatchRequestEntry());
388 o.add(buildAccountstatusesCustomBatchRequestEntry()); 388 o.add(buildAccountstatusesCustomBatchRequestEntry());
389 return o; 389 return o;
390 } 390 }
391 391
392 checkUnnamed306(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { 392 checkUnnamed329(core.List<api.AccountstatusesCustomBatchRequestEntry> o) {
393 unittest.expect(o, unittest.hasLength(2)); 393 unittest.expect(o, unittest.hasLength(2));
394 checkAccountstatusesCustomBatchRequestEntry(o[0]); 394 checkAccountstatusesCustomBatchRequestEntry(o[0]);
395 checkAccountstatusesCustomBatchRequestEntry(o[1]); 395 checkAccountstatusesCustomBatchRequestEntry(o[1]);
396 } 396 }
397 397
398 core.int buildCounterAccountstatusesCustomBatchRequest = 0; 398 core.int buildCounterAccountstatusesCustomBatchRequest = 0;
399 buildAccountstatusesCustomBatchRequest() { 399 buildAccountstatusesCustomBatchRequest() {
400 var o = new api.AccountstatusesCustomBatchRequest(); 400 var o = new api.AccountstatusesCustomBatchRequest();
401 buildCounterAccountstatusesCustomBatchRequest++; 401 buildCounterAccountstatusesCustomBatchRequest++;
402 if (buildCounterAccountstatusesCustomBatchRequest < 3) { 402 if (buildCounterAccountstatusesCustomBatchRequest < 3) {
403 o.entries = buildUnnamed306(); 403 o.entries = buildUnnamed329();
404 } 404 }
405 buildCounterAccountstatusesCustomBatchRequest--; 405 buildCounterAccountstatusesCustomBatchRequest--;
406 return o; 406 return o;
407 } 407 }
408 408
409 checkAccountstatusesCustomBatchRequest(api.AccountstatusesCustomBatchRequest o) { 409 checkAccountstatusesCustomBatchRequest(api.AccountstatusesCustomBatchRequest o) {
410 buildCounterAccountstatusesCustomBatchRequest++; 410 buildCounterAccountstatusesCustomBatchRequest++;
411 if (buildCounterAccountstatusesCustomBatchRequest < 3) { 411 if (buildCounterAccountstatusesCustomBatchRequest < 3) {
412 checkUnnamed306(o.entries); 412 checkUnnamed329(o.entries);
413 } 413 }
414 buildCounterAccountstatusesCustomBatchRequest--; 414 buildCounterAccountstatusesCustomBatchRequest--;
415 } 415 }
416 416
417 core.int buildCounterAccountstatusesCustomBatchRequestEntry = 0; 417 core.int buildCounterAccountstatusesCustomBatchRequestEntry = 0;
418 buildAccountstatusesCustomBatchRequestEntry() { 418 buildAccountstatusesCustomBatchRequestEntry() {
419 var o = new api.AccountstatusesCustomBatchRequestEntry(); 419 var o = new api.AccountstatusesCustomBatchRequestEntry();
420 buildCounterAccountstatusesCustomBatchRequestEntry++; 420 buildCounterAccountstatusesCustomBatchRequestEntry++;
421 if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { 421 if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) {
422 o.accountId = "foo"; 422 o.accountId = "foo";
423 o.batchId = 42; 423 o.batchId = 42;
424 o.merchantId = "foo"; 424 o.merchantId = "foo";
425 o.method = "foo"; 425 o.method = "foo";
426 } 426 }
427 buildCounterAccountstatusesCustomBatchRequestEntry--; 427 buildCounterAccountstatusesCustomBatchRequestEntry--;
428 return o; 428 return o;
429 } 429 }
430 430
431 checkAccountstatusesCustomBatchRequestEntry(api.AccountstatusesCustomBatchReques tEntry o) { 431 checkAccountstatusesCustomBatchRequestEntry(api.AccountstatusesCustomBatchReques tEntry o) {
432 buildCounterAccountstatusesCustomBatchRequestEntry++; 432 buildCounterAccountstatusesCustomBatchRequestEntry++;
433 if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { 433 if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) {
434 unittest.expect(o.accountId, unittest.equals('foo')); 434 unittest.expect(o.accountId, unittest.equals('foo'));
435 unittest.expect(o.batchId, unittest.equals(42)); 435 unittest.expect(o.batchId, unittest.equals(42));
436 unittest.expect(o.merchantId, unittest.equals('foo')); 436 unittest.expect(o.merchantId, unittest.equals('foo'));
437 unittest.expect(o.method, unittest.equals('foo')); 437 unittest.expect(o.method, unittest.equals('foo'));
438 } 438 }
439 buildCounterAccountstatusesCustomBatchRequestEntry--; 439 buildCounterAccountstatusesCustomBatchRequestEntry--;
440 } 440 }
441 441
442 buildUnnamed307() { 442 buildUnnamed330() {
443 var o = new core.List<api.AccountstatusesCustomBatchResponseEntry>(); 443 var o = new core.List<api.AccountstatusesCustomBatchResponseEntry>();
444 o.add(buildAccountstatusesCustomBatchResponseEntry()); 444 o.add(buildAccountstatusesCustomBatchResponseEntry());
445 o.add(buildAccountstatusesCustomBatchResponseEntry()); 445 o.add(buildAccountstatusesCustomBatchResponseEntry());
446 return o; 446 return o;
447 } 447 }
448 448
449 checkUnnamed307(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { 449 checkUnnamed330(core.List<api.AccountstatusesCustomBatchResponseEntry> o) {
450 unittest.expect(o, unittest.hasLength(2)); 450 unittest.expect(o, unittest.hasLength(2));
451 checkAccountstatusesCustomBatchResponseEntry(o[0]); 451 checkAccountstatusesCustomBatchResponseEntry(o[0]);
452 checkAccountstatusesCustomBatchResponseEntry(o[1]); 452 checkAccountstatusesCustomBatchResponseEntry(o[1]);
453 } 453 }
454 454
455 core.int buildCounterAccountstatusesCustomBatchResponse = 0; 455 core.int buildCounterAccountstatusesCustomBatchResponse = 0;
456 buildAccountstatusesCustomBatchResponse() { 456 buildAccountstatusesCustomBatchResponse() {
457 var o = new api.AccountstatusesCustomBatchResponse(); 457 var o = new api.AccountstatusesCustomBatchResponse();
458 buildCounterAccountstatusesCustomBatchResponse++; 458 buildCounterAccountstatusesCustomBatchResponse++;
459 if (buildCounterAccountstatusesCustomBatchResponse < 3) { 459 if (buildCounterAccountstatusesCustomBatchResponse < 3) {
460 o.entries = buildUnnamed307(); 460 o.entries = buildUnnamed330();
461 o.kind = "foo"; 461 o.kind = "foo";
462 } 462 }
463 buildCounterAccountstatusesCustomBatchResponse--; 463 buildCounterAccountstatusesCustomBatchResponse--;
464 return o; 464 return o;
465 } 465 }
466 466
467 checkAccountstatusesCustomBatchResponse(api.AccountstatusesCustomBatchResponse o ) { 467 checkAccountstatusesCustomBatchResponse(api.AccountstatusesCustomBatchResponse o ) {
468 buildCounterAccountstatusesCustomBatchResponse++; 468 buildCounterAccountstatusesCustomBatchResponse++;
469 if (buildCounterAccountstatusesCustomBatchResponse < 3) { 469 if (buildCounterAccountstatusesCustomBatchResponse < 3) {
470 checkUnnamed307(o.entries); 470 checkUnnamed330(o.entries);
471 unittest.expect(o.kind, unittest.equals('foo')); 471 unittest.expect(o.kind, unittest.equals('foo'));
472 } 472 }
473 buildCounterAccountstatusesCustomBatchResponse--; 473 buildCounterAccountstatusesCustomBatchResponse--;
474 } 474 }
475 475
476 core.int buildCounterAccountstatusesCustomBatchResponseEntry = 0; 476 core.int buildCounterAccountstatusesCustomBatchResponseEntry = 0;
477 buildAccountstatusesCustomBatchResponseEntry() { 477 buildAccountstatusesCustomBatchResponseEntry() {
478 var o = new api.AccountstatusesCustomBatchResponseEntry(); 478 var o = new api.AccountstatusesCustomBatchResponseEntry();
479 buildCounterAccountstatusesCustomBatchResponseEntry++; 479 buildCounterAccountstatusesCustomBatchResponseEntry++;
480 if (buildCounterAccountstatusesCustomBatchResponseEntry < 3) { 480 if (buildCounterAccountstatusesCustomBatchResponseEntry < 3) {
481 o.accountStatus = buildAccountStatus(); 481 o.accountStatus = buildAccountStatus();
482 o.batchId = 42; 482 o.batchId = 42;
483 o.errors = buildErrors(); 483 o.errors = buildErrors();
484 } 484 }
485 buildCounterAccountstatusesCustomBatchResponseEntry--; 485 buildCounterAccountstatusesCustomBatchResponseEntry--;
486 return o; 486 return o;
487 } 487 }
488 488
489 checkAccountstatusesCustomBatchResponseEntry(api.AccountstatusesCustomBatchRespo nseEntry o) { 489 checkAccountstatusesCustomBatchResponseEntry(api.AccountstatusesCustomBatchRespo nseEntry o) {
490 buildCounterAccountstatusesCustomBatchResponseEntry++; 490 buildCounterAccountstatusesCustomBatchResponseEntry++;
491 if (buildCounterAccountstatusesCustomBatchResponseEntry < 3) { 491 if (buildCounterAccountstatusesCustomBatchResponseEntry < 3) {
492 checkAccountStatus(o.accountStatus); 492 checkAccountStatus(o.accountStatus);
493 unittest.expect(o.batchId, unittest.equals(42)); 493 unittest.expect(o.batchId, unittest.equals(42));
494 checkErrors(o.errors); 494 checkErrors(o.errors);
495 } 495 }
496 buildCounterAccountstatusesCustomBatchResponseEntry--; 496 buildCounterAccountstatusesCustomBatchResponseEntry--;
497 } 497 }
498 498
499 buildUnnamed308() { 499 buildUnnamed331() {
500 var o = new core.List<api.AccountStatus>(); 500 var o = new core.List<api.AccountStatus>();
501 o.add(buildAccountStatus()); 501 o.add(buildAccountStatus());
502 o.add(buildAccountStatus()); 502 o.add(buildAccountStatus());
503 return o; 503 return o;
504 } 504 }
505 505
506 checkUnnamed308(core.List<api.AccountStatus> o) { 506 checkUnnamed331(core.List<api.AccountStatus> o) {
507 unittest.expect(o, unittest.hasLength(2)); 507 unittest.expect(o, unittest.hasLength(2));
508 checkAccountStatus(o[0]); 508 checkAccountStatus(o[0]);
509 checkAccountStatus(o[1]); 509 checkAccountStatus(o[1]);
510 } 510 }
511 511
512 core.int buildCounterAccountstatusesListResponse = 0; 512 core.int buildCounterAccountstatusesListResponse = 0;
513 buildAccountstatusesListResponse() { 513 buildAccountstatusesListResponse() {
514 var o = new api.AccountstatusesListResponse(); 514 var o = new api.AccountstatusesListResponse();
515 buildCounterAccountstatusesListResponse++; 515 buildCounterAccountstatusesListResponse++;
516 if (buildCounterAccountstatusesListResponse < 3) { 516 if (buildCounterAccountstatusesListResponse < 3) {
517 o.kind = "foo"; 517 o.kind = "foo";
518 o.nextPageToken = "foo"; 518 o.nextPageToken = "foo";
519 o.resources = buildUnnamed308(); 519 o.resources = buildUnnamed331();
520 } 520 }
521 buildCounterAccountstatusesListResponse--; 521 buildCounterAccountstatusesListResponse--;
522 return o; 522 return o;
523 } 523 }
524 524
525 checkAccountstatusesListResponse(api.AccountstatusesListResponse o) { 525 checkAccountstatusesListResponse(api.AccountstatusesListResponse o) {
526 buildCounterAccountstatusesListResponse++; 526 buildCounterAccountstatusesListResponse++;
527 if (buildCounterAccountstatusesListResponse < 3) { 527 if (buildCounterAccountstatusesListResponse < 3) {
528 unittest.expect(o.kind, unittest.equals('foo')); 528 unittest.expect(o.kind, unittest.equals('foo'));
529 unittest.expect(o.nextPageToken, unittest.equals('foo')); 529 unittest.expect(o.nextPageToken, unittest.equals('foo'));
530 checkUnnamed308(o.resources); 530 checkUnnamed331(o.resources);
531 } 531 }
532 buildCounterAccountstatusesListResponse--; 532 buildCounterAccountstatusesListResponse--;
533 } 533 }
534 534
535 buildUnnamed309() { 535 buildUnnamed332() {
536 var o = new core.List<core.String>(); 536 var o = new core.List<core.String>();
537 o.add("foo"); 537 o.add("foo");
538 o.add("foo"); 538 o.add("foo");
539 return o; 539 return o;
540 } 540 }
541 541
542 checkUnnamed309(core.List<core.String> o) { 542 checkUnnamed332(core.List<core.String> o) {
543 unittest.expect(o, unittest.hasLength(2)); 543 unittest.expect(o, unittest.hasLength(2));
544 unittest.expect(o[0], unittest.equals('foo')); 544 unittest.expect(o[0], unittest.equals('foo'));
545 unittest.expect(o[1], unittest.equals('foo')); 545 unittest.expect(o[1], unittest.equals('foo'));
546 } 546 }
547 547
548 core.int buildCounterDatafeed = 0; 548 core.int buildCounterDatafeed = 0;
549 buildDatafeed() { 549 buildDatafeed() {
550 var o = new api.Datafeed(); 550 var o = new api.Datafeed();
551 buildCounterDatafeed++; 551 buildCounterDatafeed++;
552 if (buildCounterDatafeed < 3) { 552 if (buildCounterDatafeed < 3) {
553 o.attributeLanguage = "foo"; 553 o.attributeLanguage = "foo";
554 o.contentLanguage = "foo"; 554 o.contentLanguage = "foo";
555 o.contentType = "foo"; 555 o.contentType = "foo";
556 o.fetchSchedule = buildDatafeedFetchSchedule(); 556 o.fetchSchedule = buildDatafeedFetchSchedule();
557 o.fileName = "foo"; 557 o.fileName = "foo";
558 o.format = buildDatafeedFormat(); 558 o.format = buildDatafeedFormat();
559 o.id = "foo"; 559 o.id = "foo";
560 o.intendedDestinations = buildUnnamed309(); 560 o.intendedDestinations = buildUnnamed332();
561 o.kind = "foo"; 561 o.kind = "foo";
562 o.name = "foo"; 562 o.name = "foo";
563 o.targetCountry = "foo"; 563 o.targetCountry = "foo";
564 } 564 }
565 buildCounterDatafeed--; 565 buildCounterDatafeed--;
566 return o; 566 return o;
567 } 567 }
568 568
569 checkDatafeed(api.Datafeed o) { 569 checkDatafeed(api.Datafeed o) {
570 buildCounterDatafeed++; 570 buildCounterDatafeed++;
571 if (buildCounterDatafeed < 3) { 571 if (buildCounterDatafeed < 3) {
572 unittest.expect(o.attributeLanguage, unittest.equals('foo')); 572 unittest.expect(o.attributeLanguage, unittest.equals('foo'));
573 unittest.expect(o.contentLanguage, unittest.equals('foo')); 573 unittest.expect(o.contentLanguage, unittest.equals('foo'));
574 unittest.expect(o.contentType, unittest.equals('foo')); 574 unittest.expect(o.contentType, unittest.equals('foo'));
575 checkDatafeedFetchSchedule(o.fetchSchedule); 575 checkDatafeedFetchSchedule(o.fetchSchedule);
576 unittest.expect(o.fileName, unittest.equals('foo')); 576 unittest.expect(o.fileName, unittest.equals('foo'));
577 checkDatafeedFormat(o.format); 577 checkDatafeedFormat(o.format);
578 unittest.expect(o.id, unittest.equals('foo')); 578 unittest.expect(o.id, unittest.equals('foo'));
579 checkUnnamed309(o.intendedDestinations); 579 checkUnnamed332(o.intendedDestinations);
580 unittest.expect(o.kind, unittest.equals('foo')); 580 unittest.expect(o.kind, unittest.equals('foo'));
581 unittest.expect(o.name, unittest.equals('foo')); 581 unittest.expect(o.name, unittest.equals('foo'));
582 unittest.expect(o.targetCountry, unittest.equals('foo')); 582 unittest.expect(o.targetCountry, unittest.equals('foo'));
583 } 583 }
584 buildCounterDatafeed--; 584 buildCounterDatafeed--;
585 } 585 }
586 586
587 core.int buildCounterDatafeedFetchSchedule = 0; 587 core.int buildCounterDatafeedFetchSchedule = 0;
588 buildDatafeedFetchSchedule() { 588 buildDatafeedFetchSchedule() {
589 var o = new api.DatafeedFetchSchedule(); 589 var o = new api.DatafeedFetchSchedule();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 checkDatafeedFormat(api.DatafeedFormat o) { 631 checkDatafeedFormat(api.DatafeedFormat o) {
632 buildCounterDatafeedFormat++; 632 buildCounterDatafeedFormat++;
633 if (buildCounterDatafeedFormat < 3) { 633 if (buildCounterDatafeedFormat < 3) {
634 unittest.expect(o.columnDelimiter, unittest.equals('foo')); 634 unittest.expect(o.columnDelimiter, unittest.equals('foo'));
635 unittest.expect(o.fileEncoding, unittest.equals('foo')); 635 unittest.expect(o.fileEncoding, unittest.equals('foo'));
636 unittest.expect(o.quotingMode, unittest.equals('foo')); 636 unittest.expect(o.quotingMode, unittest.equals('foo'));
637 } 637 }
638 buildCounterDatafeedFormat--; 638 buildCounterDatafeedFormat--;
639 } 639 }
640 640
641 buildUnnamed310() { 641 buildUnnamed333() {
642 var o = new core.List<api.DatafeedStatusError>(); 642 var o = new core.List<api.DatafeedStatusError>();
643 o.add(buildDatafeedStatusError()); 643 o.add(buildDatafeedStatusError());
644 o.add(buildDatafeedStatusError()); 644 o.add(buildDatafeedStatusError());
645 return o; 645 return o;
646 } 646 }
647 647
648 checkUnnamed310(core.List<api.DatafeedStatusError> o) { 648 checkUnnamed333(core.List<api.DatafeedStatusError> o) {
649 unittest.expect(o, unittest.hasLength(2)); 649 unittest.expect(o, unittest.hasLength(2));
650 checkDatafeedStatusError(o[0]); 650 checkDatafeedStatusError(o[0]);
651 checkDatafeedStatusError(o[1]); 651 checkDatafeedStatusError(o[1]);
652 } 652 }
653 653
654 buildUnnamed311() { 654 buildUnnamed334() {
655 var o = new core.List<api.DatafeedStatusError>(); 655 var o = new core.List<api.DatafeedStatusError>();
656 o.add(buildDatafeedStatusError()); 656 o.add(buildDatafeedStatusError());
657 o.add(buildDatafeedStatusError()); 657 o.add(buildDatafeedStatusError());
658 return o; 658 return o;
659 } 659 }
660 660
661 checkUnnamed311(core.List<api.DatafeedStatusError> o) { 661 checkUnnamed334(core.List<api.DatafeedStatusError> o) {
662 unittest.expect(o, unittest.hasLength(2)); 662 unittest.expect(o, unittest.hasLength(2));
663 checkDatafeedStatusError(o[0]); 663 checkDatafeedStatusError(o[0]);
664 checkDatafeedStatusError(o[1]); 664 checkDatafeedStatusError(o[1]);
665 } 665 }
666 666
667 core.int buildCounterDatafeedStatus = 0; 667 core.int buildCounterDatafeedStatus = 0;
668 buildDatafeedStatus() { 668 buildDatafeedStatus() {
669 var o = new api.DatafeedStatus(); 669 var o = new api.DatafeedStatus();
670 buildCounterDatafeedStatus++; 670 buildCounterDatafeedStatus++;
671 if (buildCounterDatafeedStatus < 3) { 671 if (buildCounterDatafeedStatus < 3) {
672 o.datafeedId = "foo"; 672 o.datafeedId = "foo";
673 o.errors = buildUnnamed310(); 673 o.errors = buildUnnamed333();
674 o.itemsTotal = "foo"; 674 o.itemsTotal = "foo";
675 o.itemsValid = "foo"; 675 o.itemsValid = "foo";
676 o.kind = "foo"; 676 o.kind = "foo";
677 o.processingStatus = "foo"; 677 o.processingStatus = "foo";
678 o.warnings = buildUnnamed311(); 678 o.warnings = buildUnnamed334();
679 } 679 }
680 buildCounterDatafeedStatus--; 680 buildCounterDatafeedStatus--;
681 return o; 681 return o;
682 } 682 }
683 683
684 checkDatafeedStatus(api.DatafeedStatus o) { 684 checkDatafeedStatus(api.DatafeedStatus o) {
685 buildCounterDatafeedStatus++; 685 buildCounterDatafeedStatus++;
686 if (buildCounterDatafeedStatus < 3) { 686 if (buildCounterDatafeedStatus < 3) {
687 unittest.expect(o.datafeedId, unittest.equals('foo')); 687 unittest.expect(o.datafeedId, unittest.equals('foo'));
688 checkUnnamed310(o.errors); 688 checkUnnamed333(o.errors);
689 unittest.expect(o.itemsTotal, unittest.equals('foo')); 689 unittest.expect(o.itemsTotal, unittest.equals('foo'));
690 unittest.expect(o.itemsValid, unittest.equals('foo')); 690 unittest.expect(o.itemsValid, unittest.equals('foo'));
691 unittest.expect(o.kind, unittest.equals('foo')); 691 unittest.expect(o.kind, unittest.equals('foo'));
692 unittest.expect(o.processingStatus, unittest.equals('foo')); 692 unittest.expect(o.processingStatus, unittest.equals('foo'));
693 checkUnnamed311(o.warnings); 693 checkUnnamed334(o.warnings);
694 } 694 }
695 buildCounterDatafeedStatus--; 695 buildCounterDatafeedStatus--;
696 } 696 }
697 697
698 buildUnnamed312() { 698 buildUnnamed335() {
699 var o = new core.List<api.DatafeedStatusExample>(); 699 var o = new core.List<api.DatafeedStatusExample>();
700 o.add(buildDatafeedStatusExample()); 700 o.add(buildDatafeedStatusExample());
701 o.add(buildDatafeedStatusExample()); 701 o.add(buildDatafeedStatusExample());
702 return o; 702 return o;
703 } 703 }
704 704
705 checkUnnamed312(core.List<api.DatafeedStatusExample> o) { 705 checkUnnamed335(core.List<api.DatafeedStatusExample> o) {
706 unittest.expect(o, unittest.hasLength(2)); 706 unittest.expect(o, unittest.hasLength(2));
707 checkDatafeedStatusExample(o[0]); 707 checkDatafeedStatusExample(o[0]);
708 checkDatafeedStatusExample(o[1]); 708 checkDatafeedStatusExample(o[1]);
709 } 709 }
710 710
711 core.int buildCounterDatafeedStatusError = 0; 711 core.int buildCounterDatafeedStatusError = 0;
712 buildDatafeedStatusError() { 712 buildDatafeedStatusError() {
713 var o = new api.DatafeedStatusError(); 713 var o = new api.DatafeedStatusError();
714 buildCounterDatafeedStatusError++; 714 buildCounterDatafeedStatusError++;
715 if (buildCounterDatafeedStatusError < 3) { 715 if (buildCounterDatafeedStatusError < 3) {
716 o.code = "foo"; 716 o.code = "foo";
717 o.count = "foo"; 717 o.count = "foo";
718 o.examples = buildUnnamed312(); 718 o.examples = buildUnnamed335();
719 o.message = "foo"; 719 o.message = "foo";
720 } 720 }
721 buildCounterDatafeedStatusError--; 721 buildCounterDatafeedStatusError--;
722 return o; 722 return o;
723 } 723 }
724 724
725 checkDatafeedStatusError(api.DatafeedStatusError o) { 725 checkDatafeedStatusError(api.DatafeedStatusError o) {
726 buildCounterDatafeedStatusError++; 726 buildCounterDatafeedStatusError++;
727 if (buildCounterDatafeedStatusError < 3) { 727 if (buildCounterDatafeedStatusError < 3) {
728 unittest.expect(o.code, unittest.equals('foo')); 728 unittest.expect(o.code, unittest.equals('foo'));
729 unittest.expect(o.count, unittest.equals('foo')); 729 unittest.expect(o.count, unittest.equals('foo'));
730 checkUnnamed312(o.examples); 730 checkUnnamed335(o.examples);
731 unittest.expect(o.message, unittest.equals('foo')); 731 unittest.expect(o.message, unittest.equals('foo'));
732 } 732 }
733 buildCounterDatafeedStatusError--; 733 buildCounterDatafeedStatusError--;
734 } 734 }
735 735
736 core.int buildCounterDatafeedStatusExample = 0; 736 core.int buildCounterDatafeedStatusExample = 0;
737 buildDatafeedStatusExample() { 737 buildDatafeedStatusExample() {
738 var o = new api.DatafeedStatusExample(); 738 var o = new api.DatafeedStatusExample();
739 buildCounterDatafeedStatusExample++; 739 buildCounterDatafeedStatusExample++;
740 if (buildCounterDatafeedStatusExample < 3) { 740 if (buildCounterDatafeedStatusExample < 3) {
741 o.itemId = "foo"; 741 o.itemId = "foo";
742 o.lineNumber = "foo"; 742 o.lineNumber = "foo";
743 o.value = "foo"; 743 o.value = "foo";
744 } 744 }
745 buildCounterDatafeedStatusExample--; 745 buildCounterDatafeedStatusExample--;
746 return o; 746 return o;
747 } 747 }
748 748
749 checkDatafeedStatusExample(api.DatafeedStatusExample o) { 749 checkDatafeedStatusExample(api.DatafeedStatusExample o) {
750 buildCounterDatafeedStatusExample++; 750 buildCounterDatafeedStatusExample++;
751 if (buildCounterDatafeedStatusExample < 3) { 751 if (buildCounterDatafeedStatusExample < 3) {
752 unittest.expect(o.itemId, unittest.equals('foo')); 752 unittest.expect(o.itemId, unittest.equals('foo'));
753 unittest.expect(o.lineNumber, unittest.equals('foo')); 753 unittest.expect(o.lineNumber, unittest.equals('foo'));
754 unittest.expect(o.value, unittest.equals('foo')); 754 unittest.expect(o.value, unittest.equals('foo'));
755 } 755 }
756 buildCounterDatafeedStatusExample--; 756 buildCounterDatafeedStatusExample--;
757 } 757 }
758 758
759 buildUnnamed313() { 759 buildUnnamed336() {
760 var o = new core.List<api.DatafeedsCustomBatchRequestEntry>(); 760 var o = new core.List<api.DatafeedsCustomBatchRequestEntry>();
761 o.add(buildDatafeedsCustomBatchRequestEntry()); 761 o.add(buildDatafeedsCustomBatchRequestEntry());
762 o.add(buildDatafeedsCustomBatchRequestEntry()); 762 o.add(buildDatafeedsCustomBatchRequestEntry());
763 return o; 763 return o;
764 } 764 }
765 765
766 checkUnnamed313(core.List<api.DatafeedsCustomBatchRequestEntry> o) { 766 checkUnnamed336(core.List<api.DatafeedsCustomBatchRequestEntry> o) {
767 unittest.expect(o, unittest.hasLength(2)); 767 unittest.expect(o, unittest.hasLength(2));
768 checkDatafeedsCustomBatchRequestEntry(o[0]); 768 checkDatafeedsCustomBatchRequestEntry(o[0]);
769 checkDatafeedsCustomBatchRequestEntry(o[1]); 769 checkDatafeedsCustomBatchRequestEntry(o[1]);
770 } 770 }
771 771
772 core.int buildCounterDatafeedsCustomBatchRequest = 0; 772 core.int buildCounterDatafeedsCustomBatchRequest = 0;
773 buildDatafeedsCustomBatchRequest() { 773 buildDatafeedsCustomBatchRequest() {
774 var o = new api.DatafeedsCustomBatchRequest(); 774 var o = new api.DatafeedsCustomBatchRequest();
775 buildCounterDatafeedsCustomBatchRequest++; 775 buildCounterDatafeedsCustomBatchRequest++;
776 if (buildCounterDatafeedsCustomBatchRequest < 3) { 776 if (buildCounterDatafeedsCustomBatchRequest < 3) {
777 o.entries = buildUnnamed313(); 777 o.entries = buildUnnamed336();
778 } 778 }
779 buildCounterDatafeedsCustomBatchRequest--; 779 buildCounterDatafeedsCustomBatchRequest--;
780 return o; 780 return o;
781 } 781 }
782 782
783 checkDatafeedsCustomBatchRequest(api.DatafeedsCustomBatchRequest o) { 783 checkDatafeedsCustomBatchRequest(api.DatafeedsCustomBatchRequest o) {
784 buildCounterDatafeedsCustomBatchRequest++; 784 buildCounterDatafeedsCustomBatchRequest++;
785 if (buildCounterDatafeedsCustomBatchRequest < 3) { 785 if (buildCounterDatafeedsCustomBatchRequest < 3) {
786 checkUnnamed313(o.entries); 786 checkUnnamed336(o.entries);
787 } 787 }
788 buildCounterDatafeedsCustomBatchRequest--; 788 buildCounterDatafeedsCustomBatchRequest--;
789 } 789 }
790 790
791 core.int buildCounterDatafeedsCustomBatchRequestEntry = 0; 791 core.int buildCounterDatafeedsCustomBatchRequestEntry = 0;
792 buildDatafeedsCustomBatchRequestEntry() { 792 buildDatafeedsCustomBatchRequestEntry() {
793 var o = new api.DatafeedsCustomBatchRequestEntry(); 793 var o = new api.DatafeedsCustomBatchRequestEntry();
794 buildCounterDatafeedsCustomBatchRequestEntry++; 794 buildCounterDatafeedsCustomBatchRequestEntry++;
795 if (buildCounterDatafeedsCustomBatchRequestEntry < 3) { 795 if (buildCounterDatafeedsCustomBatchRequestEntry < 3) {
796 o.batchId = 42; 796 o.batchId = 42;
(...skipping 11 matching lines...) Expand all
808 if (buildCounterDatafeedsCustomBatchRequestEntry < 3) { 808 if (buildCounterDatafeedsCustomBatchRequestEntry < 3) {
809 unittest.expect(o.batchId, unittest.equals(42)); 809 unittest.expect(o.batchId, unittest.equals(42));
810 checkDatafeed(o.datafeed); 810 checkDatafeed(o.datafeed);
811 unittest.expect(o.datafeedId, unittest.equals('foo')); 811 unittest.expect(o.datafeedId, unittest.equals('foo'));
812 unittest.expect(o.merchantId, unittest.equals('foo')); 812 unittest.expect(o.merchantId, unittest.equals('foo'));
813 unittest.expect(o.method, unittest.equals('foo')); 813 unittest.expect(o.method, unittest.equals('foo'));
814 } 814 }
815 buildCounterDatafeedsCustomBatchRequestEntry--; 815 buildCounterDatafeedsCustomBatchRequestEntry--;
816 } 816 }
817 817
818 buildUnnamed314() { 818 buildUnnamed337() {
819 var o = new core.List<api.DatafeedsCustomBatchResponseEntry>(); 819 var o = new core.List<api.DatafeedsCustomBatchResponseEntry>();
820 o.add(buildDatafeedsCustomBatchResponseEntry()); 820 o.add(buildDatafeedsCustomBatchResponseEntry());
821 o.add(buildDatafeedsCustomBatchResponseEntry()); 821 o.add(buildDatafeedsCustomBatchResponseEntry());
822 return o; 822 return o;
823 } 823 }
824 824
825 checkUnnamed314(core.List<api.DatafeedsCustomBatchResponseEntry> o) { 825 checkUnnamed337(core.List<api.DatafeedsCustomBatchResponseEntry> o) {
826 unittest.expect(o, unittest.hasLength(2)); 826 unittest.expect(o, unittest.hasLength(2));
827 checkDatafeedsCustomBatchResponseEntry(o[0]); 827 checkDatafeedsCustomBatchResponseEntry(o[0]);
828 checkDatafeedsCustomBatchResponseEntry(o[1]); 828 checkDatafeedsCustomBatchResponseEntry(o[1]);
829 } 829 }
830 830
831 core.int buildCounterDatafeedsCustomBatchResponse = 0; 831 core.int buildCounterDatafeedsCustomBatchResponse = 0;
832 buildDatafeedsCustomBatchResponse() { 832 buildDatafeedsCustomBatchResponse() {
833 var o = new api.DatafeedsCustomBatchResponse(); 833 var o = new api.DatafeedsCustomBatchResponse();
834 buildCounterDatafeedsCustomBatchResponse++; 834 buildCounterDatafeedsCustomBatchResponse++;
835 if (buildCounterDatafeedsCustomBatchResponse < 3) { 835 if (buildCounterDatafeedsCustomBatchResponse < 3) {
836 o.entries = buildUnnamed314(); 836 o.entries = buildUnnamed337();
837 o.kind = "foo"; 837 o.kind = "foo";
838 } 838 }
839 buildCounterDatafeedsCustomBatchResponse--; 839 buildCounterDatafeedsCustomBatchResponse--;
840 return o; 840 return o;
841 } 841 }
842 842
843 checkDatafeedsCustomBatchResponse(api.DatafeedsCustomBatchResponse o) { 843 checkDatafeedsCustomBatchResponse(api.DatafeedsCustomBatchResponse o) {
844 buildCounterDatafeedsCustomBatchResponse++; 844 buildCounterDatafeedsCustomBatchResponse++;
845 if (buildCounterDatafeedsCustomBatchResponse < 3) { 845 if (buildCounterDatafeedsCustomBatchResponse < 3) {
846 checkUnnamed314(o.entries); 846 checkUnnamed337(o.entries);
847 unittest.expect(o.kind, unittest.equals('foo')); 847 unittest.expect(o.kind, unittest.equals('foo'));
848 } 848 }
849 buildCounterDatafeedsCustomBatchResponse--; 849 buildCounterDatafeedsCustomBatchResponse--;
850 } 850 }
851 851
852 core.int buildCounterDatafeedsCustomBatchResponseEntry = 0; 852 core.int buildCounterDatafeedsCustomBatchResponseEntry = 0;
853 buildDatafeedsCustomBatchResponseEntry() { 853 buildDatafeedsCustomBatchResponseEntry() {
854 var o = new api.DatafeedsCustomBatchResponseEntry(); 854 var o = new api.DatafeedsCustomBatchResponseEntry();
855 buildCounterDatafeedsCustomBatchResponseEntry++; 855 buildCounterDatafeedsCustomBatchResponseEntry++;
856 if (buildCounterDatafeedsCustomBatchResponseEntry < 3) { 856 if (buildCounterDatafeedsCustomBatchResponseEntry < 3) {
857 o.batchId = 42; 857 o.batchId = 42;
858 o.datafeed = buildDatafeed(); 858 o.datafeed = buildDatafeed();
859 o.errors = buildErrors(); 859 o.errors = buildErrors();
860 } 860 }
861 buildCounterDatafeedsCustomBatchResponseEntry--; 861 buildCounterDatafeedsCustomBatchResponseEntry--;
862 return o; 862 return o;
863 } 863 }
864 864
865 checkDatafeedsCustomBatchResponseEntry(api.DatafeedsCustomBatchResponseEntry o) { 865 checkDatafeedsCustomBatchResponseEntry(api.DatafeedsCustomBatchResponseEntry o) {
866 buildCounterDatafeedsCustomBatchResponseEntry++; 866 buildCounterDatafeedsCustomBatchResponseEntry++;
867 if (buildCounterDatafeedsCustomBatchResponseEntry < 3) { 867 if (buildCounterDatafeedsCustomBatchResponseEntry < 3) {
868 unittest.expect(o.batchId, unittest.equals(42)); 868 unittest.expect(o.batchId, unittest.equals(42));
869 checkDatafeed(o.datafeed); 869 checkDatafeed(o.datafeed);
870 checkErrors(o.errors); 870 checkErrors(o.errors);
871 } 871 }
872 buildCounterDatafeedsCustomBatchResponseEntry--; 872 buildCounterDatafeedsCustomBatchResponseEntry--;
873 } 873 }
874 874
875 buildUnnamed315() { 875 buildUnnamed338() {
876 var o = new core.List<api.Datafeed>(); 876 var o = new core.List<api.Datafeed>();
877 o.add(buildDatafeed()); 877 o.add(buildDatafeed());
878 o.add(buildDatafeed()); 878 o.add(buildDatafeed());
879 return o; 879 return o;
880 } 880 }
881 881
882 checkUnnamed315(core.List<api.Datafeed> o) { 882 checkUnnamed338(core.List<api.Datafeed> o) {
883 unittest.expect(o, unittest.hasLength(2)); 883 unittest.expect(o, unittest.hasLength(2));
884 checkDatafeed(o[0]); 884 checkDatafeed(o[0]);
885 checkDatafeed(o[1]); 885 checkDatafeed(o[1]);
886 } 886 }
887 887
888 core.int buildCounterDatafeedsListResponse = 0; 888 core.int buildCounterDatafeedsListResponse = 0;
889 buildDatafeedsListResponse() { 889 buildDatafeedsListResponse() {
890 var o = new api.DatafeedsListResponse(); 890 var o = new api.DatafeedsListResponse();
891 buildCounterDatafeedsListResponse++; 891 buildCounterDatafeedsListResponse++;
892 if (buildCounterDatafeedsListResponse < 3) { 892 if (buildCounterDatafeedsListResponse < 3) {
893 o.kind = "foo"; 893 o.kind = "foo";
894 o.resources = buildUnnamed315(); 894 o.resources = buildUnnamed338();
895 } 895 }
896 buildCounterDatafeedsListResponse--; 896 buildCounterDatafeedsListResponse--;
897 return o; 897 return o;
898 } 898 }
899 899
900 checkDatafeedsListResponse(api.DatafeedsListResponse o) { 900 checkDatafeedsListResponse(api.DatafeedsListResponse o) {
901 buildCounterDatafeedsListResponse++; 901 buildCounterDatafeedsListResponse++;
902 if (buildCounterDatafeedsListResponse < 3) { 902 if (buildCounterDatafeedsListResponse < 3) {
903 unittest.expect(o.kind, unittest.equals('foo')); 903 unittest.expect(o.kind, unittest.equals('foo'));
904 checkUnnamed315(o.resources); 904 checkUnnamed338(o.resources);
905 } 905 }
906 buildCounterDatafeedsListResponse--; 906 buildCounterDatafeedsListResponse--;
907 } 907 }
908 908
909 buildUnnamed316() { 909 buildUnnamed339() {
910 var o = new core.List<api.DatafeedstatusesCustomBatchRequestEntry>(); 910 var o = new core.List<api.DatafeedstatusesCustomBatchRequestEntry>();
911 o.add(buildDatafeedstatusesCustomBatchRequestEntry()); 911 o.add(buildDatafeedstatusesCustomBatchRequestEntry());
912 o.add(buildDatafeedstatusesCustomBatchRequestEntry()); 912 o.add(buildDatafeedstatusesCustomBatchRequestEntry());
913 return o; 913 return o;
914 } 914 }
915 915
916 checkUnnamed316(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { 916 checkUnnamed339(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) {
917 unittest.expect(o, unittest.hasLength(2)); 917 unittest.expect(o, unittest.hasLength(2));
918 checkDatafeedstatusesCustomBatchRequestEntry(o[0]); 918 checkDatafeedstatusesCustomBatchRequestEntry(o[0]);
919 checkDatafeedstatusesCustomBatchRequestEntry(o[1]); 919 checkDatafeedstatusesCustomBatchRequestEntry(o[1]);
920 } 920 }
921 921
922 core.int buildCounterDatafeedstatusesCustomBatchRequest = 0; 922 core.int buildCounterDatafeedstatusesCustomBatchRequest = 0;
923 buildDatafeedstatusesCustomBatchRequest() { 923 buildDatafeedstatusesCustomBatchRequest() {
924 var o = new api.DatafeedstatusesCustomBatchRequest(); 924 var o = new api.DatafeedstatusesCustomBatchRequest();
925 buildCounterDatafeedstatusesCustomBatchRequest++; 925 buildCounterDatafeedstatusesCustomBatchRequest++;
926 if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { 926 if (buildCounterDatafeedstatusesCustomBatchRequest < 3) {
927 o.entries = buildUnnamed316(); 927 o.entries = buildUnnamed339();
928 } 928 }
929 buildCounterDatafeedstatusesCustomBatchRequest--; 929 buildCounterDatafeedstatusesCustomBatchRequest--;
930 return o; 930 return o;
931 } 931 }
932 932
933 checkDatafeedstatusesCustomBatchRequest(api.DatafeedstatusesCustomBatchRequest o ) { 933 checkDatafeedstatusesCustomBatchRequest(api.DatafeedstatusesCustomBatchRequest o ) {
934 buildCounterDatafeedstatusesCustomBatchRequest++; 934 buildCounterDatafeedstatusesCustomBatchRequest++;
935 if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { 935 if (buildCounterDatafeedstatusesCustomBatchRequest < 3) {
936 checkUnnamed316(o.entries); 936 checkUnnamed339(o.entries);
937 } 937 }
938 buildCounterDatafeedstatusesCustomBatchRequest--; 938 buildCounterDatafeedstatusesCustomBatchRequest--;
939 } 939 }
940 940
941 core.int buildCounterDatafeedstatusesCustomBatchRequestEntry = 0; 941 core.int buildCounterDatafeedstatusesCustomBatchRequestEntry = 0;
942 buildDatafeedstatusesCustomBatchRequestEntry() { 942 buildDatafeedstatusesCustomBatchRequestEntry() {
943 var o = new api.DatafeedstatusesCustomBatchRequestEntry(); 943 var o = new api.DatafeedstatusesCustomBatchRequestEntry();
944 buildCounterDatafeedstatusesCustomBatchRequestEntry++; 944 buildCounterDatafeedstatusesCustomBatchRequestEntry++;
945 if (buildCounterDatafeedstatusesCustomBatchRequestEntry < 3) { 945 if (buildCounterDatafeedstatusesCustomBatchRequestEntry < 3) {
946 o.batchId = 42; 946 o.batchId = 42;
947 o.datafeedId = "foo"; 947 o.datafeedId = "foo";
948 o.merchantId = "foo"; 948 o.merchantId = "foo";
949 o.method = "foo"; 949 o.method = "foo";
950 } 950 }
951 buildCounterDatafeedstatusesCustomBatchRequestEntry--; 951 buildCounterDatafeedstatusesCustomBatchRequestEntry--;
952 return o; 952 return o;
953 } 953 }
954 954
955 checkDatafeedstatusesCustomBatchRequestEntry(api.DatafeedstatusesCustomBatchRequ estEntry o) { 955 checkDatafeedstatusesCustomBatchRequestEntry(api.DatafeedstatusesCustomBatchRequ estEntry o) {
956 buildCounterDatafeedstatusesCustomBatchRequestEntry++; 956 buildCounterDatafeedstatusesCustomBatchRequestEntry++;
957 if (buildCounterDatafeedstatusesCustomBatchRequestEntry < 3) { 957 if (buildCounterDatafeedstatusesCustomBatchRequestEntry < 3) {
958 unittest.expect(o.batchId, unittest.equals(42)); 958 unittest.expect(o.batchId, unittest.equals(42));
959 unittest.expect(o.datafeedId, unittest.equals('foo')); 959 unittest.expect(o.datafeedId, unittest.equals('foo'));
960 unittest.expect(o.merchantId, unittest.equals('foo')); 960 unittest.expect(o.merchantId, unittest.equals('foo'));
961 unittest.expect(o.method, unittest.equals('foo')); 961 unittest.expect(o.method, unittest.equals('foo'));
962 } 962 }
963 buildCounterDatafeedstatusesCustomBatchRequestEntry--; 963 buildCounterDatafeedstatusesCustomBatchRequestEntry--;
964 } 964 }
965 965
966 buildUnnamed317() { 966 buildUnnamed340() {
967 var o = new core.List<api.DatafeedstatusesCustomBatchResponseEntry>(); 967 var o = new core.List<api.DatafeedstatusesCustomBatchResponseEntry>();
968 o.add(buildDatafeedstatusesCustomBatchResponseEntry()); 968 o.add(buildDatafeedstatusesCustomBatchResponseEntry());
969 o.add(buildDatafeedstatusesCustomBatchResponseEntry()); 969 o.add(buildDatafeedstatusesCustomBatchResponseEntry());
970 return o; 970 return o;
971 } 971 }
972 972
973 checkUnnamed317(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { 973 checkUnnamed340(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) {
974 unittest.expect(o, unittest.hasLength(2)); 974 unittest.expect(o, unittest.hasLength(2));
975 checkDatafeedstatusesCustomBatchResponseEntry(o[0]); 975 checkDatafeedstatusesCustomBatchResponseEntry(o[0]);
976 checkDatafeedstatusesCustomBatchResponseEntry(o[1]); 976 checkDatafeedstatusesCustomBatchResponseEntry(o[1]);
977 } 977 }
978 978
979 core.int buildCounterDatafeedstatusesCustomBatchResponse = 0; 979 core.int buildCounterDatafeedstatusesCustomBatchResponse = 0;
980 buildDatafeedstatusesCustomBatchResponse() { 980 buildDatafeedstatusesCustomBatchResponse() {
981 var o = new api.DatafeedstatusesCustomBatchResponse(); 981 var o = new api.DatafeedstatusesCustomBatchResponse();
982 buildCounterDatafeedstatusesCustomBatchResponse++; 982 buildCounterDatafeedstatusesCustomBatchResponse++;
983 if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { 983 if (buildCounterDatafeedstatusesCustomBatchResponse < 3) {
984 o.entries = buildUnnamed317(); 984 o.entries = buildUnnamed340();
985 o.kind = "foo"; 985 o.kind = "foo";
986 } 986 }
987 buildCounterDatafeedstatusesCustomBatchResponse--; 987 buildCounterDatafeedstatusesCustomBatchResponse--;
988 return o; 988 return o;
989 } 989 }
990 990
991 checkDatafeedstatusesCustomBatchResponse(api.DatafeedstatusesCustomBatchResponse o) { 991 checkDatafeedstatusesCustomBatchResponse(api.DatafeedstatusesCustomBatchResponse o) {
992 buildCounterDatafeedstatusesCustomBatchResponse++; 992 buildCounterDatafeedstatusesCustomBatchResponse++;
993 if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { 993 if (buildCounterDatafeedstatusesCustomBatchResponse < 3) {
994 checkUnnamed317(o.entries); 994 checkUnnamed340(o.entries);
995 unittest.expect(o.kind, unittest.equals('foo')); 995 unittest.expect(o.kind, unittest.equals('foo'));
996 } 996 }
997 buildCounterDatafeedstatusesCustomBatchResponse--; 997 buildCounterDatafeedstatusesCustomBatchResponse--;
998 } 998 }
999 999
1000 core.int buildCounterDatafeedstatusesCustomBatchResponseEntry = 0; 1000 core.int buildCounterDatafeedstatusesCustomBatchResponseEntry = 0;
1001 buildDatafeedstatusesCustomBatchResponseEntry() { 1001 buildDatafeedstatusesCustomBatchResponseEntry() {
1002 var o = new api.DatafeedstatusesCustomBatchResponseEntry(); 1002 var o = new api.DatafeedstatusesCustomBatchResponseEntry();
1003 buildCounterDatafeedstatusesCustomBatchResponseEntry++; 1003 buildCounterDatafeedstatusesCustomBatchResponseEntry++;
1004 if (buildCounterDatafeedstatusesCustomBatchResponseEntry < 3) { 1004 if (buildCounterDatafeedstatusesCustomBatchResponseEntry < 3) {
1005 o.batchId = 42; 1005 o.batchId = 42;
1006 o.datafeedStatus = buildDatafeedStatus(); 1006 o.datafeedStatus = buildDatafeedStatus();
1007 o.errors = buildErrors(); 1007 o.errors = buildErrors();
1008 } 1008 }
1009 buildCounterDatafeedstatusesCustomBatchResponseEntry--; 1009 buildCounterDatafeedstatusesCustomBatchResponseEntry--;
1010 return o; 1010 return o;
1011 } 1011 }
1012 1012
1013 checkDatafeedstatusesCustomBatchResponseEntry(api.DatafeedstatusesCustomBatchRes ponseEntry o) { 1013 checkDatafeedstatusesCustomBatchResponseEntry(api.DatafeedstatusesCustomBatchRes ponseEntry o) {
1014 buildCounterDatafeedstatusesCustomBatchResponseEntry++; 1014 buildCounterDatafeedstatusesCustomBatchResponseEntry++;
1015 if (buildCounterDatafeedstatusesCustomBatchResponseEntry < 3) { 1015 if (buildCounterDatafeedstatusesCustomBatchResponseEntry < 3) {
1016 unittest.expect(o.batchId, unittest.equals(42)); 1016 unittest.expect(o.batchId, unittest.equals(42));
1017 checkDatafeedStatus(o.datafeedStatus); 1017 checkDatafeedStatus(o.datafeedStatus);
1018 checkErrors(o.errors); 1018 checkErrors(o.errors);
1019 } 1019 }
1020 buildCounterDatafeedstatusesCustomBatchResponseEntry--; 1020 buildCounterDatafeedstatusesCustomBatchResponseEntry--;
1021 } 1021 }
1022 1022
1023 buildUnnamed318() { 1023 buildUnnamed341() {
1024 var o = new core.List<api.DatafeedStatus>(); 1024 var o = new core.List<api.DatafeedStatus>();
1025 o.add(buildDatafeedStatus()); 1025 o.add(buildDatafeedStatus());
1026 o.add(buildDatafeedStatus()); 1026 o.add(buildDatafeedStatus());
1027 return o; 1027 return o;
1028 } 1028 }
1029 1029
1030 checkUnnamed318(core.List<api.DatafeedStatus> o) { 1030 checkUnnamed341(core.List<api.DatafeedStatus> o) {
1031 unittest.expect(o, unittest.hasLength(2)); 1031 unittest.expect(o, unittest.hasLength(2));
1032 checkDatafeedStatus(o[0]); 1032 checkDatafeedStatus(o[0]);
1033 checkDatafeedStatus(o[1]); 1033 checkDatafeedStatus(o[1]);
1034 } 1034 }
1035 1035
1036 core.int buildCounterDatafeedstatusesListResponse = 0; 1036 core.int buildCounterDatafeedstatusesListResponse = 0;
1037 buildDatafeedstatusesListResponse() { 1037 buildDatafeedstatusesListResponse() {
1038 var o = new api.DatafeedstatusesListResponse(); 1038 var o = new api.DatafeedstatusesListResponse();
1039 buildCounterDatafeedstatusesListResponse++; 1039 buildCounterDatafeedstatusesListResponse++;
1040 if (buildCounterDatafeedstatusesListResponse < 3) { 1040 if (buildCounterDatafeedstatusesListResponse < 3) {
1041 o.kind = "foo"; 1041 o.kind = "foo";
1042 o.resources = buildUnnamed318(); 1042 o.resources = buildUnnamed341();
1043 } 1043 }
1044 buildCounterDatafeedstatusesListResponse--; 1044 buildCounterDatafeedstatusesListResponse--;
1045 return o; 1045 return o;
1046 } 1046 }
1047 1047
1048 checkDatafeedstatusesListResponse(api.DatafeedstatusesListResponse o) { 1048 checkDatafeedstatusesListResponse(api.DatafeedstatusesListResponse o) {
1049 buildCounterDatafeedstatusesListResponse++; 1049 buildCounterDatafeedstatusesListResponse++;
1050 if (buildCounterDatafeedstatusesListResponse < 3) { 1050 if (buildCounterDatafeedstatusesListResponse < 3) {
1051 unittest.expect(o.kind, unittest.equals('foo')); 1051 unittest.expect(o.kind, unittest.equals('foo'));
1052 checkUnnamed318(o.resources); 1052 checkUnnamed341(o.resources);
1053 } 1053 }
1054 buildCounterDatafeedstatusesListResponse--; 1054 buildCounterDatafeedstatusesListResponse--;
1055 } 1055 }
1056 1056
1057 core.int buildCounterError = 0; 1057 core.int buildCounterError = 0;
1058 buildError() { 1058 buildError() {
1059 var o = new api.Error(); 1059 var o = new api.Error();
1060 buildCounterError++; 1060 buildCounterError++;
1061 if (buildCounterError < 3) { 1061 if (buildCounterError < 3) {
1062 o.domain = "foo"; 1062 o.domain = "foo";
1063 o.message = "foo"; 1063 o.message = "foo";
1064 o.reason = "foo"; 1064 o.reason = "foo";
1065 } 1065 }
1066 buildCounterError--; 1066 buildCounterError--;
1067 return o; 1067 return o;
1068 } 1068 }
1069 1069
1070 checkError(api.Error o) { 1070 checkError(api.Error o) {
1071 buildCounterError++; 1071 buildCounterError++;
1072 if (buildCounterError < 3) { 1072 if (buildCounterError < 3) {
1073 unittest.expect(o.domain, unittest.equals('foo')); 1073 unittest.expect(o.domain, unittest.equals('foo'));
1074 unittest.expect(o.message, unittest.equals('foo')); 1074 unittest.expect(o.message, unittest.equals('foo'));
1075 unittest.expect(o.reason, unittest.equals('foo')); 1075 unittest.expect(o.reason, unittest.equals('foo'));
1076 } 1076 }
1077 buildCounterError--; 1077 buildCounterError--;
1078 } 1078 }
1079 1079
1080 buildUnnamed319() { 1080 buildUnnamed342() {
1081 var o = new core.List<api.Error>(); 1081 var o = new core.List<api.Error>();
1082 o.add(buildError()); 1082 o.add(buildError());
1083 o.add(buildError()); 1083 o.add(buildError());
1084 return o; 1084 return o;
1085 } 1085 }
1086 1086
1087 checkUnnamed319(core.List<api.Error> o) { 1087 checkUnnamed342(core.List<api.Error> o) {
1088 unittest.expect(o, unittest.hasLength(2)); 1088 unittest.expect(o, unittest.hasLength(2));
1089 checkError(o[0]); 1089 checkError(o[0]);
1090 checkError(o[1]); 1090 checkError(o[1]);
1091 } 1091 }
1092 1092
1093 core.int buildCounterErrors = 0; 1093 core.int buildCounterErrors = 0;
1094 buildErrors() { 1094 buildErrors() {
1095 var o = new api.Errors(); 1095 var o = new api.Errors();
1096 buildCounterErrors++; 1096 buildCounterErrors++;
1097 if (buildCounterErrors < 3) { 1097 if (buildCounterErrors < 3) {
1098 o.code = 42; 1098 o.code = 42;
1099 o.errors = buildUnnamed319(); 1099 o.errors = buildUnnamed342();
1100 o.message = "foo"; 1100 o.message = "foo";
1101 } 1101 }
1102 buildCounterErrors--; 1102 buildCounterErrors--;
1103 return o; 1103 return o;
1104 } 1104 }
1105 1105
1106 checkErrors(api.Errors o) { 1106 checkErrors(api.Errors o) {
1107 buildCounterErrors++; 1107 buildCounterErrors++;
1108 if (buildCounterErrors < 3) { 1108 if (buildCounterErrors < 3) {
1109 unittest.expect(o.code, unittest.equals(42)); 1109 unittest.expect(o.code, unittest.equals(42));
1110 checkUnnamed319(o.errors); 1110 checkUnnamed342(o.errors);
1111 unittest.expect(o.message, unittest.equals('foo')); 1111 unittest.expect(o.message, unittest.equals('foo'));
1112 } 1112 }
1113 buildCounterErrors--; 1113 buildCounterErrors--;
1114 } 1114 }
1115 1115
1116 core.int buildCounterInventory = 0; 1116 core.int buildCounterInventory = 0;
1117 buildInventory() { 1117 buildInventory() {
1118 var o = new api.Inventory(); 1118 var o = new api.Inventory();
1119 buildCounterInventory++; 1119 buildCounterInventory++;
1120 if (buildCounterInventory < 3) { 1120 if (buildCounterInventory < 3) {
(...skipping 14 matching lines...) Expand all
1135 unittest.expect(o.availability, unittest.equals('foo')); 1135 unittest.expect(o.availability, unittest.equals('foo'));
1136 unittest.expect(o.kind, unittest.equals('foo')); 1136 unittest.expect(o.kind, unittest.equals('foo'));
1137 checkPrice(o.price); 1137 checkPrice(o.price);
1138 unittest.expect(o.quantity, unittest.equals(42)); 1138 unittest.expect(o.quantity, unittest.equals(42));
1139 checkPrice(o.salePrice); 1139 checkPrice(o.salePrice);
1140 unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); 1140 unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo'));
1141 } 1141 }
1142 buildCounterInventory--; 1142 buildCounterInventory--;
1143 } 1143 }
1144 1144
1145 buildUnnamed320() { 1145 buildUnnamed343() {
1146 var o = new core.List<api.InventoryCustomBatchRequestEntry>(); 1146 var o = new core.List<api.InventoryCustomBatchRequestEntry>();
1147 o.add(buildInventoryCustomBatchRequestEntry()); 1147 o.add(buildInventoryCustomBatchRequestEntry());
1148 o.add(buildInventoryCustomBatchRequestEntry()); 1148 o.add(buildInventoryCustomBatchRequestEntry());
1149 return o; 1149 return o;
1150 } 1150 }
1151 1151
1152 checkUnnamed320(core.List<api.InventoryCustomBatchRequestEntry> o) { 1152 checkUnnamed343(core.List<api.InventoryCustomBatchRequestEntry> o) {
1153 unittest.expect(o, unittest.hasLength(2)); 1153 unittest.expect(o, unittest.hasLength(2));
1154 checkInventoryCustomBatchRequestEntry(o[0]); 1154 checkInventoryCustomBatchRequestEntry(o[0]);
1155 checkInventoryCustomBatchRequestEntry(o[1]); 1155 checkInventoryCustomBatchRequestEntry(o[1]);
1156 } 1156 }
1157 1157
1158 core.int buildCounterInventoryCustomBatchRequest = 0; 1158 core.int buildCounterInventoryCustomBatchRequest = 0;
1159 buildInventoryCustomBatchRequest() { 1159 buildInventoryCustomBatchRequest() {
1160 var o = new api.InventoryCustomBatchRequest(); 1160 var o = new api.InventoryCustomBatchRequest();
1161 buildCounterInventoryCustomBatchRequest++; 1161 buildCounterInventoryCustomBatchRequest++;
1162 if (buildCounterInventoryCustomBatchRequest < 3) { 1162 if (buildCounterInventoryCustomBatchRequest < 3) {
1163 o.entries = buildUnnamed320(); 1163 o.entries = buildUnnamed343();
1164 } 1164 }
1165 buildCounterInventoryCustomBatchRequest--; 1165 buildCounterInventoryCustomBatchRequest--;
1166 return o; 1166 return o;
1167 } 1167 }
1168 1168
1169 checkInventoryCustomBatchRequest(api.InventoryCustomBatchRequest o) { 1169 checkInventoryCustomBatchRequest(api.InventoryCustomBatchRequest o) {
1170 buildCounterInventoryCustomBatchRequest++; 1170 buildCounterInventoryCustomBatchRequest++;
1171 if (buildCounterInventoryCustomBatchRequest < 3) { 1171 if (buildCounterInventoryCustomBatchRequest < 3) {
1172 checkUnnamed320(o.entries); 1172 checkUnnamed343(o.entries);
1173 } 1173 }
1174 buildCounterInventoryCustomBatchRequest--; 1174 buildCounterInventoryCustomBatchRequest--;
1175 } 1175 }
1176 1176
1177 core.int buildCounterInventoryCustomBatchRequestEntry = 0; 1177 core.int buildCounterInventoryCustomBatchRequestEntry = 0;
1178 buildInventoryCustomBatchRequestEntry() { 1178 buildInventoryCustomBatchRequestEntry() {
1179 var o = new api.InventoryCustomBatchRequestEntry(); 1179 var o = new api.InventoryCustomBatchRequestEntry();
1180 buildCounterInventoryCustomBatchRequestEntry++; 1180 buildCounterInventoryCustomBatchRequestEntry++;
1181 if (buildCounterInventoryCustomBatchRequestEntry < 3) { 1181 if (buildCounterInventoryCustomBatchRequestEntry < 3) {
1182 o.batchId = 42; 1182 o.batchId = 42;
(...skipping 11 matching lines...) Expand all
1194 if (buildCounterInventoryCustomBatchRequestEntry < 3) { 1194 if (buildCounterInventoryCustomBatchRequestEntry < 3) {
1195 unittest.expect(o.batchId, unittest.equals(42)); 1195 unittest.expect(o.batchId, unittest.equals(42));
1196 checkInventory(o.inventory); 1196 checkInventory(o.inventory);
1197 unittest.expect(o.merchantId, unittest.equals('foo')); 1197 unittest.expect(o.merchantId, unittest.equals('foo'));
1198 unittest.expect(o.productId, unittest.equals('foo')); 1198 unittest.expect(o.productId, unittest.equals('foo'));
1199 unittest.expect(o.storeCode, unittest.equals('foo')); 1199 unittest.expect(o.storeCode, unittest.equals('foo'));
1200 } 1200 }
1201 buildCounterInventoryCustomBatchRequestEntry--; 1201 buildCounterInventoryCustomBatchRequestEntry--;
1202 } 1202 }
1203 1203
1204 buildUnnamed321() { 1204 buildUnnamed344() {
1205 var o = new core.List<api.InventoryCustomBatchResponseEntry>(); 1205 var o = new core.List<api.InventoryCustomBatchResponseEntry>();
1206 o.add(buildInventoryCustomBatchResponseEntry()); 1206 o.add(buildInventoryCustomBatchResponseEntry());
1207 o.add(buildInventoryCustomBatchResponseEntry()); 1207 o.add(buildInventoryCustomBatchResponseEntry());
1208 return o; 1208 return o;
1209 } 1209 }
1210 1210
1211 checkUnnamed321(core.List<api.InventoryCustomBatchResponseEntry> o) { 1211 checkUnnamed344(core.List<api.InventoryCustomBatchResponseEntry> o) {
1212 unittest.expect(o, unittest.hasLength(2)); 1212 unittest.expect(o, unittest.hasLength(2));
1213 checkInventoryCustomBatchResponseEntry(o[0]); 1213 checkInventoryCustomBatchResponseEntry(o[0]);
1214 checkInventoryCustomBatchResponseEntry(o[1]); 1214 checkInventoryCustomBatchResponseEntry(o[1]);
1215 } 1215 }
1216 1216
1217 core.int buildCounterInventoryCustomBatchResponse = 0; 1217 core.int buildCounterInventoryCustomBatchResponse = 0;
1218 buildInventoryCustomBatchResponse() { 1218 buildInventoryCustomBatchResponse() {
1219 var o = new api.InventoryCustomBatchResponse(); 1219 var o = new api.InventoryCustomBatchResponse();
1220 buildCounterInventoryCustomBatchResponse++; 1220 buildCounterInventoryCustomBatchResponse++;
1221 if (buildCounterInventoryCustomBatchResponse < 3) { 1221 if (buildCounterInventoryCustomBatchResponse < 3) {
1222 o.entries = buildUnnamed321(); 1222 o.entries = buildUnnamed344();
1223 o.kind = "foo"; 1223 o.kind = "foo";
1224 } 1224 }
1225 buildCounterInventoryCustomBatchResponse--; 1225 buildCounterInventoryCustomBatchResponse--;
1226 return o; 1226 return o;
1227 } 1227 }
1228 1228
1229 checkInventoryCustomBatchResponse(api.InventoryCustomBatchResponse o) { 1229 checkInventoryCustomBatchResponse(api.InventoryCustomBatchResponse o) {
1230 buildCounterInventoryCustomBatchResponse++; 1230 buildCounterInventoryCustomBatchResponse++;
1231 if (buildCounterInventoryCustomBatchResponse < 3) { 1231 if (buildCounterInventoryCustomBatchResponse < 3) {
1232 checkUnnamed321(o.entries); 1232 checkUnnamed344(o.entries);
1233 unittest.expect(o.kind, unittest.equals('foo')); 1233 unittest.expect(o.kind, unittest.equals('foo'));
1234 } 1234 }
1235 buildCounterInventoryCustomBatchResponse--; 1235 buildCounterInventoryCustomBatchResponse--;
1236 } 1236 }
1237 1237
1238 core.int buildCounterInventoryCustomBatchResponseEntry = 0; 1238 core.int buildCounterInventoryCustomBatchResponseEntry = 0;
1239 buildInventoryCustomBatchResponseEntry() { 1239 buildInventoryCustomBatchResponseEntry() {
1240 var o = new api.InventoryCustomBatchResponseEntry(); 1240 var o = new api.InventoryCustomBatchResponseEntry();
1241 buildCounterInventoryCustomBatchResponseEntry++; 1241 buildCounterInventoryCustomBatchResponseEntry++;
1242 if (buildCounterInventoryCustomBatchResponseEntry < 3) { 1242 if (buildCounterInventoryCustomBatchResponseEntry < 3) {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1341
1342 checkPrice(api.Price o) { 1342 checkPrice(api.Price o) {
1343 buildCounterPrice++; 1343 buildCounterPrice++;
1344 if (buildCounterPrice < 3) { 1344 if (buildCounterPrice < 3) {
1345 unittest.expect(o.currency, unittest.equals('foo')); 1345 unittest.expect(o.currency, unittest.equals('foo'));
1346 unittest.expect(o.value, unittest.equals('foo')); 1346 unittest.expect(o.value, unittest.equals('foo'));
1347 } 1347 }
1348 buildCounterPrice--; 1348 buildCounterPrice--;
1349 } 1349 }
1350 1350
1351 buildUnnamed322() { 1351 buildUnnamed345() {
1352 var o = new core.List<core.String>(); 1352 var o = new core.List<core.String>();
1353 o.add("foo"); 1353 o.add("foo");
1354 o.add("foo"); 1354 o.add("foo");
1355 return o; 1355 return o;
1356 } 1356 }
1357 1357
1358 checkUnnamed322(core.List<core.String> o) { 1358 checkUnnamed345(core.List<core.String> o) {
1359 unittest.expect(o, unittest.hasLength(2)); 1359 unittest.expect(o, unittest.hasLength(2));
1360 unittest.expect(o[0], unittest.equals('foo')); 1360 unittest.expect(o[0], unittest.equals('foo'));
1361 unittest.expect(o[1], unittest.equals('foo')); 1361 unittest.expect(o[1], unittest.equals('foo'));
1362 } 1362 }
1363 1363
1364 buildUnnamed323() { 1364 buildUnnamed346() {
1365 var o = new core.List<core.String>(); 1365 var o = new core.List<core.String>();
1366 o.add("foo"); 1366 o.add("foo");
1367 o.add("foo"); 1367 o.add("foo");
1368 return o; 1368 return o;
1369 } 1369 }
1370 1370
1371 checkUnnamed323(core.List<core.String> o) { 1371 checkUnnamed346(core.List<core.String> o) {
1372 unittest.expect(o, unittest.hasLength(2)); 1372 unittest.expect(o, unittest.hasLength(2));
1373 unittest.expect(o[0], unittest.equals('foo')); 1373 unittest.expect(o[0], unittest.equals('foo'));
1374 unittest.expect(o[1], unittest.equals('foo')); 1374 unittest.expect(o[1], unittest.equals('foo'));
1375 } 1375 }
1376 1376
1377 buildUnnamed324() { 1377 buildUnnamed347() {
1378 var o = new core.List<api.ProductCustomAttribute>(); 1378 var o = new core.List<api.ProductCustomAttribute>();
1379 o.add(buildProductCustomAttribute()); 1379 o.add(buildProductCustomAttribute());
1380 o.add(buildProductCustomAttribute()); 1380 o.add(buildProductCustomAttribute());
1381 return o; 1381 return o;
1382 } 1382 }
1383 1383
1384 checkUnnamed324(core.List<api.ProductCustomAttribute> o) { 1384 checkUnnamed347(core.List<api.ProductCustomAttribute> o) {
1385 unittest.expect(o, unittest.hasLength(2)); 1385 unittest.expect(o, unittest.hasLength(2));
1386 checkProductCustomAttribute(o[0]); 1386 checkProductCustomAttribute(o[0]);
1387 checkProductCustomAttribute(o[1]); 1387 checkProductCustomAttribute(o[1]);
1388 } 1388 }
1389 1389
1390 buildUnnamed325() { 1390 buildUnnamed348() {
1391 var o = new core.List<api.ProductCustomGroup>(); 1391 var o = new core.List<api.ProductCustomGroup>();
1392 o.add(buildProductCustomGroup()); 1392 o.add(buildProductCustomGroup());
1393 o.add(buildProductCustomGroup()); 1393 o.add(buildProductCustomGroup());
1394 return o; 1394 return o;
1395 } 1395 }
1396 1396
1397 checkUnnamed325(core.List<api.ProductCustomGroup> o) { 1397 checkUnnamed348(core.List<api.ProductCustomGroup> o) {
1398 unittest.expect(o, unittest.hasLength(2)); 1398 unittest.expect(o, unittest.hasLength(2));
1399 checkProductCustomGroup(o[0]); 1399 checkProductCustomGroup(o[0]);
1400 checkProductCustomGroup(o[1]); 1400 checkProductCustomGroup(o[1]);
1401 } 1401 }
1402 1402
1403 buildUnnamed326() { 1403 buildUnnamed349() {
1404 var o = new core.List<api.ProductDestination>(); 1404 var o = new core.List<api.ProductDestination>();
1405 o.add(buildProductDestination()); 1405 o.add(buildProductDestination());
1406 o.add(buildProductDestination()); 1406 o.add(buildProductDestination());
1407 return o; 1407 return o;
1408 } 1408 }
1409 1409
1410 checkUnnamed326(core.List<api.ProductDestination> o) { 1410 checkUnnamed349(core.List<api.ProductDestination> o) {
1411 unittest.expect(o, unittest.hasLength(2)); 1411 unittest.expect(o, unittest.hasLength(2));
1412 checkProductDestination(o[0]); 1412 checkProductDestination(o[0]);
1413 checkProductDestination(o[1]); 1413 checkProductDestination(o[1]);
1414 } 1414 }
1415 1415
1416 buildUnnamed327() { 1416 buildUnnamed350() {
1417 var o = new core.List<api.ProductShipping>(); 1417 var o = new core.List<api.ProductShipping>();
1418 o.add(buildProductShipping()); 1418 o.add(buildProductShipping());
1419 o.add(buildProductShipping()); 1419 o.add(buildProductShipping());
1420 return o; 1420 return o;
1421 } 1421 }
1422 1422
1423 checkUnnamed327(core.List<api.ProductShipping> o) { 1423 checkUnnamed350(core.List<api.ProductShipping> o) {
1424 unittest.expect(o, unittest.hasLength(2)); 1424 unittest.expect(o, unittest.hasLength(2));
1425 checkProductShipping(o[0]); 1425 checkProductShipping(o[0]);
1426 checkProductShipping(o[1]); 1426 checkProductShipping(o[1]);
1427 } 1427 }
1428 1428
1429 buildUnnamed328() { 1429 buildUnnamed351() {
1430 var o = new core.List<core.String>(); 1430 var o = new core.List<core.String>();
1431 o.add("foo"); 1431 o.add("foo");
1432 o.add("foo"); 1432 o.add("foo");
1433 return o; 1433 return o;
1434 } 1434 }
1435 1435
1436 checkUnnamed328(core.List<core.String> o) { 1436 checkUnnamed351(core.List<core.String> o) {
1437 unittest.expect(o, unittest.hasLength(2)); 1437 unittest.expect(o, unittest.hasLength(2));
1438 unittest.expect(o[0], unittest.equals('foo')); 1438 unittest.expect(o[0], unittest.equals('foo'));
1439 unittest.expect(o[1], unittest.equals('foo')); 1439 unittest.expect(o[1], unittest.equals('foo'));
1440 } 1440 }
1441 1441
1442 buildUnnamed329() { 1442 buildUnnamed352() {
1443 var o = new core.List<api.ProductTax>(); 1443 var o = new core.List<api.ProductTax>();
1444 o.add(buildProductTax()); 1444 o.add(buildProductTax());
1445 o.add(buildProductTax()); 1445 o.add(buildProductTax());
1446 return o; 1446 return o;
1447 } 1447 }
1448 1448
1449 checkUnnamed329(core.List<api.ProductTax> o) { 1449 checkUnnamed352(core.List<api.ProductTax> o) {
1450 unittest.expect(o, unittest.hasLength(2)); 1450 unittest.expect(o, unittest.hasLength(2));
1451 checkProductTax(o[0]); 1451 checkProductTax(o[0]);
1452 checkProductTax(o[1]); 1452 checkProductTax(o[1]);
1453 } 1453 }
1454 1454
1455 buildUnnamed330() { 1455 buildUnnamed353() {
1456 var o = new core.List<core.String>(); 1456 var o = new core.List<core.String>();
1457 o.add("foo"); 1457 o.add("foo");
1458 o.add("foo"); 1458 o.add("foo");
1459 return o; 1459 return o;
1460 } 1460 }
1461 1461
1462 checkUnnamed330(core.List<core.String> o) { 1462 checkUnnamed353(core.List<core.String> o) {
1463 unittest.expect(o, unittest.hasLength(2)); 1463 unittest.expect(o, unittest.hasLength(2));
1464 unittest.expect(o[0], unittest.equals('foo')); 1464 unittest.expect(o[0], unittest.equals('foo'));
1465 unittest.expect(o[1], unittest.equals('foo')); 1465 unittest.expect(o[1], unittest.equals('foo'));
1466 } 1466 }
1467 1467
1468 buildUnnamed331() { 1468 buildUnnamed354() {
1469 var o = new core.List<api.Error>(); 1469 var o = new core.List<api.Error>();
1470 o.add(buildError()); 1470 o.add(buildError());
1471 o.add(buildError()); 1471 o.add(buildError());
1472 return o; 1472 return o;
1473 } 1473 }
1474 1474
1475 checkUnnamed331(core.List<api.Error> o) { 1475 checkUnnamed354(core.List<api.Error> o) {
1476 unittest.expect(o, unittest.hasLength(2)); 1476 unittest.expect(o, unittest.hasLength(2));
1477 checkError(o[0]); 1477 checkError(o[0]);
1478 checkError(o[1]); 1478 checkError(o[1]);
1479 } 1479 }
1480 1480
1481 core.int buildCounterProduct = 0; 1481 core.int buildCounterProduct = 0;
1482 buildProduct() { 1482 buildProduct() {
1483 var o = new api.Product(); 1483 var o = new api.Product();
1484 buildCounterProduct++; 1484 buildCounterProduct++;
1485 if (buildCounterProduct < 3) { 1485 if (buildCounterProduct < 3) {
1486 o.additionalImageLinks = buildUnnamed322(); 1486 o.additionalImageLinks = buildUnnamed345();
1487 o.adult = true; 1487 o.adult = true;
1488 o.adwordsGrouping = "foo"; 1488 o.adwordsGrouping = "foo";
1489 o.adwordsLabels = buildUnnamed323(); 1489 o.adwordsLabels = buildUnnamed346();
1490 o.adwordsRedirect = "foo"; 1490 o.adwordsRedirect = "foo";
1491 o.ageGroup = "foo"; 1491 o.ageGroup = "foo";
1492 o.availability = "foo"; 1492 o.availability = "foo";
1493 o.availabilityDate = "foo"; 1493 o.availabilityDate = "foo";
1494 o.brand = "foo"; 1494 o.brand = "foo";
1495 o.channel = "foo"; 1495 o.channel = "foo";
1496 o.color = "foo"; 1496 o.color = "foo";
1497 o.condition = "foo"; 1497 o.condition = "foo";
1498 o.contentLanguage = "foo"; 1498 o.contentLanguage = "foo";
1499 o.customAttributes = buildUnnamed324(); 1499 o.customAttributes = buildUnnamed347();
1500 o.customGroups = buildUnnamed325(); 1500 o.customGroups = buildUnnamed348();
1501 o.customLabel0 = "foo"; 1501 o.customLabel0 = "foo";
1502 o.customLabel1 = "foo"; 1502 o.customLabel1 = "foo";
1503 o.customLabel2 = "foo"; 1503 o.customLabel2 = "foo";
1504 o.customLabel3 = "foo"; 1504 o.customLabel3 = "foo";
1505 o.customLabel4 = "foo"; 1505 o.customLabel4 = "foo";
1506 o.description = "foo"; 1506 o.description = "foo";
1507 o.destinations = buildUnnamed326(); 1507 o.destinations = buildUnnamed349();
1508 o.energyEfficiencyClass = "foo"; 1508 o.energyEfficiencyClass = "foo";
1509 o.expirationDate = "foo"; 1509 o.expirationDate = "foo";
1510 o.gender = "foo"; 1510 o.gender = "foo";
1511 o.googleProductCategory = "foo"; 1511 o.googleProductCategory = "foo";
1512 o.gtin = "foo"; 1512 o.gtin = "foo";
1513 o.id = "foo"; 1513 o.id = "foo";
1514 o.identifierExists = true; 1514 o.identifierExists = true;
1515 o.imageLink = "foo"; 1515 o.imageLink = "foo";
1516 o.installment = buildProductInstallment(); 1516 o.installment = buildProductInstallment();
1517 o.isBundle = true; 1517 o.isBundle = true;
1518 o.itemGroupId = "foo"; 1518 o.itemGroupId = "foo";
1519 o.kind = "foo"; 1519 o.kind = "foo";
1520 o.link = "foo"; 1520 o.link = "foo";
1521 o.loyaltyPoints = buildLoyaltyPoints(); 1521 o.loyaltyPoints = buildLoyaltyPoints();
1522 o.material = "foo"; 1522 o.material = "foo";
1523 o.mobileLink = "foo"; 1523 o.mobileLink = "foo";
1524 o.mpn = "foo"; 1524 o.mpn = "foo";
1525 o.multipack = "foo"; 1525 o.multipack = "foo";
1526 o.offerId = "foo"; 1526 o.offerId = "foo";
1527 o.onlineOnly = true; 1527 o.onlineOnly = true;
1528 o.pattern = "foo"; 1528 o.pattern = "foo";
1529 o.price = buildPrice(); 1529 o.price = buildPrice();
1530 o.productType = "foo"; 1530 o.productType = "foo";
1531 o.salePrice = buildPrice(); 1531 o.salePrice = buildPrice();
1532 o.salePriceEffectiveDate = "foo"; 1532 o.salePriceEffectiveDate = "foo";
1533 o.shipping = buildUnnamed327(); 1533 o.shipping = buildUnnamed350();
1534 o.shippingLabel = "foo"; 1534 o.shippingLabel = "foo";
1535 o.shippingWeight = buildProductShippingWeight(); 1535 o.shippingWeight = buildProductShippingWeight();
1536 o.sizeSystem = "foo"; 1536 o.sizeSystem = "foo";
1537 o.sizeType = "foo"; 1537 o.sizeType = "foo";
1538 o.sizes = buildUnnamed328(); 1538 o.sizes = buildUnnamed351();
1539 o.targetCountry = "foo"; 1539 o.targetCountry = "foo";
1540 o.taxes = buildUnnamed329(); 1540 o.taxes = buildUnnamed352();
1541 o.title = "foo"; 1541 o.title = "foo";
1542 o.unitPricingBaseMeasure = buildProductUnitPricingBaseMeasure(); 1542 o.unitPricingBaseMeasure = buildProductUnitPricingBaseMeasure();
1543 o.unitPricingMeasure = buildProductUnitPricingMeasure(); 1543 o.unitPricingMeasure = buildProductUnitPricingMeasure();
1544 o.validatedDestinations = buildUnnamed330(); 1544 o.validatedDestinations = buildUnnamed353();
1545 o.warnings = buildUnnamed331(); 1545 o.warnings = buildUnnamed354();
1546 } 1546 }
1547 buildCounterProduct--; 1547 buildCounterProduct--;
1548 return o; 1548 return o;
1549 } 1549 }
1550 1550
1551 checkProduct(api.Product o) { 1551 checkProduct(api.Product o) {
1552 buildCounterProduct++; 1552 buildCounterProduct++;
1553 if (buildCounterProduct < 3) { 1553 if (buildCounterProduct < 3) {
1554 checkUnnamed322(o.additionalImageLinks); 1554 checkUnnamed345(o.additionalImageLinks);
1555 unittest.expect(o.adult, unittest.isTrue); 1555 unittest.expect(o.adult, unittest.isTrue);
1556 unittest.expect(o.adwordsGrouping, unittest.equals('foo')); 1556 unittest.expect(o.adwordsGrouping, unittest.equals('foo'));
1557 checkUnnamed323(o.adwordsLabels); 1557 checkUnnamed346(o.adwordsLabels);
1558 unittest.expect(o.adwordsRedirect, unittest.equals('foo')); 1558 unittest.expect(o.adwordsRedirect, unittest.equals('foo'));
1559 unittest.expect(o.ageGroup, unittest.equals('foo')); 1559 unittest.expect(o.ageGroup, unittest.equals('foo'));
1560 unittest.expect(o.availability, unittest.equals('foo')); 1560 unittest.expect(o.availability, unittest.equals('foo'));
1561 unittest.expect(o.availabilityDate, unittest.equals('foo')); 1561 unittest.expect(o.availabilityDate, unittest.equals('foo'));
1562 unittest.expect(o.brand, unittest.equals('foo')); 1562 unittest.expect(o.brand, unittest.equals('foo'));
1563 unittest.expect(o.channel, unittest.equals('foo')); 1563 unittest.expect(o.channel, unittest.equals('foo'));
1564 unittest.expect(o.color, unittest.equals('foo')); 1564 unittest.expect(o.color, unittest.equals('foo'));
1565 unittest.expect(o.condition, unittest.equals('foo')); 1565 unittest.expect(o.condition, unittest.equals('foo'));
1566 unittest.expect(o.contentLanguage, unittest.equals('foo')); 1566 unittest.expect(o.contentLanguage, unittest.equals('foo'));
1567 checkUnnamed324(o.customAttributes); 1567 checkUnnamed347(o.customAttributes);
1568 checkUnnamed325(o.customGroups); 1568 checkUnnamed348(o.customGroups);
1569 unittest.expect(o.customLabel0, unittest.equals('foo')); 1569 unittest.expect(o.customLabel0, unittest.equals('foo'));
1570 unittest.expect(o.customLabel1, unittest.equals('foo')); 1570 unittest.expect(o.customLabel1, unittest.equals('foo'));
1571 unittest.expect(o.customLabel2, unittest.equals('foo')); 1571 unittest.expect(o.customLabel2, unittest.equals('foo'));
1572 unittest.expect(o.customLabel3, unittest.equals('foo')); 1572 unittest.expect(o.customLabel3, unittest.equals('foo'));
1573 unittest.expect(o.customLabel4, unittest.equals('foo')); 1573 unittest.expect(o.customLabel4, unittest.equals('foo'));
1574 unittest.expect(o.description, unittest.equals('foo')); 1574 unittest.expect(o.description, unittest.equals('foo'));
1575 checkUnnamed326(o.destinations); 1575 checkUnnamed349(o.destinations);
1576 unittest.expect(o.energyEfficiencyClass, unittest.equals('foo')); 1576 unittest.expect(o.energyEfficiencyClass, unittest.equals('foo'));
1577 unittest.expect(o.expirationDate, unittest.equals('foo')); 1577 unittest.expect(o.expirationDate, unittest.equals('foo'));
1578 unittest.expect(o.gender, unittest.equals('foo')); 1578 unittest.expect(o.gender, unittest.equals('foo'));
1579 unittest.expect(o.googleProductCategory, unittest.equals('foo')); 1579 unittest.expect(o.googleProductCategory, unittest.equals('foo'));
1580 unittest.expect(o.gtin, unittest.equals('foo')); 1580 unittest.expect(o.gtin, unittest.equals('foo'));
1581 unittest.expect(o.id, unittest.equals('foo')); 1581 unittest.expect(o.id, unittest.equals('foo'));
1582 unittest.expect(o.identifierExists, unittest.isTrue); 1582 unittest.expect(o.identifierExists, unittest.isTrue);
1583 unittest.expect(o.imageLink, unittest.equals('foo')); 1583 unittest.expect(o.imageLink, unittest.equals('foo'));
1584 checkProductInstallment(o.installment); 1584 checkProductInstallment(o.installment);
1585 unittest.expect(o.isBundle, unittest.isTrue); 1585 unittest.expect(o.isBundle, unittest.isTrue);
1586 unittest.expect(o.itemGroupId, unittest.equals('foo')); 1586 unittest.expect(o.itemGroupId, unittest.equals('foo'));
1587 unittest.expect(o.kind, unittest.equals('foo')); 1587 unittest.expect(o.kind, unittest.equals('foo'));
1588 unittest.expect(o.link, unittest.equals('foo')); 1588 unittest.expect(o.link, unittest.equals('foo'));
1589 checkLoyaltyPoints(o.loyaltyPoints); 1589 checkLoyaltyPoints(o.loyaltyPoints);
1590 unittest.expect(o.material, unittest.equals('foo')); 1590 unittest.expect(o.material, unittest.equals('foo'));
1591 unittest.expect(o.mobileLink, unittest.equals('foo')); 1591 unittest.expect(o.mobileLink, unittest.equals('foo'));
1592 unittest.expect(o.mpn, unittest.equals('foo')); 1592 unittest.expect(o.mpn, unittest.equals('foo'));
1593 unittest.expect(o.multipack, unittest.equals('foo')); 1593 unittest.expect(o.multipack, unittest.equals('foo'));
1594 unittest.expect(o.offerId, unittest.equals('foo')); 1594 unittest.expect(o.offerId, unittest.equals('foo'));
1595 unittest.expect(o.onlineOnly, unittest.isTrue); 1595 unittest.expect(o.onlineOnly, unittest.isTrue);
1596 unittest.expect(o.pattern, unittest.equals('foo')); 1596 unittest.expect(o.pattern, unittest.equals('foo'));
1597 checkPrice(o.price); 1597 checkPrice(o.price);
1598 unittest.expect(o.productType, unittest.equals('foo')); 1598 unittest.expect(o.productType, unittest.equals('foo'));
1599 checkPrice(o.salePrice); 1599 checkPrice(o.salePrice);
1600 unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); 1600 unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo'));
1601 checkUnnamed327(o.shipping); 1601 checkUnnamed350(o.shipping);
1602 unittest.expect(o.shippingLabel, unittest.equals('foo')); 1602 unittest.expect(o.shippingLabel, unittest.equals('foo'));
1603 checkProductShippingWeight(o.shippingWeight); 1603 checkProductShippingWeight(o.shippingWeight);
1604 unittest.expect(o.sizeSystem, unittest.equals('foo')); 1604 unittest.expect(o.sizeSystem, unittest.equals('foo'));
1605 unittest.expect(o.sizeType, unittest.equals('foo')); 1605 unittest.expect(o.sizeType, unittest.equals('foo'));
1606 checkUnnamed328(o.sizes); 1606 checkUnnamed351(o.sizes);
1607 unittest.expect(o.targetCountry, unittest.equals('foo')); 1607 unittest.expect(o.targetCountry, unittest.equals('foo'));
1608 checkUnnamed329(o.taxes); 1608 checkUnnamed352(o.taxes);
1609 unittest.expect(o.title, unittest.equals('foo')); 1609 unittest.expect(o.title, unittest.equals('foo'));
1610 checkProductUnitPricingBaseMeasure(o.unitPricingBaseMeasure); 1610 checkProductUnitPricingBaseMeasure(o.unitPricingBaseMeasure);
1611 checkProductUnitPricingMeasure(o.unitPricingMeasure); 1611 checkProductUnitPricingMeasure(o.unitPricingMeasure);
1612 checkUnnamed330(o.validatedDestinations); 1612 checkUnnamed353(o.validatedDestinations);
1613 checkUnnamed331(o.warnings); 1613 checkUnnamed354(o.warnings);
1614 } 1614 }
1615 buildCounterProduct--; 1615 buildCounterProduct--;
1616 } 1616 }
1617 1617
1618 core.int buildCounterProductCustomAttribute = 0; 1618 core.int buildCounterProductCustomAttribute = 0;
1619 buildProductCustomAttribute() { 1619 buildProductCustomAttribute() {
1620 var o = new api.ProductCustomAttribute(); 1620 var o = new api.ProductCustomAttribute();
1621 buildCounterProductCustomAttribute++; 1621 buildCounterProductCustomAttribute++;
1622 if (buildCounterProductCustomAttribute < 3) { 1622 if (buildCounterProductCustomAttribute < 3) {
1623 o.name = "foo"; 1623 o.name = "foo";
1624 o.type = "foo"; 1624 o.type = "foo";
1625 o.unit = "foo"; 1625 o.unit = "foo";
1626 o.value = "foo"; 1626 o.value = "foo";
1627 } 1627 }
1628 buildCounterProductCustomAttribute--; 1628 buildCounterProductCustomAttribute--;
1629 return o; 1629 return o;
1630 } 1630 }
1631 1631
1632 checkProductCustomAttribute(api.ProductCustomAttribute o) { 1632 checkProductCustomAttribute(api.ProductCustomAttribute o) {
1633 buildCounterProductCustomAttribute++; 1633 buildCounterProductCustomAttribute++;
1634 if (buildCounterProductCustomAttribute < 3) { 1634 if (buildCounterProductCustomAttribute < 3) {
1635 unittest.expect(o.name, unittest.equals('foo')); 1635 unittest.expect(o.name, unittest.equals('foo'));
1636 unittest.expect(o.type, unittest.equals('foo')); 1636 unittest.expect(o.type, unittest.equals('foo'));
1637 unittest.expect(o.unit, unittest.equals('foo')); 1637 unittest.expect(o.unit, unittest.equals('foo'));
1638 unittest.expect(o.value, unittest.equals('foo')); 1638 unittest.expect(o.value, unittest.equals('foo'));
1639 } 1639 }
1640 buildCounterProductCustomAttribute--; 1640 buildCounterProductCustomAttribute--;
1641 } 1641 }
1642 1642
1643 buildUnnamed332() { 1643 buildUnnamed355() {
1644 var o = new core.List<api.ProductCustomAttribute>(); 1644 var o = new core.List<api.ProductCustomAttribute>();
1645 o.add(buildProductCustomAttribute()); 1645 o.add(buildProductCustomAttribute());
1646 o.add(buildProductCustomAttribute()); 1646 o.add(buildProductCustomAttribute());
1647 return o; 1647 return o;
1648 } 1648 }
1649 1649
1650 checkUnnamed332(core.List<api.ProductCustomAttribute> o) { 1650 checkUnnamed355(core.List<api.ProductCustomAttribute> o) {
1651 unittest.expect(o, unittest.hasLength(2)); 1651 unittest.expect(o, unittest.hasLength(2));
1652 checkProductCustomAttribute(o[0]); 1652 checkProductCustomAttribute(o[0]);
1653 checkProductCustomAttribute(o[1]); 1653 checkProductCustomAttribute(o[1]);
1654 } 1654 }
1655 1655
1656 core.int buildCounterProductCustomGroup = 0; 1656 core.int buildCounterProductCustomGroup = 0;
1657 buildProductCustomGroup() { 1657 buildProductCustomGroup() {
1658 var o = new api.ProductCustomGroup(); 1658 var o = new api.ProductCustomGroup();
1659 buildCounterProductCustomGroup++; 1659 buildCounterProductCustomGroup++;
1660 if (buildCounterProductCustomGroup < 3) { 1660 if (buildCounterProductCustomGroup < 3) {
1661 o.attributes = buildUnnamed332(); 1661 o.attributes = buildUnnamed355();
1662 o.name = "foo"; 1662 o.name = "foo";
1663 } 1663 }
1664 buildCounterProductCustomGroup--; 1664 buildCounterProductCustomGroup--;
1665 return o; 1665 return o;
1666 } 1666 }
1667 1667
1668 checkProductCustomGroup(api.ProductCustomGroup o) { 1668 checkProductCustomGroup(api.ProductCustomGroup o) {
1669 buildCounterProductCustomGroup++; 1669 buildCounterProductCustomGroup++;
1670 if (buildCounterProductCustomGroup < 3) { 1670 if (buildCounterProductCustomGroup < 3) {
1671 checkUnnamed332(o.attributes); 1671 checkUnnamed355(o.attributes);
1672 unittest.expect(o.name, unittest.equals('foo')); 1672 unittest.expect(o.name, unittest.equals('foo'));
1673 } 1673 }
1674 buildCounterProductCustomGroup--; 1674 buildCounterProductCustomGroup--;
1675 } 1675 }
1676 1676
1677 core.int buildCounterProductDestination = 0; 1677 core.int buildCounterProductDestination = 0;
1678 buildProductDestination() { 1678 buildProductDestination() {
1679 var o = new api.ProductDestination(); 1679 var o = new api.ProductDestination();
1680 buildCounterProductDestination++; 1680 buildCounterProductDestination++;
1681 if (buildCounterProductDestination < 3) { 1681 if (buildCounterProductDestination < 3) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 1761
1762 checkProductShippingWeight(api.ProductShippingWeight o) { 1762 checkProductShippingWeight(api.ProductShippingWeight o) {
1763 buildCounterProductShippingWeight++; 1763 buildCounterProductShippingWeight++;
1764 if (buildCounterProductShippingWeight < 3) { 1764 if (buildCounterProductShippingWeight < 3) {
1765 unittest.expect(o.unit, unittest.equals('foo')); 1765 unittest.expect(o.unit, unittest.equals('foo'));
1766 unittest.expect(o.value, unittest.equals(42.0)); 1766 unittest.expect(o.value, unittest.equals(42.0));
1767 } 1767 }
1768 buildCounterProductShippingWeight--; 1768 buildCounterProductShippingWeight--;
1769 } 1769 }
1770 1770
1771 buildUnnamed333() { 1771 buildUnnamed356() {
1772 var o = new core.List<api.ProductStatusDataQualityIssue>(); 1772 var o = new core.List<api.ProductStatusDataQualityIssue>();
1773 o.add(buildProductStatusDataQualityIssue()); 1773 o.add(buildProductStatusDataQualityIssue());
1774 o.add(buildProductStatusDataQualityIssue()); 1774 o.add(buildProductStatusDataQualityIssue());
1775 return o; 1775 return o;
1776 } 1776 }
1777 1777
1778 checkUnnamed333(core.List<api.ProductStatusDataQualityIssue> o) { 1778 checkUnnamed356(core.List<api.ProductStatusDataQualityIssue> o) {
1779 unittest.expect(o, unittest.hasLength(2)); 1779 unittest.expect(o, unittest.hasLength(2));
1780 checkProductStatusDataQualityIssue(o[0]); 1780 checkProductStatusDataQualityIssue(o[0]);
1781 checkProductStatusDataQualityIssue(o[1]); 1781 checkProductStatusDataQualityIssue(o[1]);
1782 } 1782 }
1783 1783
1784 buildUnnamed334() { 1784 buildUnnamed357() {
1785 var o = new core.List<api.ProductStatusDestinationStatus>(); 1785 var o = new core.List<api.ProductStatusDestinationStatus>();
1786 o.add(buildProductStatusDestinationStatus()); 1786 o.add(buildProductStatusDestinationStatus());
1787 o.add(buildProductStatusDestinationStatus()); 1787 o.add(buildProductStatusDestinationStatus());
1788 return o; 1788 return o;
1789 } 1789 }
1790 1790
1791 checkUnnamed334(core.List<api.ProductStatusDestinationStatus> o) { 1791 checkUnnamed357(core.List<api.ProductStatusDestinationStatus> o) {
1792 unittest.expect(o, unittest.hasLength(2)); 1792 unittest.expect(o, unittest.hasLength(2));
1793 checkProductStatusDestinationStatus(o[0]); 1793 checkProductStatusDestinationStatus(o[0]);
1794 checkProductStatusDestinationStatus(o[1]); 1794 checkProductStatusDestinationStatus(o[1]);
1795 } 1795 }
1796 1796
1797 core.int buildCounterProductStatus = 0; 1797 core.int buildCounterProductStatus = 0;
1798 buildProductStatus() { 1798 buildProductStatus() {
1799 var o = new api.ProductStatus(); 1799 var o = new api.ProductStatus();
1800 buildCounterProductStatus++; 1800 buildCounterProductStatus++;
1801 if (buildCounterProductStatus < 3) { 1801 if (buildCounterProductStatus < 3) {
1802 o.dataQualityIssues = buildUnnamed333(); 1802 o.dataQualityIssues = buildUnnamed356();
1803 o.destinationStatuses = buildUnnamed334(); 1803 o.destinationStatuses = buildUnnamed357();
1804 o.kind = "foo"; 1804 o.kind = "foo";
1805 o.link = "foo"; 1805 o.link = "foo";
1806 o.productId = "foo"; 1806 o.productId = "foo";
1807 o.title = "foo"; 1807 o.title = "foo";
1808 } 1808 }
1809 buildCounterProductStatus--; 1809 buildCounterProductStatus--;
1810 return o; 1810 return o;
1811 } 1811 }
1812 1812
1813 checkProductStatus(api.ProductStatus o) { 1813 checkProductStatus(api.ProductStatus o) {
1814 buildCounterProductStatus++; 1814 buildCounterProductStatus++;
1815 if (buildCounterProductStatus < 3) { 1815 if (buildCounterProductStatus < 3) {
1816 checkUnnamed333(o.dataQualityIssues); 1816 checkUnnamed356(o.dataQualityIssues);
1817 checkUnnamed334(o.destinationStatuses); 1817 checkUnnamed357(o.destinationStatuses);
1818 unittest.expect(o.kind, unittest.equals('foo')); 1818 unittest.expect(o.kind, unittest.equals('foo'));
1819 unittest.expect(o.link, unittest.equals('foo')); 1819 unittest.expect(o.link, unittest.equals('foo'));
1820 unittest.expect(o.productId, unittest.equals('foo')); 1820 unittest.expect(o.productId, unittest.equals('foo'));
1821 unittest.expect(o.title, unittest.equals('foo')); 1821 unittest.expect(o.title, unittest.equals('foo'));
1822 } 1822 }
1823 buildCounterProductStatus--; 1823 buildCounterProductStatus--;
1824 } 1824 }
1825 1825
1826 core.int buildCounterProductStatusDataQualityIssue = 0; 1826 core.int buildCounterProductStatusDataQualityIssue = 0;
1827 buildProductStatusDataQualityIssue() { 1827 buildProductStatusDataQualityIssue() {
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 1941
1942 checkProductUnitPricingMeasure(api.ProductUnitPricingMeasure o) { 1942 checkProductUnitPricingMeasure(api.ProductUnitPricingMeasure o) {
1943 buildCounterProductUnitPricingMeasure++; 1943 buildCounterProductUnitPricingMeasure++;
1944 if (buildCounterProductUnitPricingMeasure < 3) { 1944 if (buildCounterProductUnitPricingMeasure < 3) {
1945 unittest.expect(o.unit, unittest.equals('foo')); 1945 unittest.expect(o.unit, unittest.equals('foo'));
1946 unittest.expect(o.value, unittest.equals(42.0)); 1946 unittest.expect(o.value, unittest.equals(42.0));
1947 } 1947 }
1948 buildCounterProductUnitPricingMeasure--; 1948 buildCounterProductUnitPricingMeasure--;
1949 } 1949 }
1950 1950
1951 buildUnnamed335() { 1951 buildUnnamed358() {
1952 var o = new core.List<api.ProductsCustomBatchRequestEntry>(); 1952 var o = new core.List<api.ProductsCustomBatchRequestEntry>();
1953 o.add(buildProductsCustomBatchRequestEntry()); 1953 o.add(buildProductsCustomBatchRequestEntry());
1954 o.add(buildProductsCustomBatchRequestEntry()); 1954 o.add(buildProductsCustomBatchRequestEntry());
1955 return o; 1955 return o;
1956 } 1956 }
1957 1957
1958 checkUnnamed335(core.List<api.ProductsCustomBatchRequestEntry> o) { 1958 checkUnnamed358(core.List<api.ProductsCustomBatchRequestEntry> o) {
1959 unittest.expect(o, unittest.hasLength(2)); 1959 unittest.expect(o, unittest.hasLength(2));
1960 checkProductsCustomBatchRequestEntry(o[0]); 1960 checkProductsCustomBatchRequestEntry(o[0]);
1961 checkProductsCustomBatchRequestEntry(o[1]); 1961 checkProductsCustomBatchRequestEntry(o[1]);
1962 } 1962 }
1963 1963
1964 core.int buildCounterProductsCustomBatchRequest = 0; 1964 core.int buildCounterProductsCustomBatchRequest = 0;
1965 buildProductsCustomBatchRequest() { 1965 buildProductsCustomBatchRequest() {
1966 var o = new api.ProductsCustomBatchRequest(); 1966 var o = new api.ProductsCustomBatchRequest();
1967 buildCounterProductsCustomBatchRequest++; 1967 buildCounterProductsCustomBatchRequest++;
1968 if (buildCounterProductsCustomBatchRequest < 3) { 1968 if (buildCounterProductsCustomBatchRequest < 3) {
1969 o.entries = buildUnnamed335(); 1969 o.entries = buildUnnamed358();
1970 } 1970 }
1971 buildCounterProductsCustomBatchRequest--; 1971 buildCounterProductsCustomBatchRequest--;
1972 return o; 1972 return o;
1973 } 1973 }
1974 1974
1975 checkProductsCustomBatchRequest(api.ProductsCustomBatchRequest o) { 1975 checkProductsCustomBatchRequest(api.ProductsCustomBatchRequest o) {
1976 buildCounterProductsCustomBatchRequest++; 1976 buildCounterProductsCustomBatchRequest++;
1977 if (buildCounterProductsCustomBatchRequest < 3) { 1977 if (buildCounterProductsCustomBatchRequest < 3) {
1978 checkUnnamed335(o.entries); 1978 checkUnnamed358(o.entries);
1979 } 1979 }
1980 buildCounterProductsCustomBatchRequest--; 1980 buildCounterProductsCustomBatchRequest--;
1981 } 1981 }
1982 1982
1983 core.int buildCounterProductsCustomBatchRequestEntry = 0; 1983 core.int buildCounterProductsCustomBatchRequestEntry = 0;
1984 buildProductsCustomBatchRequestEntry() { 1984 buildProductsCustomBatchRequestEntry() {
1985 var o = new api.ProductsCustomBatchRequestEntry(); 1985 var o = new api.ProductsCustomBatchRequestEntry();
1986 buildCounterProductsCustomBatchRequestEntry++; 1986 buildCounterProductsCustomBatchRequestEntry++;
1987 if (buildCounterProductsCustomBatchRequestEntry < 3) { 1987 if (buildCounterProductsCustomBatchRequestEntry < 3) {
1988 o.batchId = 42; 1988 o.batchId = 42;
(...skipping 11 matching lines...) Expand all
2000 if (buildCounterProductsCustomBatchRequestEntry < 3) { 2000 if (buildCounterProductsCustomBatchRequestEntry < 3) {
2001 unittest.expect(o.batchId, unittest.equals(42)); 2001 unittest.expect(o.batchId, unittest.equals(42));
2002 unittest.expect(o.merchantId, unittest.equals('foo')); 2002 unittest.expect(o.merchantId, unittest.equals('foo'));
2003 unittest.expect(o.method, unittest.equals('foo')); 2003 unittest.expect(o.method, unittest.equals('foo'));
2004 checkProduct(o.product); 2004 checkProduct(o.product);
2005 unittest.expect(o.productId, unittest.equals('foo')); 2005 unittest.expect(o.productId, unittest.equals('foo'));
2006 } 2006 }
2007 buildCounterProductsCustomBatchRequestEntry--; 2007 buildCounterProductsCustomBatchRequestEntry--;
2008 } 2008 }
2009 2009
2010 buildUnnamed336() { 2010 buildUnnamed359() {
2011 var o = new core.List<api.ProductsCustomBatchResponseEntry>(); 2011 var o = new core.List<api.ProductsCustomBatchResponseEntry>();
2012 o.add(buildProductsCustomBatchResponseEntry()); 2012 o.add(buildProductsCustomBatchResponseEntry());
2013 o.add(buildProductsCustomBatchResponseEntry()); 2013 o.add(buildProductsCustomBatchResponseEntry());
2014 return o; 2014 return o;
2015 } 2015 }
2016 2016
2017 checkUnnamed336(core.List<api.ProductsCustomBatchResponseEntry> o) { 2017 checkUnnamed359(core.List<api.ProductsCustomBatchResponseEntry> o) {
2018 unittest.expect(o, unittest.hasLength(2)); 2018 unittest.expect(o, unittest.hasLength(2));
2019 checkProductsCustomBatchResponseEntry(o[0]); 2019 checkProductsCustomBatchResponseEntry(o[0]);
2020 checkProductsCustomBatchResponseEntry(o[1]); 2020 checkProductsCustomBatchResponseEntry(o[1]);
2021 } 2021 }
2022 2022
2023 core.int buildCounterProductsCustomBatchResponse = 0; 2023 core.int buildCounterProductsCustomBatchResponse = 0;
2024 buildProductsCustomBatchResponse() { 2024 buildProductsCustomBatchResponse() {
2025 var o = new api.ProductsCustomBatchResponse(); 2025 var o = new api.ProductsCustomBatchResponse();
2026 buildCounterProductsCustomBatchResponse++; 2026 buildCounterProductsCustomBatchResponse++;
2027 if (buildCounterProductsCustomBatchResponse < 3) { 2027 if (buildCounterProductsCustomBatchResponse < 3) {
2028 o.entries = buildUnnamed336(); 2028 o.entries = buildUnnamed359();
2029 o.kind = "foo"; 2029 o.kind = "foo";
2030 } 2030 }
2031 buildCounterProductsCustomBatchResponse--; 2031 buildCounterProductsCustomBatchResponse--;
2032 return o; 2032 return o;
2033 } 2033 }
2034 2034
2035 checkProductsCustomBatchResponse(api.ProductsCustomBatchResponse o) { 2035 checkProductsCustomBatchResponse(api.ProductsCustomBatchResponse o) {
2036 buildCounterProductsCustomBatchResponse++; 2036 buildCounterProductsCustomBatchResponse++;
2037 if (buildCounterProductsCustomBatchResponse < 3) { 2037 if (buildCounterProductsCustomBatchResponse < 3) {
2038 checkUnnamed336(o.entries); 2038 checkUnnamed359(o.entries);
2039 unittest.expect(o.kind, unittest.equals('foo')); 2039 unittest.expect(o.kind, unittest.equals('foo'));
2040 } 2040 }
2041 buildCounterProductsCustomBatchResponse--; 2041 buildCounterProductsCustomBatchResponse--;
2042 } 2042 }
2043 2043
2044 core.int buildCounterProductsCustomBatchResponseEntry = 0; 2044 core.int buildCounterProductsCustomBatchResponseEntry = 0;
2045 buildProductsCustomBatchResponseEntry() { 2045 buildProductsCustomBatchResponseEntry() {
2046 var o = new api.ProductsCustomBatchResponseEntry(); 2046 var o = new api.ProductsCustomBatchResponseEntry();
2047 buildCounterProductsCustomBatchResponseEntry++; 2047 buildCounterProductsCustomBatchResponseEntry++;
2048 if (buildCounterProductsCustomBatchResponseEntry < 3) { 2048 if (buildCounterProductsCustomBatchResponseEntry < 3) {
(...skipping 10 matching lines...) Expand all
2059 buildCounterProductsCustomBatchResponseEntry++; 2059 buildCounterProductsCustomBatchResponseEntry++;
2060 if (buildCounterProductsCustomBatchResponseEntry < 3) { 2060 if (buildCounterProductsCustomBatchResponseEntry < 3) {
2061 unittest.expect(o.batchId, unittest.equals(42)); 2061 unittest.expect(o.batchId, unittest.equals(42));
2062 checkErrors(o.errors); 2062 checkErrors(o.errors);
2063 unittest.expect(o.kind, unittest.equals('foo')); 2063 unittest.expect(o.kind, unittest.equals('foo'));
2064 checkProduct(o.product); 2064 checkProduct(o.product);
2065 } 2065 }
2066 buildCounterProductsCustomBatchResponseEntry--; 2066 buildCounterProductsCustomBatchResponseEntry--;
2067 } 2067 }
2068 2068
2069 buildUnnamed337() { 2069 buildUnnamed360() {
2070 var o = new core.List<api.Product>(); 2070 var o = new core.List<api.Product>();
2071 o.add(buildProduct()); 2071 o.add(buildProduct());
2072 o.add(buildProduct()); 2072 o.add(buildProduct());
2073 return o; 2073 return o;
2074 } 2074 }
2075 2075
2076 checkUnnamed337(core.List<api.Product> o) { 2076 checkUnnamed360(core.List<api.Product> o) {
2077 unittest.expect(o, unittest.hasLength(2)); 2077 unittest.expect(o, unittest.hasLength(2));
2078 checkProduct(o[0]); 2078 checkProduct(o[0]);
2079 checkProduct(o[1]); 2079 checkProduct(o[1]);
2080 } 2080 }
2081 2081
2082 core.int buildCounterProductsListResponse = 0; 2082 core.int buildCounterProductsListResponse = 0;
2083 buildProductsListResponse() { 2083 buildProductsListResponse() {
2084 var o = new api.ProductsListResponse(); 2084 var o = new api.ProductsListResponse();
2085 buildCounterProductsListResponse++; 2085 buildCounterProductsListResponse++;
2086 if (buildCounterProductsListResponse < 3) { 2086 if (buildCounterProductsListResponse < 3) {
2087 o.kind = "foo"; 2087 o.kind = "foo";
2088 o.nextPageToken = "foo"; 2088 o.nextPageToken = "foo";
2089 o.resources = buildUnnamed337(); 2089 o.resources = buildUnnamed360();
2090 } 2090 }
2091 buildCounterProductsListResponse--; 2091 buildCounterProductsListResponse--;
2092 return o; 2092 return o;
2093 } 2093 }
2094 2094
2095 checkProductsListResponse(api.ProductsListResponse o) { 2095 checkProductsListResponse(api.ProductsListResponse o) {
2096 buildCounterProductsListResponse++; 2096 buildCounterProductsListResponse++;
2097 if (buildCounterProductsListResponse < 3) { 2097 if (buildCounterProductsListResponse < 3) {
2098 unittest.expect(o.kind, unittest.equals('foo')); 2098 unittest.expect(o.kind, unittest.equals('foo'));
2099 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2099 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2100 checkUnnamed337(o.resources); 2100 checkUnnamed360(o.resources);
2101 } 2101 }
2102 buildCounterProductsListResponse--; 2102 buildCounterProductsListResponse--;
2103 } 2103 }
2104 2104
2105 buildUnnamed338() { 2105 buildUnnamed361() {
2106 var o = new core.List<api.ProductstatusesCustomBatchRequestEntry>(); 2106 var o = new core.List<api.ProductstatusesCustomBatchRequestEntry>();
2107 o.add(buildProductstatusesCustomBatchRequestEntry()); 2107 o.add(buildProductstatusesCustomBatchRequestEntry());
2108 o.add(buildProductstatusesCustomBatchRequestEntry()); 2108 o.add(buildProductstatusesCustomBatchRequestEntry());
2109 return o; 2109 return o;
2110 } 2110 }
2111 2111
2112 checkUnnamed338(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { 2112 checkUnnamed361(core.List<api.ProductstatusesCustomBatchRequestEntry> o) {
2113 unittest.expect(o, unittest.hasLength(2)); 2113 unittest.expect(o, unittest.hasLength(2));
2114 checkProductstatusesCustomBatchRequestEntry(o[0]); 2114 checkProductstatusesCustomBatchRequestEntry(o[0]);
2115 checkProductstatusesCustomBatchRequestEntry(o[1]); 2115 checkProductstatusesCustomBatchRequestEntry(o[1]);
2116 } 2116 }
2117 2117
2118 core.int buildCounterProductstatusesCustomBatchRequest = 0; 2118 core.int buildCounterProductstatusesCustomBatchRequest = 0;
2119 buildProductstatusesCustomBatchRequest() { 2119 buildProductstatusesCustomBatchRequest() {
2120 var o = new api.ProductstatusesCustomBatchRequest(); 2120 var o = new api.ProductstatusesCustomBatchRequest();
2121 buildCounterProductstatusesCustomBatchRequest++; 2121 buildCounterProductstatusesCustomBatchRequest++;
2122 if (buildCounterProductstatusesCustomBatchRequest < 3) { 2122 if (buildCounterProductstatusesCustomBatchRequest < 3) {
2123 o.entries = buildUnnamed338(); 2123 o.entries = buildUnnamed361();
2124 } 2124 }
2125 buildCounterProductstatusesCustomBatchRequest--; 2125 buildCounterProductstatusesCustomBatchRequest--;
2126 return o; 2126 return o;
2127 } 2127 }
2128 2128
2129 checkProductstatusesCustomBatchRequest(api.ProductstatusesCustomBatchRequest o) { 2129 checkProductstatusesCustomBatchRequest(api.ProductstatusesCustomBatchRequest o) {
2130 buildCounterProductstatusesCustomBatchRequest++; 2130 buildCounterProductstatusesCustomBatchRequest++;
2131 if (buildCounterProductstatusesCustomBatchRequest < 3) { 2131 if (buildCounterProductstatusesCustomBatchRequest < 3) {
2132 checkUnnamed338(o.entries); 2132 checkUnnamed361(o.entries);
2133 } 2133 }
2134 buildCounterProductstatusesCustomBatchRequest--; 2134 buildCounterProductstatusesCustomBatchRequest--;
2135 } 2135 }
2136 2136
2137 core.int buildCounterProductstatusesCustomBatchRequestEntry = 0; 2137 core.int buildCounterProductstatusesCustomBatchRequestEntry = 0;
2138 buildProductstatusesCustomBatchRequestEntry() { 2138 buildProductstatusesCustomBatchRequestEntry() {
2139 var o = new api.ProductstatusesCustomBatchRequestEntry(); 2139 var o = new api.ProductstatusesCustomBatchRequestEntry();
2140 buildCounterProductstatusesCustomBatchRequestEntry++; 2140 buildCounterProductstatusesCustomBatchRequestEntry++;
2141 if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { 2141 if (buildCounterProductstatusesCustomBatchRequestEntry < 3) {
2142 o.batchId = 42; 2142 o.batchId = 42;
2143 o.merchantId = "foo"; 2143 o.merchantId = "foo";
2144 o.method = "foo"; 2144 o.method = "foo";
2145 o.productId = "foo"; 2145 o.productId = "foo";
2146 } 2146 }
2147 buildCounterProductstatusesCustomBatchRequestEntry--; 2147 buildCounterProductstatusesCustomBatchRequestEntry--;
2148 return o; 2148 return o;
2149 } 2149 }
2150 2150
2151 checkProductstatusesCustomBatchRequestEntry(api.ProductstatusesCustomBatchReques tEntry o) { 2151 checkProductstatusesCustomBatchRequestEntry(api.ProductstatusesCustomBatchReques tEntry o) {
2152 buildCounterProductstatusesCustomBatchRequestEntry++; 2152 buildCounterProductstatusesCustomBatchRequestEntry++;
2153 if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { 2153 if (buildCounterProductstatusesCustomBatchRequestEntry < 3) {
2154 unittest.expect(o.batchId, unittest.equals(42)); 2154 unittest.expect(o.batchId, unittest.equals(42));
2155 unittest.expect(o.merchantId, unittest.equals('foo')); 2155 unittest.expect(o.merchantId, unittest.equals('foo'));
2156 unittest.expect(o.method, unittest.equals('foo')); 2156 unittest.expect(o.method, unittest.equals('foo'));
2157 unittest.expect(o.productId, unittest.equals('foo')); 2157 unittest.expect(o.productId, unittest.equals('foo'));
2158 } 2158 }
2159 buildCounterProductstatusesCustomBatchRequestEntry--; 2159 buildCounterProductstatusesCustomBatchRequestEntry--;
2160 } 2160 }
2161 2161
2162 buildUnnamed339() { 2162 buildUnnamed362() {
2163 var o = new core.List<api.ProductstatusesCustomBatchResponseEntry>(); 2163 var o = new core.List<api.ProductstatusesCustomBatchResponseEntry>();
2164 o.add(buildProductstatusesCustomBatchResponseEntry()); 2164 o.add(buildProductstatusesCustomBatchResponseEntry());
2165 o.add(buildProductstatusesCustomBatchResponseEntry()); 2165 o.add(buildProductstatusesCustomBatchResponseEntry());
2166 return o; 2166 return o;
2167 } 2167 }
2168 2168
2169 checkUnnamed339(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { 2169 checkUnnamed362(core.List<api.ProductstatusesCustomBatchResponseEntry> o) {
2170 unittest.expect(o, unittest.hasLength(2)); 2170 unittest.expect(o, unittest.hasLength(2));
2171 checkProductstatusesCustomBatchResponseEntry(o[0]); 2171 checkProductstatusesCustomBatchResponseEntry(o[0]);
2172 checkProductstatusesCustomBatchResponseEntry(o[1]); 2172 checkProductstatusesCustomBatchResponseEntry(o[1]);
2173 } 2173 }
2174 2174
2175 core.int buildCounterProductstatusesCustomBatchResponse = 0; 2175 core.int buildCounterProductstatusesCustomBatchResponse = 0;
2176 buildProductstatusesCustomBatchResponse() { 2176 buildProductstatusesCustomBatchResponse() {
2177 var o = new api.ProductstatusesCustomBatchResponse(); 2177 var o = new api.ProductstatusesCustomBatchResponse();
2178 buildCounterProductstatusesCustomBatchResponse++; 2178 buildCounterProductstatusesCustomBatchResponse++;
2179 if (buildCounterProductstatusesCustomBatchResponse < 3) { 2179 if (buildCounterProductstatusesCustomBatchResponse < 3) {
2180 o.entries = buildUnnamed339(); 2180 o.entries = buildUnnamed362();
2181 o.kind = "foo"; 2181 o.kind = "foo";
2182 } 2182 }
2183 buildCounterProductstatusesCustomBatchResponse--; 2183 buildCounterProductstatusesCustomBatchResponse--;
2184 return o; 2184 return o;
2185 } 2185 }
2186 2186
2187 checkProductstatusesCustomBatchResponse(api.ProductstatusesCustomBatchResponse o ) { 2187 checkProductstatusesCustomBatchResponse(api.ProductstatusesCustomBatchResponse o ) {
2188 buildCounterProductstatusesCustomBatchResponse++; 2188 buildCounterProductstatusesCustomBatchResponse++;
2189 if (buildCounterProductstatusesCustomBatchResponse < 3) { 2189 if (buildCounterProductstatusesCustomBatchResponse < 3) {
2190 checkUnnamed339(o.entries); 2190 checkUnnamed362(o.entries);
2191 unittest.expect(o.kind, unittest.equals('foo')); 2191 unittest.expect(o.kind, unittest.equals('foo'));
2192 } 2192 }
2193 buildCounterProductstatusesCustomBatchResponse--; 2193 buildCounterProductstatusesCustomBatchResponse--;
2194 } 2194 }
2195 2195
2196 core.int buildCounterProductstatusesCustomBatchResponseEntry = 0; 2196 core.int buildCounterProductstatusesCustomBatchResponseEntry = 0;
2197 buildProductstatusesCustomBatchResponseEntry() { 2197 buildProductstatusesCustomBatchResponseEntry() {
2198 var o = new api.ProductstatusesCustomBatchResponseEntry(); 2198 var o = new api.ProductstatusesCustomBatchResponseEntry();
2199 buildCounterProductstatusesCustomBatchResponseEntry++; 2199 buildCounterProductstatusesCustomBatchResponseEntry++;
2200 if (buildCounterProductstatusesCustomBatchResponseEntry < 3) { 2200 if (buildCounterProductstatusesCustomBatchResponseEntry < 3) {
(...skipping 10 matching lines...) Expand all
2211 buildCounterProductstatusesCustomBatchResponseEntry++; 2211 buildCounterProductstatusesCustomBatchResponseEntry++;
2212 if (buildCounterProductstatusesCustomBatchResponseEntry < 3) { 2212 if (buildCounterProductstatusesCustomBatchResponseEntry < 3) {
2213 unittest.expect(o.batchId, unittest.equals(42)); 2213 unittest.expect(o.batchId, unittest.equals(42));
2214 checkErrors(o.errors); 2214 checkErrors(o.errors);
2215 unittest.expect(o.kind, unittest.equals('foo')); 2215 unittest.expect(o.kind, unittest.equals('foo'));
2216 checkProductStatus(o.productStatus); 2216 checkProductStatus(o.productStatus);
2217 } 2217 }
2218 buildCounterProductstatusesCustomBatchResponseEntry--; 2218 buildCounterProductstatusesCustomBatchResponseEntry--;
2219 } 2219 }
2220 2220
2221 buildUnnamed340() { 2221 buildUnnamed363() {
2222 var o = new core.List<api.ProductStatus>(); 2222 var o = new core.List<api.ProductStatus>();
2223 o.add(buildProductStatus()); 2223 o.add(buildProductStatus());
2224 o.add(buildProductStatus()); 2224 o.add(buildProductStatus());
2225 return o; 2225 return o;
2226 } 2226 }
2227 2227
2228 checkUnnamed340(core.List<api.ProductStatus> o) { 2228 checkUnnamed363(core.List<api.ProductStatus> o) {
2229 unittest.expect(o, unittest.hasLength(2)); 2229 unittest.expect(o, unittest.hasLength(2));
2230 checkProductStatus(o[0]); 2230 checkProductStatus(o[0]);
2231 checkProductStatus(o[1]); 2231 checkProductStatus(o[1]);
2232 } 2232 }
2233 2233
2234 core.int buildCounterProductstatusesListResponse = 0; 2234 core.int buildCounterProductstatusesListResponse = 0;
2235 buildProductstatusesListResponse() { 2235 buildProductstatusesListResponse() {
2236 var o = new api.ProductstatusesListResponse(); 2236 var o = new api.ProductstatusesListResponse();
2237 buildCounterProductstatusesListResponse++; 2237 buildCounterProductstatusesListResponse++;
2238 if (buildCounterProductstatusesListResponse < 3) { 2238 if (buildCounterProductstatusesListResponse < 3) {
2239 o.kind = "foo"; 2239 o.kind = "foo";
2240 o.nextPageToken = "foo"; 2240 o.nextPageToken = "foo";
2241 o.resources = buildUnnamed340(); 2241 o.resources = buildUnnamed363();
2242 } 2242 }
2243 buildCounterProductstatusesListResponse--; 2243 buildCounterProductstatusesListResponse--;
2244 return o; 2244 return o;
2245 } 2245 }
2246 2246
2247 checkProductstatusesListResponse(api.ProductstatusesListResponse o) { 2247 checkProductstatusesListResponse(api.ProductstatusesListResponse o) {
2248 buildCounterProductstatusesListResponse++; 2248 buildCounterProductstatusesListResponse++;
2249 if (buildCounterProductstatusesListResponse < 3) { 2249 if (buildCounterProductstatusesListResponse < 3) {
2250 unittest.expect(o.kind, unittest.equals('foo')); 2250 unittest.expect(o.kind, unittest.equals('foo'));
2251 unittest.expect(o.nextPageToken, unittest.equals('foo')); 2251 unittest.expect(o.nextPageToken, unittest.equals('foo'));
2252 checkUnnamed340(o.resources); 2252 checkUnnamed363(o.resources);
2253 } 2253 }
2254 buildCounterProductstatusesListResponse--; 2254 buildCounterProductstatusesListResponse--;
2255 } 2255 }
2256 2256
2257 2257
2258 main() { 2258 main() {
2259 unittest.group("obj-schema-Account", () { 2259 unittest.group("obj-schema-Account", () {
2260 unittest.test("to-json--from-json", () { 2260 unittest.test("to-json--from-json", () {
2261 var o = buildAccount(); 2261 var o = buildAccount();
2262 var od = new api.Account.fromJson(o.toJson()); 2262 var od = new api.Account.fromJson(o.toJson());
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2857 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; 2857 api.AccountsResourceApi res = new api.ContentApi(mock).accounts;
2858 var arg_request = buildAccountsCustomBatchRequest(); 2858 var arg_request = buildAccountsCustomBatchRequest();
2859 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2859 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2860 var obj = new api.AccountsCustomBatchRequest.fromJson(json); 2860 var obj = new api.AccountsCustomBatchRequest.fromJson(json);
2861 checkAccountsCustomBatchRequest(obj); 2861 checkAccountsCustomBatchRequest(obj);
2862 2862
2863 var path = (req.url).path; 2863 var path = (req.url).path;
2864 var pathOffset = 0; 2864 var pathOffset = 0;
2865 var index; 2865 var index;
2866 var subPart; 2866 var subPart;
2867 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 2867 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2868 pathOffset += 12; 2868 pathOffset += 1;
2869 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("content/v2/"));
2870 pathOffset += 11;
2869 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("accounts/batch")); 2871 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("accounts/batch"));
2870 pathOffset += 14; 2872 pathOffset += 14;
2871 2873
2872 var query = (req.url).query; 2874 var query = (req.url).query;
2873 var queryOffset = 0; 2875 var queryOffset = 0;
2874 var queryMap = {}; 2876 var queryMap = {};
2875 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2877 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2876 parseBool(n) { 2878 parseBool(n) {
2877 if (n == "true") return true; 2879 if (n == "true") return true;
2878 if (n == "false") return false; 2880 if (n == "false") return false;
(...skipping 23 matching lines...) Expand all
2902 2904
2903 var mock = new common_test.HttpServerMock(); 2905 var mock = new common_test.HttpServerMock();
2904 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; 2906 api.AccountsResourceApi res = new api.ContentApi(mock).accounts;
2905 var arg_merchantId = "foo"; 2907 var arg_merchantId = "foo";
2906 var arg_accountId = "foo"; 2908 var arg_accountId = "foo";
2907 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2909 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2908 var path = (req.url).path; 2910 var path = (req.url).path;
2909 var pathOffset = 0; 2911 var pathOffset = 0;
2910 var index; 2912 var index;
2911 var subPart; 2913 var subPart;
2912 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 2914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2913 pathOffset += 12; 2915 pathOffset += 1;
2914 index = path.indexOf("/accounts/", pathOffset);
2915 unittest.expect(index >= 0, unittest.isTrue);
2916 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2917 pathOffset = index;
2918 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
2919 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/accounts/"));
2920 pathOffset += 10;
2921 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2922 pathOffset = path.length;
2923 unittest.expect(subPart, unittest.equals("$arg_accountId"));
2924 2916
2925 var query = (req.url).query; 2917 var query = (req.url).query;
2926 var queryOffset = 0; 2918 var queryOffset = 0;
2927 var queryMap = {}; 2919 var queryMap = {};
2928 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2920 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2929 parseBool(n) { 2921 parseBool(n) {
2930 if (n == "true") return true; 2922 if (n == "true") return true;
2931 if (n == "false") return false; 2923 if (n == "false") return false;
2932 if (n == null) return null; 2924 if (n == null) return null;
2933 throw new core.ArgumentError("Invalid boolean: $n"); 2925 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 19 matching lines...) Expand all
2953 2945
2954 var mock = new common_test.HttpServerMock(); 2946 var mock = new common_test.HttpServerMock();
2955 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; 2947 api.AccountsResourceApi res = new api.ContentApi(mock).accounts;
2956 var arg_merchantId = "foo"; 2948 var arg_merchantId = "foo";
2957 var arg_accountId = "foo"; 2949 var arg_accountId = "foo";
2958 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2950 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2959 var path = (req.url).path; 2951 var path = (req.url).path;
2960 var pathOffset = 0; 2952 var pathOffset = 0;
2961 var index; 2953 var index;
2962 var subPart; 2954 var subPart;
2963 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 2955 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2964 pathOffset += 12; 2956 pathOffset += 1;
2965 index = path.indexOf("/accounts/", pathOffset);
2966 unittest.expect(index >= 0, unittest.isTrue);
2967 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
2968 pathOffset = index;
2969 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
2970 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/accounts/"));
2971 pathOffset += 10;
2972 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2973 pathOffset = path.length;
2974 unittest.expect(subPart, unittest.equals("$arg_accountId"));
2975 2957
2976 var query = (req.url).query; 2958 var query = (req.url).query;
2977 var queryOffset = 0; 2959 var queryOffset = 0;
2978 var queryMap = {}; 2960 var queryMap = {};
2979 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 2961 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
2980 parseBool(n) { 2962 parseBool(n) {
2981 if (n == "true") return true; 2963 if (n == "true") return true;
2982 if (n == "false") return false; 2964 if (n == "false") return false;
2983 if (n == null) return null; 2965 if (n == null) return null;
2984 throw new core.ArgumentError("Invalid boolean: $n"); 2966 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 24 matching lines...) Expand all
3009 var arg_request = buildAccount(); 2991 var arg_request = buildAccount();
3010 var arg_merchantId = "foo"; 2992 var arg_merchantId = "foo";
3011 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2993 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3012 var obj = new api.Account.fromJson(json); 2994 var obj = new api.Account.fromJson(json);
3013 checkAccount(obj); 2995 checkAccount(obj);
3014 2996
3015 var path = (req.url).path; 2997 var path = (req.url).path;
3016 var pathOffset = 0; 2998 var pathOffset = 0;
3017 var index; 2999 var index;
3018 var subPart; 3000 var subPart;
3019 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3001 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3020 pathOffset += 12; 3002 pathOffset += 1;
3021 index = path.indexOf("/accounts", pathOffset);
3022 unittest.expect(index >= 0, unittest.isTrue);
3023 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3024 pathOffset = index;
3025 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3026 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/accounts"));
3027 pathOffset += 9;
3028 3003
3029 var query = (req.url).query; 3004 var query = (req.url).query;
3030 var queryOffset = 0; 3005 var queryOffset = 0;
3031 var queryMap = {}; 3006 var queryMap = {};
3032 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3007 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3033 parseBool(n) { 3008 parseBool(n) {
3034 if (n == "true") return true; 3009 if (n == "true") return true;
3035 if (n == "false") return false; 3010 if (n == "false") return false;
3036 if (n == null) return null; 3011 if (n == null) return null;
3037 throw new core.ArgumentError("Invalid boolean: $n"); 3012 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 22 matching lines...) Expand all
3060 var mock = new common_test.HttpServerMock(); 3035 var mock = new common_test.HttpServerMock();
3061 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; 3036 api.AccountsResourceApi res = new api.ContentApi(mock).accounts;
3062 var arg_merchantId = "foo"; 3037 var arg_merchantId = "foo";
3063 var arg_maxResults = 42; 3038 var arg_maxResults = 42;
3064 var arg_pageToken = "foo"; 3039 var arg_pageToken = "foo";
3065 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3040 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3066 var path = (req.url).path; 3041 var path = (req.url).path;
3067 var pathOffset = 0; 3042 var pathOffset = 0;
3068 var index; 3043 var index;
3069 var subPart; 3044 var subPart;
3070 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3045 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3071 pathOffset += 12; 3046 pathOffset += 1;
3072 index = path.indexOf("/accounts", pathOffset);
3073 unittest.expect(index >= 0, unittest.isTrue);
3074 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3075 pathOffset = index;
3076 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3077 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/accounts"));
3078 pathOffset += 9;
3079 3047
3080 var query = (req.url).query; 3048 var query = (req.url).query;
3081 var queryOffset = 0; 3049 var queryOffset = 0;
3082 var queryMap = {}; 3050 var queryMap = {};
3083 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3051 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3084 parseBool(n) { 3052 parseBool(n) {
3085 if (n == "true") return true; 3053 if (n == "true") return true;
3086 if (n == "false") return false; 3054 if (n == "false") return false;
3087 if (n == null) return null; 3055 if (n == null) return null;
3088 throw new core.ArgumentError("Invalid boolean: $n"); 3056 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 27 matching lines...) Expand all
3116 var arg_merchantId = "foo"; 3084 var arg_merchantId = "foo";
3117 var arg_accountId = "foo"; 3085 var arg_accountId = "foo";
3118 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3086 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3119 var obj = new api.Account.fromJson(json); 3087 var obj = new api.Account.fromJson(json);
3120 checkAccount(obj); 3088 checkAccount(obj);
3121 3089
3122 var path = (req.url).path; 3090 var path = (req.url).path;
3123 var pathOffset = 0; 3091 var pathOffset = 0;
3124 var index; 3092 var index;
3125 var subPart; 3093 var subPart;
3126 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3127 pathOffset += 12; 3095 pathOffset += 1;
3128 index = path.indexOf("/accounts/", pathOffset);
3129 unittest.expect(index >= 0, unittest.isTrue);
3130 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3131 pathOffset = index;
3132 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3133 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/accounts/"));
3134 pathOffset += 10;
3135 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3136 pathOffset = path.length;
3137 unittest.expect(subPart, unittest.equals("$arg_accountId"));
3138 3096
3139 var query = (req.url).query; 3097 var query = (req.url).query;
3140 var queryOffset = 0; 3098 var queryOffset = 0;
3141 var queryMap = {}; 3099 var queryMap = {};
3142 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3100 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3143 parseBool(n) { 3101 parseBool(n) {
3144 if (n == "true") return true; 3102 if (n == "true") return true;
3145 if (n == "false") return false; 3103 if (n == "false") return false;
3146 if (n == null) return null; 3104 if (n == null) return null;
3147 throw new core.ArgumentError("Invalid boolean: $n"); 3105 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 25 matching lines...) Expand all
3173 var arg_merchantId = "foo"; 3131 var arg_merchantId = "foo";
3174 var arg_accountId = "foo"; 3132 var arg_accountId = "foo";
3175 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3133 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3176 var obj = new api.Account.fromJson(json); 3134 var obj = new api.Account.fromJson(json);
3177 checkAccount(obj); 3135 checkAccount(obj);
3178 3136
3179 var path = (req.url).path; 3137 var path = (req.url).path;
3180 var pathOffset = 0; 3138 var pathOffset = 0;
3181 var index; 3139 var index;
3182 var subPart; 3140 var subPart;
3183 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3141 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3184 pathOffset += 12; 3142 pathOffset += 1;
3185 index = path.indexOf("/accounts/", pathOffset);
3186 unittest.expect(index >= 0, unittest.isTrue);
3187 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3188 pathOffset = index;
3189 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3190 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/accounts/"));
3191 pathOffset += 10;
3192 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3193 pathOffset = path.length;
3194 unittest.expect(subPart, unittest.equals("$arg_accountId"));
3195 3143
3196 var query = (req.url).query; 3144 var query = (req.url).query;
3197 var queryOffset = 0; 3145 var queryOffset = 0;
3198 var queryMap = {}; 3146 var queryMap = {};
3199 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3147 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3200 parseBool(n) { 3148 parseBool(n) {
3201 if (n == "true") return true; 3149 if (n == "true") return true;
3202 if (n == "false") return false; 3150 if (n == "false") return false;
3203 if (n == null) return null; 3151 if (n == null) return null;
3204 throw new core.ArgumentError("Invalid boolean: $n"); 3152 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 27 matching lines...) Expand all
3232 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu ses; 3180 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu ses;
3233 var arg_request = buildAccountstatusesCustomBatchRequest(); 3181 var arg_request = buildAccountstatusesCustomBatchRequest();
3234 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3182 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3235 var obj = new api.AccountstatusesCustomBatchRequest.fromJson(json); 3183 var obj = new api.AccountstatusesCustomBatchRequest.fromJson(json);
3236 checkAccountstatusesCustomBatchRequest(obj); 3184 checkAccountstatusesCustomBatchRequest(obj);
3237 3185
3238 var path = (req.url).path; 3186 var path = (req.url).path;
3239 var pathOffset = 0; 3187 var pathOffset = 0;
3240 var index; 3188 var index;
3241 var subPart; 3189 var subPart;
3242 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3190 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3243 pathOffset += 12; 3191 pathOffset += 1;
3192 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("content/v2/"));
3193 pathOffset += 11;
3244 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("accountstatuses/batch")); 3194 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("accountstatuses/batch"));
3245 pathOffset += 21; 3195 pathOffset += 21;
3246 3196
3247 var query = (req.url).query; 3197 var query = (req.url).query;
3248 var queryOffset = 0; 3198 var queryOffset = 0;
3249 var queryMap = {}; 3199 var queryMap = {};
3250 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3200 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3251 parseBool(n) { 3201 parseBool(n) {
3252 if (n == "true") return true; 3202 if (n == "true") return true;
3253 if (n == "false") return false; 3203 if (n == "false") return false;
(...skipping 23 matching lines...) Expand all
3277 3227
3278 var mock = new common_test.HttpServerMock(); 3228 var mock = new common_test.HttpServerMock();
3279 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu ses; 3229 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu ses;
3280 var arg_merchantId = "foo"; 3230 var arg_merchantId = "foo";
3281 var arg_accountId = "foo"; 3231 var arg_accountId = "foo";
3282 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3232 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3283 var path = (req.url).path; 3233 var path = (req.url).path;
3284 var pathOffset = 0; 3234 var pathOffset = 0;
3285 var index; 3235 var index;
3286 var subPart; 3236 var subPart;
3287 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3237 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3288 pathOffset += 12; 3238 pathOffset += 1;
3289 index = path.indexOf("/accountstatuses/", pathOffset);
3290 unittest.expect(index >= 0, unittest.isTrue);
3291 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3292 pathOffset = index;
3293 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3294 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("/accountstatuses/"));
3295 pathOffset += 17;
3296 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3297 pathOffset = path.length;
3298 unittest.expect(subPart, unittest.equals("$arg_accountId"));
3299 3239
3300 var query = (req.url).query; 3240 var query = (req.url).query;
3301 var queryOffset = 0; 3241 var queryOffset = 0;
3302 var queryMap = {}; 3242 var queryMap = {};
3303 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3243 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3304 parseBool(n) { 3244 parseBool(n) {
3305 if (n == "true") return true; 3245 if (n == "true") return true;
3306 if (n == "false") return false; 3246 if (n == "false") return false;
3307 if (n == null) return null; 3247 if (n == null) return null;
3308 throw new core.ArgumentError("Invalid boolean: $n"); 3248 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 22 matching lines...) Expand all
3331 var mock = new common_test.HttpServerMock(); 3271 var mock = new common_test.HttpServerMock();
3332 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu ses; 3272 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu ses;
3333 var arg_merchantId = "foo"; 3273 var arg_merchantId = "foo";
3334 var arg_maxResults = 42; 3274 var arg_maxResults = 42;
3335 var arg_pageToken = "foo"; 3275 var arg_pageToken = "foo";
3336 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3276 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3337 var path = (req.url).path; 3277 var path = (req.url).path;
3338 var pathOffset = 0; 3278 var pathOffset = 0;
3339 var index; 3279 var index;
3340 var subPart; 3280 var subPart;
3341 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3281 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3342 pathOffset += 12; 3282 pathOffset += 1;
3343 index = path.indexOf("/accountstatuses", pathOffset);
3344 unittest.expect(index >= 0, unittest.isTrue);
3345 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3346 pathOffset = index;
3347 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3348 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("/accountstatuses"));
3349 pathOffset += 16;
3350 3283
3351 var query = (req.url).query; 3284 var query = (req.url).query;
3352 var queryOffset = 0; 3285 var queryOffset = 0;
3353 var queryMap = {}; 3286 var queryMap = {};
3354 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3287 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3355 parseBool(n) { 3288 parseBool(n) {
3356 if (n == "true") return true; 3289 if (n == "true") return true;
3357 if (n == "false") return false; 3290 if (n == "false") return false;
3358 if (n == null) return null; 3291 if (n == null) return null;
3359 throw new core.ArgumentError("Invalid boolean: $n"); 3292 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 29 matching lines...) Expand all
3389 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; 3322 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds;
3390 var arg_request = buildDatafeedsCustomBatchRequest(); 3323 var arg_request = buildDatafeedsCustomBatchRequest();
3391 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3324 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3392 var obj = new api.DatafeedsCustomBatchRequest.fromJson(json); 3325 var obj = new api.DatafeedsCustomBatchRequest.fromJson(json);
3393 checkDatafeedsCustomBatchRequest(obj); 3326 checkDatafeedsCustomBatchRequest(obj);
3394 3327
3395 var path = (req.url).path; 3328 var path = (req.url).path;
3396 var pathOffset = 0; 3329 var pathOffset = 0;
3397 var index; 3330 var index;
3398 var subPart; 3331 var subPart;
3399 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3332 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3400 pathOffset += 12; 3333 pathOffset += 1;
3334 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("content/v2/"));
3335 pathOffset += 11;
3401 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("datafeeds/batch")); 3336 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("datafeeds/batch"));
3402 pathOffset += 15; 3337 pathOffset += 15;
3403 3338
3404 var query = (req.url).query; 3339 var query = (req.url).query;
3405 var queryOffset = 0; 3340 var queryOffset = 0;
3406 var queryMap = {}; 3341 var queryMap = {};
3407 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3342 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3408 parseBool(n) { 3343 parseBool(n) {
3409 if (n == "true") return true; 3344 if (n == "true") return true;
3410 if (n == "false") return false; 3345 if (n == "false") return false;
(...skipping 23 matching lines...) Expand all
3434 3369
3435 var mock = new common_test.HttpServerMock(); 3370 var mock = new common_test.HttpServerMock();
3436 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; 3371 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds;
3437 var arg_merchantId = "foo"; 3372 var arg_merchantId = "foo";
3438 var arg_datafeedId = "foo"; 3373 var arg_datafeedId = "foo";
3439 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3374 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3440 var path = (req.url).path; 3375 var path = (req.url).path;
3441 var pathOffset = 0; 3376 var pathOffset = 0;
3442 var index; 3377 var index;
3443 var subPart; 3378 var subPart;
3444 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3379 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3445 pathOffset += 12; 3380 pathOffset += 1;
3446 index = path.indexOf("/datafeeds/", pathOffset);
3447 unittest.expect(index >= 0, unittest.isTrue);
3448 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3449 pathOffset = index;
3450 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3451 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/datafeeds/"));
3452 pathOffset += 11;
3453 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3454 pathOffset = path.length;
3455 unittest.expect(subPart, unittest.equals("$arg_datafeedId"));
3456 3381
3457 var query = (req.url).query; 3382 var query = (req.url).query;
3458 var queryOffset = 0; 3383 var queryOffset = 0;
3459 var queryMap = {}; 3384 var queryMap = {};
3460 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3385 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3461 parseBool(n) { 3386 parseBool(n) {
3462 if (n == "true") return true; 3387 if (n == "true") return true;
3463 if (n == "false") return false; 3388 if (n == "false") return false;
3464 if (n == null) return null; 3389 if (n == null) return null;
3465 throw new core.ArgumentError("Invalid boolean: $n"); 3390 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 19 matching lines...) Expand all
3485 3410
3486 var mock = new common_test.HttpServerMock(); 3411 var mock = new common_test.HttpServerMock();
3487 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; 3412 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds;
3488 var arg_merchantId = "foo"; 3413 var arg_merchantId = "foo";
3489 var arg_datafeedId = "foo"; 3414 var arg_datafeedId = "foo";
3490 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3415 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3491 var path = (req.url).path; 3416 var path = (req.url).path;
3492 var pathOffset = 0; 3417 var pathOffset = 0;
3493 var index; 3418 var index;
3494 var subPart; 3419 var subPart;
3495 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3420 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3496 pathOffset += 12; 3421 pathOffset += 1;
3497 index = path.indexOf("/datafeeds/", pathOffset);
3498 unittest.expect(index >= 0, unittest.isTrue);
3499 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3500 pathOffset = index;
3501 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3502 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/datafeeds/"));
3503 pathOffset += 11;
3504 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3505 pathOffset = path.length;
3506 unittest.expect(subPart, unittest.equals("$arg_datafeedId"));
3507 3422
3508 var query = (req.url).query; 3423 var query = (req.url).query;
3509 var queryOffset = 0; 3424 var queryOffset = 0;
3510 var queryMap = {}; 3425 var queryMap = {};
3511 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3426 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3512 parseBool(n) { 3427 parseBool(n) {
3513 if (n == "true") return true; 3428 if (n == "true") return true;
3514 if (n == "false") return false; 3429 if (n == "false") return false;
3515 if (n == null) return null; 3430 if (n == null) return null;
3516 throw new core.ArgumentError("Invalid boolean: $n"); 3431 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 24 matching lines...) Expand all
3541 var arg_request = buildDatafeed(); 3456 var arg_request = buildDatafeed();
3542 var arg_merchantId = "foo"; 3457 var arg_merchantId = "foo";
3543 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3458 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3544 var obj = new api.Datafeed.fromJson(json); 3459 var obj = new api.Datafeed.fromJson(json);
3545 checkDatafeed(obj); 3460 checkDatafeed(obj);
3546 3461
3547 var path = (req.url).path; 3462 var path = (req.url).path;
3548 var pathOffset = 0; 3463 var pathOffset = 0;
3549 var index; 3464 var index;
3550 var subPart; 3465 var subPart;
3551 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3466 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3552 pathOffset += 12; 3467 pathOffset += 1;
3553 index = path.indexOf("/datafeeds", pathOffset);
3554 unittest.expect(index >= 0, unittest.isTrue);
3555 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3556 pathOffset = index;
3557 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3558 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datafeeds"));
3559 pathOffset += 10;
3560 3468
3561 var query = (req.url).query; 3469 var query = (req.url).query;
3562 var queryOffset = 0; 3470 var queryOffset = 0;
3563 var queryMap = {}; 3471 var queryMap = {};
3564 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3472 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3565 parseBool(n) { 3473 parseBool(n) {
3566 if (n == "true") return true; 3474 if (n == "true") return true;
3567 if (n == "false") return false; 3475 if (n == "false") return false;
3568 if (n == null) return null; 3476 if (n == null) return null;
3569 throw new core.ArgumentError("Invalid boolean: $n"); 3477 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 20 matching lines...) Expand all
3590 unittest.test("method--list", () { 3498 unittest.test("method--list", () {
3591 3499
3592 var mock = new common_test.HttpServerMock(); 3500 var mock = new common_test.HttpServerMock();
3593 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; 3501 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds;
3594 var arg_merchantId = "foo"; 3502 var arg_merchantId = "foo";
3595 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3503 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3596 var path = (req.url).path; 3504 var path = (req.url).path;
3597 var pathOffset = 0; 3505 var pathOffset = 0;
3598 var index; 3506 var index;
3599 var subPart; 3507 var subPart;
3600 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3508 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3601 pathOffset += 12; 3509 pathOffset += 1;
3602 index = path.indexOf("/datafeeds", pathOffset);
3603 unittest.expect(index >= 0, unittest.isTrue);
3604 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3605 pathOffset = index;
3606 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3607 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/datafeeds"));
3608 pathOffset += 10;
3609 3510
3610 var query = (req.url).query; 3511 var query = (req.url).query;
3611 var queryOffset = 0; 3512 var queryOffset = 0;
3612 var queryMap = {}; 3513 var queryMap = {};
3613 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3514 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3614 parseBool(n) { 3515 parseBool(n) {
3615 if (n == "true") return true; 3516 if (n == "true") return true;
3616 if (n == "false") return false; 3517 if (n == "false") return false;
3617 if (n == null) return null; 3518 if (n == null) return null;
3618 throw new core.ArgumentError("Invalid boolean: $n"); 3519 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 25 matching lines...) Expand all
3644 var arg_merchantId = "foo"; 3545 var arg_merchantId = "foo";
3645 var arg_datafeedId = "foo"; 3546 var arg_datafeedId = "foo";
3646 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3547 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3647 var obj = new api.Datafeed.fromJson(json); 3548 var obj = new api.Datafeed.fromJson(json);
3648 checkDatafeed(obj); 3549 checkDatafeed(obj);
3649 3550
3650 var path = (req.url).path; 3551 var path = (req.url).path;
3651 var pathOffset = 0; 3552 var pathOffset = 0;
3652 var index; 3553 var index;
3653 var subPart; 3554 var subPart;
3654 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3555 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3655 pathOffset += 12; 3556 pathOffset += 1;
3656 index = path.indexOf("/datafeeds/", pathOffset);
3657 unittest.expect(index >= 0, unittest.isTrue);
3658 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3659 pathOffset = index;
3660 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3661 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/datafeeds/"));
3662 pathOffset += 11;
3663 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3664 pathOffset = path.length;
3665 unittest.expect(subPart, unittest.equals("$arg_datafeedId"));
3666 3557
3667 var query = (req.url).query; 3558 var query = (req.url).query;
3668 var queryOffset = 0; 3559 var queryOffset = 0;
3669 var queryMap = {}; 3560 var queryMap = {};
3670 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3561 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3671 parseBool(n) { 3562 parseBool(n) {
3672 if (n == "true") return true; 3563 if (n == "true") return true;
3673 if (n == "false") return false; 3564 if (n == "false") return false;
3674 if (n == null) return null; 3565 if (n == null) return null;
3675 throw new core.ArgumentError("Invalid boolean: $n"); 3566 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 25 matching lines...) Expand all
3701 var arg_merchantId = "foo"; 3592 var arg_merchantId = "foo";
3702 var arg_datafeedId = "foo"; 3593 var arg_datafeedId = "foo";
3703 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3594 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3704 var obj = new api.Datafeed.fromJson(json); 3595 var obj = new api.Datafeed.fromJson(json);
3705 checkDatafeed(obj); 3596 checkDatafeed(obj);
3706 3597
3707 var path = (req.url).path; 3598 var path = (req.url).path;
3708 var pathOffset = 0; 3599 var pathOffset = 0;
3709 var index; 3600 var index;
3710 var subPart; 3601 var subPart;
3711 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3602 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3712 pathOffset += 12; 3603 pathOffset += 1;
3713 index = path.indexOf("/datafeeds/", pathOffset);
3714 unittest.expect(index >= 0, unittest.isTrue);
3715 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3716 pathOffset = index;
3717 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3718 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/datafeeds/"));
3719 pathOffset += 11;
3720 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3721 pathOffset = path.length;
3722 unittest.expect(subPart, unittest.equals("$arg_datafeedId"));
3723 3604
3724 var query = (req.url).query; 3605 var query = (req.url).query;
3725 var queryOffset = 0; 3606 var queryOffset = 0;
3726 var queryMap = {}; 3607 var queryMap = {};
3727 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3608 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3728 parseBool(n) { 3609 parseBool(n) {
3729 if (n == "true") return true; 3610 if (n == "true") return true;
3730 if (n == "false") return false; 3611 if (n == "false") return false;
3731 if (n == null) return null; 3612 if (n == null) return null;
3732 throw new core.ArgumentError("Invalid boolean: $n"); 3613 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 27 matching lines...) Expand all
3760 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta tuses; 3641 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta tuses;
3761 var arg_request = buildDatafeedstatusesCustomBatchRequest(); 3642 var arg_request = buildDatafeedstatusesCustomBatchRequest();
3762 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3643 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3763 var obj = new api.DatafeedstatusesCustomBatchRequest.fromJson(json); 3644 var obj = new api.DatafeedstatusesCustomBatchRequest.fromJson(json);
3764 checkDatafeedstatusesCustomBatchRequest(obj); 3645 checkDatafeedstatusesCustomBatchRequest(obj);
3765 3646
3766 var path = (req.url).path; 3647 var path = (req.url).path;
3767 var pathOffset = 0; 3648 var pathOffset = 0;
3768 var index; 3649 var index;
3769 var subPart; 3650 var subPart;
3770 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3651 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3771 pathOffset += 12; 3652 pathOffset += 1;
3653 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("content/v2/"));
3654 pathOffset += 11;
3772 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("datafeedstatuses/batch")); 3655 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq uals("datafeedstatuses/batch"));
3773 pathOffset += 22; 3656 pathOffset += 22;
3774 3657
3775 var query = (req.url).query; 3658 var query = (req.url).query;
3776 var queryOffset = 0; 3659 var queryOffset = 0;
3777 var queryMap = {}; 3660 var queryMap = {};
3778 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3661 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3779 parseBool(n) { 3662 parseBool(n) {
3780 if (n == "true") return true; 3663 if (n == "true") return true;
3781 if (n == "false") return false; 3664 if (n == "false") return false;
(...skipping 23 matching lines...) Expand all
3805 3688
3806 var mock = new common_test.HttpServerMock(); 3689 var mock = new common_test.HttpServerMock();
3807 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta tuses; 3690 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta tuses;
3808 var arg_merchantId = "foo"; 3691 var arg_merchantId = "foo";
3809 var arg_datafeedId = "foo"; 3692 var arg_datafeedId = "foo";
3810 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3693 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3811 var path = (req.url).path; 3694 var path = (req.url).path;
3812 var pathOffset = 0; 3695 var pathOffset = 0;
3813 var index; 3696 var index;
3814 var subPart; 3697 var subPart;
3815 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3698 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3816 pathOffset += 12; 3699 pathOffset += 1;
3817 index = path.indexOf("/datafeedstatuses/", pathOffset);
3818 unittest.expect(index >= 0, unittest.isTrue);
3819 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3820 pathOffset = index;
3821 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3822 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq uals("/datafeedstatuses/"));
3823 pathOffset += 18;
3824 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3825 pathOffset = path.length;
3826 unittest.expect(subPart, unittest.equals("$arg_datafeedId"));
3827 3700
3828 var query = (req.url).query; 3701 var query = (req.url).query;
3829 var queryOffset = 0; 3702 var queryOffset = 0;
3830 var queryMap = {}; 3703 var queryMap = {};
3831 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3704 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3832 parseBool(n) { 3705 parseBool(n) {
3833 if (n == "true") return true; 3706 if (n == "true") return true;
3834 if (n == "false") return false; 3707 if (n == "false") return false;
3835 if (n == null) return null; 3708 if (n == null) return null;
3836 throw new core.ArgumentError("Invalid boolean: $n"); 3709 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 20 matching lines...) Expand all
3857 unittest.test("method--list", () { 3730 unittest.test("method--list", () {
3858 3731
3859 var mock = new common_test.HttpServerMock(); 3732 var mock = new common_test.HttpServerMock();
3860 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta tuses; 3733 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta tuses;
3861 var arg_merchantId = "foo"; 3734 var arg_merchantId = "foo";
3862 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3735 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3863 var path = (req.url).path; 3736 var path = (req.url).path;
3864 var pathOffset = 0; 3737 var pathOffset = 0;
3865 var index; 3738 var index;
3866 var subPart; 3739 var subPart;
3867 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3740 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3868 pathOffset += 12; 3741 pathOffset += 1;
3869 index = path.indexOf("/datafeedstatuses", pathOffset);
3870 unittest.expect(index >= 0, unittest.isTrue);
3871 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3872 pathOffset = index;
3873 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3874 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("/datafeedstatuses"));
3875 pathOffset += 17;
3876 3742
3877 var query = (req.url).query; 3743 var query = (req.url).query;
3878 var queryOffset = 0; 3744 var queryOffset = 0;
3879 var queryMap = {}; 3745 var queryMap = {};
3880 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3746 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3881 parseBool(n) { 3747 parseBool(n) {
3882 if (n == "true") return true; 3748 if (n == "true") return true;
3883 if (n == "false") return false; 3749 if (n == "false") return false;
3884 if (n == null) return null; 3750 if (n == null) return null;
3885 throw new core.ArgumentError("Invalid boolean: $n"); 3751 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 27 matching lines...) Expand all
3913 api.InventoryResourceApi res = new api.ContentApi(mock).inventory; 3779 api.InventoryResourceApi res = new api.ContentApi(mock).inventory;
3914 var arg_request = buildInventoryCustomBatchRequest(); 3780 var arg_request = buildInventoryCustomBatchRequest();
3915 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3781 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3916 var obj = new api.InventoryCustomBatchRequest.fromJson(json); 3782 var obj = new api.InventoryCustomBatchRequest.fromJson(json);
3917 checkInventoryCustomBatchRequest(obj); 3783 checkInventoryCustomBatchRequest(obj);
3918 3784
3919 var path = (req.url).path; 3785 var path = (req.url).path;
3920 var pathOffset = 0; 3786 var pathOffset = 0;
3921 var index; 3787 var index;
3922 var subPart; 3788 var subPart;
3923 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3789 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3924 pathOffset += 12; 3790 pathOffset += 1;
3791 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("content/v2/"));
3792 pathOffset += 11;
3925 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("inventory/batch")); 3793 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq uals("inventory/batch"));
3926 pathOffset += 15; 3794 pathOffset += 15;
3927 3795
3928 var query = (req.url).query; 3796 var query = (req.url).query;
3929 var queryOffset = 0; 3797 var queryOffset = 0;
3930 var queryMap = {}; 3798 var queryMap = {};
3931 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3799 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3932 parseBool(n) { 3800 parseBool(n) {
3933 if (n == "true") return true; 3801 if (n == "true") return true;
3934 if (n == "false") return false; 3802 if (n == "false") return false;
(...skipping 28 matching lines...) Expand all
3963 var arg_storeCode = "foo"; 3831 var arg_storeCode = "foo";
3964 var arg_productId = "foo"; 3832 var arg_productId = "foo";
3965 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3833 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3966 var obj = new api.InventorySetRequest.fromJson(json); 3834 var obj = new api.InventorySetRequest.fromJson(json);
3967 checkInventorySetRequest(obj); 3835 checkInventorySetRequest(obj);
3968 3836
3969 var path = (req.url).path; 3837 var path = (req.url).path;
3970 var pathOffset = 0; 3838 var pathOffset = 0;
3971 var index; 3839 var index;
3972 var subPart; 3840 var subPart;
3973 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3974 pathOffset += 12; 3842 pathOffset += 1;
3975 index = path.indexOf("/inventory/", pathOffset);
3976 unittest.expect(index >= 0, unittest.isTrue);
3977 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3978 pathOffset = index;
3979 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
3980 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("/inventory/"));
3981 pathOffset += 11;
3982 index = path.indexOf("/products/", pathOffset);
3983 unittest.expect(index >= 0, unittest.isTrue);
3984 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
3985 pathOffset = index;
3986 unittest.expect(subPart, unittest.equals("$arg_storeCode"));
3987 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/products/"));
3988 pathOffset += 10;
3989 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
3990 pathOffset = path.length;
3991 unittest.expect(subPart, unittest.equals("$arg_productId"));
3992 3843
3993 var query = (req.url).query; 3844 var query = (req.url).query;
3994 var queryOffset = 0; 3845 var queryOffset = 0;
3995 var queryMap = {}; 3846 var queryMap = {};
3996 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3847 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
3997 parseBool(n) { 3848 parseBool(n) {
3998 if (n == "true") return true; 3849 if (n == "true") return true;
3999 if (n == "false") return false; 3850 if (n == "false") return false;
4000 if (n == null) return null; 3851 if (n == null) return null;
4001 throw new core.ArgumentError("Invalid boolean: $n"); 3852 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 28 matching lines...) Expand all
4030 var arg_request = buildProductsCustomBatchRequest(); 3881 var arg_request = buildProductsCustomBatchRequest();
4031 var arg_dryRun = true; 3882 var arg_dryRun = true;
4032 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3883 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4033 var obj = new api.ProductsCustomBatchRequest.fromJson(json); 3884 var obj = new api.ProductsCustomBatchRequest.fromJson(json);
4034 checkProductsCustomBatchRequest(obj); 3885 checkProductsCustomBatchRequest(obj);
4035 3886
4036 var path = (req.url).path; 3887 var path = (req.url).path;
4037 var pathOffset = 0; 3888 var pathOffset = 0;
4038 var index; 3889 var index;
4039 var subPart; 3890 var subPart;
4040 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3891 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4041 pathOffset += 12; 3892 pathOffset += 1;
3893 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("content/v2/"));
3894 pathOffset += 11;
4042 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("products/batch")); 3895 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq uals("products/batch"));
4043 pathOffset += 14; 3896 pathOffset += 14;
4044 3897
4045 var query = (req.url).query; 3898 var query = (req.url).query;
4046 var queryOffset = 0; 3899 var queryOffset = 0;
4047 var queryMap = {}; 3900 var queryMap = {};
4048 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3901 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4049 parseBool(n) { 3902 parseBool(n) {
4050 if (n == "true") return true; 3903 if (n == "true") return true;
4051 if (n == "false") return false; 3904 if (n == "false") return false;
(...skipping 25 matching lines...) Expand all
4077 var mock = new common_test.HttpServerMock(); 3930 var mock = new common_test.HttpServerMock();
4078 api.ProductsResourceApi res = new api.ContentApi(mock).products; 3931 api.ProductsResourceApi res = new api.ContentApi(mock).products;
4079 var arg_merchantId = "foo"; 3932 var arg_merchantId = "foo";
4080 var arg_productId = "foo"; 3933 var arg_productId = "foo";
4081 var arg_dryRun = true; 3934 var arg_dryRun = true;
4082 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3935 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4083 var path = (req.url).path; 3936 var path = (req.url).path;
4084 var pathOffset = 0; 3937 var pathOffset = 0;
4085 var index; 3938 var index;
4086 var subPart; 3939 var subPart;
4087 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3940 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4088 pathOffset += 12; 3941 pathOffset += 1;
4089 index = path.indexOf("/products/", pathOffset);
4090 unittest.expect(index >= 0, unittest.isTrue);
4091 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4092 pathOffset = index;
4093 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
4094 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/products/"));
4095 pathOffset += 10;
4096 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
4097 pathOffset = path.length;
4098 unittest.expect(subPart, unittest.equals("$arg_productId"));
4099 3942
4100 var query = (req.url).query; 3943 var query = (req.url).query;
4101 var queryOffset = 0; 3944 var queryOffset = 0;
4102 var queryMap = {}; 3945 var queryMap = {};
4103 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3946 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4104 parseBool(n) { 3947 parseBool(n) {
4105 if (n == "true") return true; 3948 if (n == "true") return true;
4106 if (n == "false") return false; 3949 if (n == "false") return false;
4107 if (n == null) return null; 3950 if (n == null) return null;
4108 throw new core.ArgumentError("Invalid boolean: $n"); 3951 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 20 matching lines...) Expand all
4129 3972
4130 var mock = new common_test.HttpServerMock(); 3973 var mock = new common_test.HttpServerMock();
4131 api.ProductsResourceApi res = new api.ContentApi(mock).products; 3974 api.ProductsResourceApi res = new api.ContentApi(mock).products;
4132 var arg_merchantId = "foo"; 3975 var arg_merchantId = "foo";
4133 var arg_productId = "foo"; 3976 var arg_productId = "foo";
4134 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3977 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4135 var path = (req.url).path; 3978 var path = (req.url).path;
4136 var pathOffset = 0; 3979 var pathOffset = 0;
4137 var index; 3980 var index;
4138 var subPart; 3981 var subPart;
4139 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 3982 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4140 pathOffset += 12; 3983 pathOffset += 1;
4141 index = path.indexOf("/products/", pathOffset);
4142 unittest.expect(index >= 0, unittest.isTrue);
4143 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4144 pathOffset = index;
4145 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
4146 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq uals("/products/"));
4147 pathOffset += 10;
4148 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
4149 pathOffset = path.length;
4150 unittest.expect(subPart, unittest.equals("$arg_productId"));
4151 3984
4152 var query = (req.url).query; 3985 var query = (req.url).query;
4153 var queryOffset = 0; 3986 var queryOffset = 0;
4154 var queryMap = {}; 3987 var queryMap = {};
4155 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 3988 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4156 parseBool(n) { 3989 parseBool(n) {
4157 if (n == "true") return true; 3990 if (n == "true") return true;
4158 if (n == "false") return false; 3991 if (n == "false") return false;
4159 if (n == null) return null; 3992 if (n == null) return null;
4160 throw new core.ArgumentError("Invalid boolean: $n"); 3993 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 25 matching lines...) Expand all
4186 var arg_merchantId = "foo"; 4019 var arg_merchantId = "foo";
4187 var arg_dryRun = true; 4020 var arg_dryRun = true;
4188 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4021 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4189 var obj = new api.Product.fromJson(json); 4022 var obj = new api.Product.fromJson(json);
4190 checkProduct(obj); 4023 checkProduct(obj);
4191 4024
4192 var path = (req.url).path; 4025 var path = (req.url).path;
4193 var pathOffset = 0; 4026 var pathOffset = 0;
4194 var index; 4027 var index;
4195 var subPart; 4028 var subPart;
4196 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 4029 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4197 pathOffset += 12; 4030 pathOffset += 1;
4198 index = path.indexOf("/products", pathOffset);
4199 unittest.expect(index >= 0, unittest.isTrue);
4200 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4201 pathOffset = index;
4202 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
4203 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/products"));
4204 pathOffset += 9;
4205 4031
4206 var query = (req.url).query; 4032 var query = (req.url).query;
4207 var queryOffset = 0; 4033 var queryOffset = 0;
4208 var queryMap = {}; 4034 var queryMap = {};
4209 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4035 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4210 parseBool(n) { 4036 parseBool(n) {
4211 if (n == "true") return true; 4037 if (n == "true") return true;
4212 if (n == "false") return false; 4038 if (n == "false") return false;
4213 if (n == null) return null; 4039 if (n == null) return null;
4214 throw new core.ArgumentError("Invalid boolean: $n"); 4040 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 23 matching lines...) Expand all
4238 var mock = new common_test.HttpServerMock(); 4064 var mock = new common_test.HttpServerMock();
4239 api.ProductsResourceApi res = new api.ContentApi(mock).products; 4065 api.ProductsResourceApi res = new api.ContentApi(mock).products;
4240 var arg_merchantId = "foo"; 4066 var arg_merchantId = "foo";
4241 var arg_maxResults = 42; 4067 var arg_maxResults = 42;
4242 var arg_pageToken = "foo"; 4068 var arg_pageToken = "foo";
4243 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4069 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4244 var path = (req.url).path; 4070 var path = (req.url).path;
4245 var pathOffset = 0; 4071 var pathOffset = 0;
4246 var index; 4072 var index;
4247 var subPart; 4073 var subPart;
4248 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 4074 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4249 pathOffset += 12; 4075 pathOffset += 1;
4250 index = path.indexOf("/products", pathOffset);
4251 unittest.expect(index >= 0, unittest.isTrue);
4252 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4253 pathOffset = index;
4254 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
4255 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ als("/products"));
4256 pathOffset += 9;
4257 4076
4258 var query = (req.url).query; 4077 var query = (req.url).query;
4259 var queryOffset = 0; 4078 var queryOffset = 0;
4260 var queryMap = {}; 4079 var queryMap = {};
4261 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4080 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4262 parseBool(n) { 4081 parseBool(n) {
4263 if (n == "true") return true; 4082 if (n == "true") return true;
4264 if (n == "false") return false; 4083 if (n == "false") return false;
4265 if (n == null) return null; 4084 if (n == null) return null;
4266 throw new core.ArgumentError("Invalid boolean: $n"); 4085 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 29 matching lines...) Expand all
4296 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu ses; 4115 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu ses;
4297 var arg_request = buildProductstatusesCustomBatchRequest(); 4116 var arg_request = buildProductstatusesCustomBatchRequest();
4298 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4117 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4299 var obj = new api.ProductstatusesCustomBatchRequest.fromJson(json); 4118 var obj = new api.ProductstatusesCustomBatchRequest.fromJson(json);
4300 checkProductstatusesCustomBatchRequest(obj); 4119 checkProductstatusesCustomBatchRequest(obj);
4301 4120
4302 var path = (req.url).path; 4121 var path = (req.url).path;
4303 var pathOffset = 0; 4122 var pathOffset = 0;
4304 var index; 4123 var index;
4305 var subPart; 4124 var subPart;
4306 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 4125 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4307 pathOffset += 12; 4126 pathOffset += 1;
4127 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("content/v2/"));
4128 pathOffset += 11;
4308 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("productstatuses/batch")); 4129 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq uals("productstatuses/batch"));
4309 pathOffset += 21; 4130 pathOffset += 21;
4310 4131
4311 var query = (req.url).query; 4132 var query = (req.url).query;
4312 var queryOffset = 0; 4133 var queryOffset = 0;
4313 var queryMap = {}; 4134 var queryMap = {};
4314 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4135 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4315 parseBool(n) { 4136 parseBool(n) {
4316 if (n == "true") return true; 4137 if (n == "true") return true;
4317 if (n == "false") return false; 4138 if (n == "false") return false;
(...skipping 23 matching lines...) Expand all
4341 4162
4342 var mock = new common_test.HttpServerMock(); 4163 var mock = new common_test.HttpServerMock();
4343 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu ses; 4164 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu ses;
4344 var arg_merchantId = "foo"; 4165 var arg_merchantId = "foo";
4345 var arg_productId = "foo"; 4166 var arg_productId = "foo";
4346 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4167 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4347 var path = (req.url).path; 4168 var path = (req.url).path;
4348 var pathOffset = 0; 4169 var pathOffset = 0;
4349 var index; 4170 var index;
4350 var subPart; 4171 var subPart;
4351 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 4172 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4352 pathOffset += 12; 4173 pathOffset += 1;
4353 index = path.indexOf("/productstatuses/", pathOffset);
4354 unittest.expect(index >= 0, unittest.isTrue);
4355 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4356 pathOffset = index;
4357 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
4358 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq uals("/productstatuses/"));
4359 pathOffset += 17;
4360 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
4361 pathOffset = path.length;
4362 unittest.expect(subPart, unittest.equals("$arg_productId"));
4363 4174
4364 var query = (req.url).query; 4175 var query = (req.url).query;
4365 var queryOffset = 0; 4176 var queryOffset = 0;
4366 var queryMap = {}; 4177 var queryMap = {};
4367 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4178 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4368 parseBool(n) { 4179 parseBool(n) {
4369 if (n == "true") return true; 4180 if (n == "true") return true;
4370 if (n == "false") return false; 4181 if (n == "false") return false;
4371 if (n == null) return null; 4182 if (n == null) return null;
4372 throw new core.ArgumentError("Invalid boolean: $n"); 4183 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 22 matching lines...) Expand all
4395 var mock = new common_test.HttpServerMock(); 4206 var mock = new common_test.HttpServerMock();
4396 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu ses; 4207 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu ses;
4397 var arg_merchantId = "foo"; 4208 var arg_merchantId = "foo";
4398 var arg_maxResults = 42; 4209 var arg_maxResults = 42;
4399 var arg_pageToken = "foo"; 4210 var arg_pageToken = "foo";
4400 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4211 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
4401 var path = (req.url).path; 4212 var path = (req.url).path;
4402 var pathOffset = 0; 4213 var pathOffset = 0;
4403 var index; 4214 var index;
4404 var subPart; 4215 var subPart;
4405 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("/content/v2/")); 4216 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4406 pathOffset += 12; 4217 pathOffset += 1;
4407 index = path.indexOf("/productstatuses", pathOffset);
4408 unittest.expect(index >= 0, unittest.isTrue);
4409 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index ));
4410 pathOffset = index;
4411 unittest.expect(subPart, unittest.equals("$arg_merchantId"));
4412 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq uals("/productstatuses"));
4413 pathOffset += 16;
4414 4218
4415 var query = (req.url).query; 4219 var query = (req.url).query;
4416 var queryOffset = 0; 4220 var queryOffset = 0;
4417 var queryMap = {}; 4221 var queryMap = {};
4418 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 4222 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
4419 parseBool(n) { 4223 parseBool(n) {
4420 if (n == "true") return true; 4224 if (n == "true") return true;
4421 if (n == "false") return false; 4225 if (n == "false") return false;
4422 if (n == null) return null; 4226 if (n == null) return null;
4423 throw new core.ArgumentError("Invalid boolean: $n"); 4227 throw new core.ArgumentError("Invalid boolean: $n");
(...skipping 17 matching lines...) Expand all
4441 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo ken).then(unittest.expectAsync(((api.ProductstatusesListResponse response) { 4245 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo ken).then(unittest.expectAsync(((api.ProductstatusesListResponse response) {
4442 checkProductstatusesListResponse(response); 4246 checkProductstatusesListResponse(response);
4443 }))); 4247 })));
4444 }); 4248 });
4445 4249
4446 }); 4250 });
4447 4251
4448 4252
4449 } 4253 }
4450 4254
OLDNEW
« no previous file with comments | « generated/googleapis/test/compute/v1_test.dart ('k') | generated/googleapis/test/coordinate/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698