OLD | NEW |
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; | |
12 import 'package:googleapis/src/common_internal.dart' as common_internal; | |
13 import '../common/common_internal_test.dart' as common_test; | |
14 | 11 |
15 import 'package:googleapis/content/v2.dart' as api; | 12 import 'package:googleapis/content/v2.dart' as api; |
16 | 13 |
| 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; |
| 16 core.bool _expectJson; |
17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; |
| 20 _expectJson = expectJson; |
| 21 } |
18 | 22 |
19 buildUnnamed539() { | 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
| 24 if (_expectJson) { |
| 25 return request.finalize() |
| 26 .transform(convert.UTF8.decoder) |
| 27 .join('') |
| 28 .then((core.String jsonString) { |
| 29 if (jsonString.isEmpty) { |
| 30 return _callback(request, null); |
| 31 } else { |
| 32 return _callback(request, convert.JSON.decode(jsonString)); |
| 33 } |
| 34 }); |
| 35 } else { |
| 36 var stream = request.finalize(); |
| 37 if (stream == null) { |
| 38 return _callback(request, []); |
| 39 } else { |
| 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); |
| 42 }); |
| 43 } |
| 44 } |
| 45 } |
| 46 } |
| 47 |
| 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } |
| 53 |
| 54 buildUnnamed558() { |
20 var o = new core.List<api.AccountAdwordsLink>(); | 55 var o = new core.List<api.AccountAdwordsLink>(); |
21 o.add(buildAccountAdwordsLink()); | 56 o.add(buildAccountAdwordsLink()); |
22 o.add(buildAccountAdwordsLink()); | 57 o.add(buildAccountAdwordsLink()); |
23 return o; | 58 return o; |
24 } | 59 } |
25 | 60 |
26 checkUnnamed539(core.List<api.AccountAdwordsLink> o) { | 61 checkUnnamed558(core.List<api.AccountAdwordsLink> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
28 checkAccountAdwordsLink(o[0]); | 63 checkAccountAdwordsLink(o[0]); |
29 checkAccountAdwordsLink(o[1]); | 64 checkAccountAdwordsLink(o[1]); |
30 } | 65 } |
31 | 66 |
32 buildUnnamed540() { | 67 buildUnnamed559() { |
33 var o = new core.List<api.AccountUser>(); | 68 var o = new core.List<api.AccountUser>(); |
34 o.add(buildAccountUser()); | 69 o.add(buildAccountUser()); |
35 o.add(buildAccountUser()); | 70 o.add(buildAccountUser()); |
36 return o; | 71 return o; |
37 } | 72 } |
38 | 73 |
39 checkUnnamed540(core.List<api.AccountUser> o) { | 74 checkUnnamed559(core.List<api.AccountUser> o) { |
40 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
41 checkAccountUser(o[0]); | 76 checkAccountUser(o[0]); |
42 checkAccountUser(o[1]); | 77 checkAccountUser(o[1]); |
43 } | 78 } |
44 | 79 |
45 core.int buildCounterAccount = 0; | 80 core.int buildCounterAccount = 0; |
46 buildAccount() { | 81 buildAccount() { |
47 var o = new api.Account(); | 82 var o = new api.Account(); |
48 buildCounterAccount++; | 83 buildCounterAccount++; |
49 if (buildCounterAccount < 3) { | 84 if (buildCounterAccount < 3) { |
50 o.adultContent = true; | 85 o.adultContent = true; |
51 o.adwordsLinks = buildUnnamed539(); | 86 o.adwordsLinks = buildUnnamed558(); |
52 o.id = "foo"; | 87 o.id = "foo"; |
53 o.kind = "foo"; | 88 o.kind = "foo"; |
54 o.name = "foo"; | 89 o.name = "foo"; |
55 o.reviewsUrl = "foo"; | 90 o.reviewsUrl = "foo"; |
56 o.sellerId = "foo"; | 91 o.sellerId = "foo"; |
57 o.users = buildUnnamed540(); | 92 o.users = buildUnnamed559(); |
58 o.websiteUrl = "foo"; | 93 o.websiteUrl = "foo"; |
59 } | 94 } |
60 buildCounterAccount--; | 95 buildCounterAccount--; |
61 return o; | 96 return o; |
62 } | 97 } |
63 | 98 |
64 checkAccount(api.Account o) { | 99 checkAccount(api.Account o) { |
65 buildCounterAccount++; | 100 buildCounterAccount++; |
66 if (buildCounterAccount < 3) { | 101 if (buildCounterAccount < 3) { |
67 unittest.expect(o.adultContent, unittest.isTrue); | 102 unittest.expect(o.adultContent, unittest.isTrue); |
68 checkUnnamed539(o.adwordsLinks); | 103 checkUnnamed558(o.adwordsLinks); |
69 unittest.expect(o.id, unittest.equals('foo')); | 104 unittest.expect(o.id, unittest.equals('foo')); |
70 unittest.expect(o.kind, unittest.equals('foo')); | 105 unittest.expect(o.kind, unittest.equals('foo')); |
71 unittest.expect(o.name, unittest.equals('foo')); | 106 unittest.expect(o.name, unittest.equals('foo')); |
72 unittest.expect(o.reviewsUrl, unittest.equals('foo')); | 107 unittest.expect(o.reviewsUrl, unittest.equals('foo')); |
73 unittest.expect(o.sellerId, unittest.equals('foo')); | 108 unittest.expect(o.sellerId, unittest.equals('foo')); |
74 checkUnnamed540(o.users); | 109 checkUnnamed559(o.users); |
75 unittest.expect(o.websiteUrl, unittest.equals('foo')); | 110 unittest.expect(o.websiteUrl, unittest.equals('foo')); |
76 } | 111 } |
77 buildCounterAccount--; | 112 buildCounterAccount--; |
78 } | 113 } |
79 | 114 |
80 core.int buildCounterAccountAdwordsLink = 0; | 115 core.int buildCounterAccountAdwordsLink = 0; |
81 buildAccountAdwordsLink() { | 116 buildAccountAdwordsLink() { |
82 var o = new api.AccountAdwordsLink(); | 117 var o = new api.AccountAdwordsLink(); |
83 buildCounterAccountAdwordsLink++; | 118 buildCounterAccountAdwordsLink++; |
84 if (buildCounterAccountAdwordsLink < 3) { | 119 if (buildCounterAccountAdwordsLink < 3) { |
85 o.adwordsId = "foo"; | 120 o.adwordsId = "foo"; |
86 o.status = "foo"; | 121 o.status = "foo"; |
87 } | 122 } |
88 buildCounterAccountAdwordsLink--; | 123 buildCounterAccountAdwordsLink--; |
89 return o; | 124 return o; |
90 } | 125 } |
91 | 126 |
92 checkAccountAdwordsLink(api.AccountAdwordsLink o) { | 127 checkAccountAdwordsLink(api.AccountAdwordsLink o) { |
93 buildCounterAccountAdwordsLink++; | 128 buildCounterAccountAdwordsLink++; |
94 if (buildCounterAccountAdwordsLink < 3) { | 129 if (buildCounterAccountAdwordsLink < 3) { |
95 unittest.expect(o.adwordsId, unittest.equals('foo')); | 130 unittest.expect(o.adwordsId, unittest.equals('foo')); |
96 unittest.expect(o.status, unittest.equals('foo')); | 131 unittest.expect(o.status, unittest.equals('foo')); |
97 } | 132 } |
98 buildCounterAccountAdwordsLink--; | 133 buildCounterAccountAdwordsLink--; |
99 } | 134 } |
100 | 135 |
101 buildUnnamed541() { | 136 core.int buildCounterAccountIdentifier = 0; |
| 137 buildAccountIdentifier() { |
| 138 var o = new api.AccountIdentifier(); |
| 139 buildCounterAccountIdentifier++; |
| 140 if (buildCounterAccountIdentifier < 3) { |
| 141 o.aggregatorId = "foo"; |
| 142 o.merchantId = "foo"; |
| 143 } |
| 144 buildCounterAccountIdentifier--; |
| 145 return o; |
| 146 } |
| 147 |
| 148 checkAccountIdentifier(api.AccountIdentifier o) { |
| 149 buildCounterAccountIdentifier++; |
| 150 if (buildCounterAccountIdentifier < 3) { |
| 151 unittest.expect(o.aggregatorId, unittest.equals('foo')); |
| 152 unittest.expect(o.merchantId, unittest.equals('foo')); |
| 153 } |
| 154 buildCounterAccountIdentifier--; |
| 155 } |
| 156 |
| 157 buildUnnamed560() { |
102 var o = new core.List<api.AccountShippingCarrierRate>(); | 158 var o = new core.List<api.AccountShippingCarrierRate>(); |
103 o.add(buildAccountShippingCarrierRate()); | 159 o.add(buildAccountShippingCarrierRate()); |
104 o.add(buildAccountShippingCarrierRate()); | 160 o.add(buildAccountShippingCarrierRate()); |
105 return o; | 161 return o; |
106 } | 162 } |
107 | 163 |
108 checkUnnamed541(core.List<api.AccountShippingCarrierRate> o) { | 164 checkUnnamed560(core.List<api.AccountShippingCarrierRate> o) { |
109 unittest.expect(o, unittest.hasLength(2)); | 165 unittest.expect(o, unittest.hasLength(2)); |
110 checkAccountShippingCarrierRate(o[0]); | 166 checkAccountShippingCarrierRate(o[0]); |
111 checkAccountShippingCarrierRate(o[1]); | 167 checkAccountShippingCarrierRate(o[1]); |
112 } | 168 } |
113 | 169 |
114 buildUnnamed542() { | 170 buildUnnamed561() { |
115 var o = new core.List<api.AccountShippingLocationGroup>(); | 171 var o = new core.List<api.AccountShippingLocationGroup>(); |
116 o.add(buildAccountShippingLocationGroup()); | 172 o.add(buildAccountShippingLocationGroup()); |
117 o.add(buildAccountShippingLocationGroup()); | 173 o.add(buildAccountShippingLocationGroup()); |
118 return o; | 174 return o; |
119 } | 175 } |
120 | 176 |
121 checkUnnamed542(core.List<api.AccountShippingLocationGroup> o) { | 177 checkUnnamed561(core.List<api.AccountShippingLocationGroup> o) { |
122 unittest.expect(o, unittest.hasLength(2)); | 178 unittest.expect(o, unittest.hasLength(2)); |
123 checkAccountShippingLocationGroup(o[0]); | 179 checkAccountShippingLocationGroup(o[0]); |
124 checkAccountShippingLocationGroup(o[1]); | 180 checkAccountShippingLocationGroup(o[1]); |
125 } | 181 } |
126 | 182 |
127 buildUnnamed543() { | 183 buildUnnamed562() { |
128 var o = new core.List<api.AccountShippingRateTable>(); | 184 var o = new core.List<api.AccountShippingRateTable>(); |
129 o.add(buildAccountShippingRateTable()); | 185 o.add(buildAccountShippingRateTable()); |
130 o.add(buildAccountShippingRateTable()); | 186 o.add(buildAccountShippingRateTable()); |
131 return o; | 187 return o; |
132 } | 188 } |
133 | 189 |
134 checkUnnamed543(core.List<api.AccountShippingRateTable> o) { | 190 checkUnnamed562(core.List<api.AccountShippingRateTable> o) { |
135 unittest.expect(o, unittest.hasLength(2)); | 191 unittest.expect(o, unittest.hasLength(2)); |
136 checkAccountShippingRateTable(o[0]); | 192 checkAccountShippingRateTable(o[0]); |
137 checkAccountShippingRateTable(o[1]); | 193 checkAccountShippingRateTable(o[1]); |
138 } | 194 } |
139 | 195 |
140 buildUnnamed544() { | 196 buildUnnamed563() { |
141 var o = new core.List<api.AccountShippingShippingService>(); | 197 var o = new core.List<api.AccountShippingShippingService>(); |
142 o.add(buildAccountShippingShippingService()); | 198 o.add(buildAccountShippingShippingService()); |
143 o.add(buildAccountShippingShippingService()); | 199 o.add(buildAccountShippingShippingService()); |
144 return o; | 200 return o; |
145 } | 201 } |
146 | 202 |
147 checkUnnamed544(core.List<api.AccountShippingShippingService> o) { | 203 checkUnnamed563(core.List<api.AccountShippingShippingService> o) { |
148 unittest.expect(o, unittest.hasLength(2)); | 204 unittest.expect(o, unittest.hasLength(2)); |
149 checkAccountShippingShippingService(o[0]); | 205 checkAccountShippingShippingService(o[0]); |
150 checkAccountShippingShippingService(o[1]); | 206 checkAccountShippingShippingService(o[1]); |
151 } | 207 } |
152 | 208 |
153 core.int buildCounterAccountShipping = 0; | 209 core.int buildCounterAccountShipping = 0; |
154 buildAccountShipping() { | 210 buildAccountShipping() { |
155 var o = new api.AccountShipping(); | 211 var o = new api.AccountShipping(); |
156 buildCounterAccountShipping++; | 212 buildCounterAccountShipping++; |
157 if (buildCounterAccountShipping < 3) { | 213 if (buildCounterAccountShipping < 3) { |
158 o.accountId = "foo"; | 214 o.accountId = "foo"; |
159 o.carrierRates = buildUnnamed541(); | 215 o.carrierRates = buildUnnamed560(); |
160 o.kind = "foo"; | 216 o.kind = "foo"; |
161 o.locationGroups = buildUnnamed542(); | 217 o.locationGroups = buildUnnamed561(); |
162 o.rateTables = buildUnnamed543(); | 218 o.rateTables = buildUnnamed562(); |
163 o.services = buildUnnamed544(); | 219 o.services = buildUnnamed563(); |
164 } | 220 } |
165 buildCounterAccountShipping--; | 221 buildCounterAccountShipping--; |
166 return o; | 222 return o; |
167 } | 223 } |
168 | 224 |
169 checkAccountShipping(api.AccountShipping o) { | 225 checkAccountShipping(api.AccountShipping o) { |
170 buildCounterAccountShipping++; | 226 buildCounterAccountShipping++; |
171 if (buildCounterAccountShipping < 3) { | 227 if (buildCounterAccountShipping < 3) { |
172 unittest.expect(o.accountId, unittest.equals('foo')); | 228 unittest.expect(o.accountId, unittest.equals('foo')); |
173 checkUnnamed541(o.carrierRates); | 229 checkUnnamed560(o.carrierRates); |
174 unittest.expect(o.kind, unittest.equals('foo')); | 230 unittest.expect(o.kind, unittest.equals('foo')); |
175 checkUnnamed542(o.locationGroups); | 231 checkUnnamed561(o.locationGroups); |
176 checkUnnamed543(o.rateTables); | 232 checkUnnamed562(o.rateTables); |
177 checkUnnamed544(o.services); | 233 checkUnnamed563(o.services); |
178 } | 234 } |
179 buildCounterAccountShipping--; | 235 buildCounterAccountShipping--; |
180 } | 236 } |
181 | 237 |
182 core.int buildCounterAccountShippingCarrierRate = 0; | 238 core.int buildCounterAccountShippingCarrierRate = 0; |
183 buildAccountShippingCarrierRate() { | 239 buildAccountShippingCarrierRate() { |
184 var o = new api.AccountShippingCarrierRate(); | 240 var o = new api.AccountShippingCarrierRate(); |
185 buildCounterAccountShippingCarrierRate++; | 241 buildCounterAccountShippingCarrierRate++; |
186 if (buildCounterAccountShippingCarrierRate < 3) { | 242 if (buildCounterAccountShippingCarrierRate < 3) { |
187 o.carrier = "foo"; | 243 o.carrier = "foo"; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 unittest.expect(o.deliveryLocationId, unittest.equals('foo')); | 290 unittest.expect(o.deliveryLocationId, unittest.equals('foo')); |
235 unittest.expect(o.deliveryPostalCode, unittest.equals('foo')); | 291 unittest.expect(o.deliveryPostalCode, unittest.equals('foo')); |
236 checkAccountShippingPostalCodeRange(o.deliveryPostalCodeRange); | 292 checkAccountShippingPostalCodeRange(o.deliveryPostalCodeRange); |
237 checkPrice(o.priceMax); | 293 checkPrice(o.priceMax); |
238 unittest.expect(o.shippingLabel, unittest.equals('foo')); | 294 unittest.expect(o.shippingLabel, unittest.equals('foo')); |
239 checkWeight(o.weightMax); | 295 checkWeight(o.weightMax); |
240 } | 296 } |
241 buildCounterAccountShippingCondition--; | 297 buildCounterAccountShippingCondition--; |
242 } | 298 } |
243 | 299 |
244 buildUnnamed545() { | 300 buildUnnamed564() { |
245 var o = new core.List<core.String>(); | 301 var o = new core.List<core.String>(); |
246 o.add("foo"); | 302 o.add("foo"); |
247 o.add("foo"); | 303 o.add("foo"); |
248 return o; | 304 return o; |
249 } | 305 } |
250 | 306 |
251 checkUnnamed545(core.List<core.String> o) { | 307 checkUnnamed564(core.List<core.String> o) { |
252 unittest.expect(o, unittest.hasLength(2)); | 308 unittest.expect(o, unittest.hasLength(2)); |
253 unittest.expect(o[0], unittest.equals('foo')); | 309 unittest.expect(o[0], unittest.equals('foo')); |
254 unittest.expect(o[1], unittest.equals('foo')); | 310 unittest.expect(o[1], unittest.equals('foo')); |
255 } | 311 } |
256 | 312 |
257 buildUnnamed546() { | 313 buildUnnamed565() { |
258 var o = new core.List<api.AccountShippingPostalCodeRange>(); | 314 var o = new core.List<api.AccountShippingPostalCodeRange>(); |
259 o.add(buildAccountShippingPostalCodeRange()); | 315 o.add(buildAccountShippingPostalCodeRange()); |
260 o.add(buildAccountShippingPostalCodeRange()); | 316 o.add(buildAccountShippingPostalCodeRange()); |
261 return o; | 317 return o; |
262 } | 318 } |
263 | 319 |
264 checkUnnamed546(core.List<api.AccountShippingPostalCodeRange> o) { | 320 checkUnnamed565(core.List<api.AccountShippingPostalCodeRange> o) { |
265 unittest.expect(o, unittest.hasLength(2)); | 321 unittest.expect(o, unittest.hasLength(2)); |
266 checkAccountShippingPostalCodeRange(o[0]); | 322 checkAccountShippingPostalCodeRange(o[0]); |
267 checkAccountShippingPostalCodeRange(o[1]); | 323 checkAccountShippingPostalCodeRange(o[1]); |
268 } | 324 } |
269 | 325 |
270 buildUnnamed547() { | 326 buildUnnamed566() { |
271 var o = new core.List<core.String>(); | 327 var o = new core.List<core.String>(); |
272 o.add("foo"); | 328 o.add("foo"); |
273 o.add("foo"); | 329 o.add("foo"); |
274 return o; | 330 return o; |
275 } | 331 } |
276 | 332 |
277 checkUnnamed547(core.List<core.String> o) { | 333 checkUnnamed566(core.List<core.String> o) { |
278 unittest.expect(o, unittest.hasLength(2)); | 334 unittest.expect(o, unittest.hasLength(2)); |
279 unittest.expect(o[0], unittest.equals('foo')); | 335 unittest.expect(o[0], unittest.equals('foo')); |
280 unittest.expect(o[1], unittest.equals('foo')); | 336 unittest.expect(o[1], unittest.equals('foo')); |
281 } | 337 } |
282 | 338 |
283 core.int buildCounterAccountShippingLocationGroup = 0; | 339 core.int buildCounterAccountShippingLocationGroup = 0; |
284 buildAccountShippingLocationGroup() { | 340 buildAccountShippingLocationGroup() { |
285 var o = new api.AccountShippingLocationGroup(); | 341 var o = new api.AccountShippingLocationGroup(); |
286 buildCounterAccountShippingLocationGroup++; | 342 buildCounterAccountShippingLocationGroup++; |
287 if (buildCounterAccountShippingLocationGroup < 3) { | 343 if (buildCounterAccountShippingLocationGroup < 3) { |
288 o.country = "foo"; | 344 o.country = "foo"; |
289 o.locationIds = buildUnnamed545(); | 345 o.locationIds = buildUnnamed564(); |
290 o.name = "foo"; | 346 o.name = "foo"; |
291 o.postalCodeRanges = buildUnnamed546(); | 347 o.postalCodeRanges = buildUnnamed565(); |
292 o.postalCodes = buildUnnamed547(); | 348 o.postalCodes = buildUnnamed566(); |
293 } | 349 } |
294 buildCounterAccountShippingLocationGroup--; | 350 buildCounterAccountShippingLocationGroup--; |
295 return o; | 351 return o; |
296 } | 352 } |
297 | 353 |
298 checkAccountShippingLocationGroup(api.AccountShippingLocationGroup o) { | 354 checkAccountShippingLocationGroup(api.AccountShippingLocationGroup o) { |
299 buildCounterAccountShippingLocationGroup++; | 355 buildCounterAccountShippingLocationGroup++; |
300 if (buildCounterAccountShippingLocationGroup < 3) { | 356 if (buildCounterAccountShippingLocationGroup < 3) { |
301 unittest.expect(o.country, unittest.equals('foo')); | 357 unittest.expect(o.country, unittest.equals('foo')); |
302 checkUnnamed545(o.locationIds); | 358 checkUnnamed564(o.locationIds); |
303 unittest.expect(o.name, unittest.equals('foo')); | 359 unittest.expect(o.name, unittest.equals('foo')); |
304 checkUnnamed546(o.postalCodeRanges); | 360 checkUnnamed565(o.postalCodeRanges); |
305 checkUnnamed547(o.postalCodes); | 361 checkUnnamed566(o.postalCodes); |
306 } | 362 } |
307 buildCounterAccountShippingLocationGroup--; | 363 buildCounterAccountShippingLocationGroup--; |
308 } | 364 } |
309 | 365 |
310 core.int buildCounterAccountShippingPostalCodeRange = 0; | 366 core.int buildCounterAccountShippingPostalCodeRange = 0; |
311 buildAccountShippingPostalCodeRange() { | 367 buildAccountShippingPostalCodeRange() { |
312 var o = new api.AccountShippingPostalCodeRange(); | 368 var o = new api.AccountShippingPostalCodeRange(); |
313 buildCounterAccountShippingPostalCodeRange++; | 369 buildCounterAccountShippingPostalCodeRange++; |
314 if (buildCounterAccountShippingPostalCodeRange < 3) { | 370 if (buildCounterAccountShippingPostalCodeRange < 3) { |
315 o.end = "foo"; | 371 o.end = "foo"; |
316 o.start = "foo"; | 372 o.start = "foo"; |
317 } | 373 } |
318 buildCounterAccountShippingPostalCodeRange--; | 374 buildCounterAccountShippingPostalCodeRange--; |
319 return o; | 375 return o; |
320 } | 376 } |
321 | 377 |
322 checkAccountShippingPostalCodeRange(api.AccountShippingPostalCodeRange o) { | 378 checkAccountShippingPostalCodeRange(api.AccountShippingPostalCodeRange o) { |
323 buildCounterAccountShippingPostalCodeRange++; | 379 buildCounterAccountShippingPostalCodeRange++; |
324 if (buildCounterAccountShippingPostalCodeRange < 3) { | 380 if (buildCounterAccountShippingPostalCodeRange < 3) { |
325 unittest.expect(o.end, unittest.equals('foo')); | 381 unittest.expect(o.end, unittest.equals('foo')); |
326 unittest.expect(o.start, unittest.equals('foo')); | 382 unittest.expect(o.start, unittest.equals('foo')); |
327 } | 383 } |
328 buildCounterAccountShippingPostalCodeRange--; | 384 buildCounterAccountShippingPostalCodeRange--; |
329 } | 385 } |
330 | 386 |
331 buildUnnamed548() { | 387 buildUnnamed567() { |
332 var o = new core.List<api.AccountShippingRateTableCell>(); | 388 var o = new core.List<api.AccountShippingRateTableCell>(); |
333 o.add(buildAccountShippingRateTableCell()); | 389 o.add(buildAccountShippingRateTableCell()); |
334 o.add(buildAccountShippingRateTableCell()); | 390 o.add(buildAccountShippingRateTableCell()); |
335 return o; | 391 return o; |
336 } | 392 } |
337 | 393 |
338 checkUnnamed548(core.List<api.AccountShippingRateTableCell> o) { | 394 checkUnnamed567(core.List<api.AccountShippingRateTableCell> o) { |
339 unittest.expect(o, unittest.hasLength(2)); | 395 unittest.expect(o, unittest.hasLength(2)); |
340 checkAccountShippingRateTableCell(o[0]); | 396 checkAccountShippingRateTableCell(o[0]); |
341 checkAccountShippingRateTableCell(o[1]); | 397 checkAccountShippingRateTableCell(o[1]); |
342 } | 398 } |
343 | 399 |
344 core.int buildCounterAccountShippingRateTable = 0; | 400 core.int buildCounterAccountShippingRateTable = 0; |
345 buildAccountShippingRateTable() { | 401 buildAccountShippingRateTable() { |
346 var o = new api.AccountShippingRateTable(); | 402 var o = new api.AccountShippingRateTable(); |
347 buildCounterAccountShippingRateTable++; | 403 buildCounterAccountShippingRateTable++; |
348 if (buildCounterAccountShippingRateTable < 3) { | 404 if (buildCounterAccountShippingRateTable < 3) { |
349 o.content = buildUnnamed548(); | 405 o.content = buildUnnamed567(); |
350 o.name = "foo"; | 406 o.name = "foo"; |
351 o.saleCountry = "foo"; | 407 o.saleCountry = "foo"; |
352 } | 408 } |
353 buildCounterAccountShippingRateTable--; | 409 buildCounterAccountShippingRateTable--; |
354 return o; | 410 return o; |
355 } | 411 } |
356 | 412 |
357 checkAccountShippingRateTable(api.AccountShippingRateTable o) { | 413 checkAccountShippingRateTable(api.AccountShippingRateTable o) { |
358 buildCounterAccountShippingRateTable++; | 414 buildCounterAccountShippingRateTable++; |
359 if (buildCounterAccountShippingRateTable < 3) { | 415 if (buildCounterAccountShippingRateTable < 3) { |
360 checkUnnamed548(o.content); | 416 checkUnnamed567(o.content); |
361 unittest.expect(o.name, unittest.equals('foo')); | 417 unittest.expect(o.name, unittest.equals('foo')); |
362 unittest.expect(o.saleCountry, unittest.equals('foo')); | 418 unittest.expect(o.saleCountry, unittest.equals('foo')); |
363 } | 419 } |
364 buildCounterAccountShippingRateTable--; | 420 buildCounterAccountShippingRateTable--; |
365 } | 421 } |
366 | 422 |
367 core.int buildCounterAccountShippingRateTableCell = 0; | 423 core.int buildCounterAccountShippingRateTableCell = 0; |
368 buildAccountShippingRateTableCell() { | 424 buildAccountShippingRateTableCell() { |
369 var o = new api.AccountShippingRateTableCell(); | 425 var o = new api.AccountShippingRateTableCell(); |
370 buildCounterAccountShippingRateTableCell++; | 426 buildCounterAccountShippingRateTableCell++; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 if (buildCounterAccountShippingShippingServiceCalculationMethod < 3) { | 488 if (buildCounterAccountShippingShippingServiceCalculationMethod < 3) { |
433 unittest.expect(o.carrierRate, unittest.equals('foo')); | 489 unittest.expect(o.carrierRate, unittest.equals('foo')); |
434 unittest.expect(o.excluded, unittest.isTrue); | 490 unittest.expect(o.excluded, unittest.isTrue); |
435 checkPrice(o.flatRate); | 491 checkPrice(o.flatRate); |
436 unittest.expect(o.percentageRate, unittest.equals('foo')); | 492 unittest.expect(o.percentageRate, unittest.equals('foo')); |
437 unittest.expect(o.rateTable, unittest.equals('foo')); | 493 unittest.expect(o.rateTable, unittest.equals('foo')); |
438 } | 494 } |
439 buildCounterAccountShippingShippingServiceCalculationMethod--; | 495 buildCounterAccountShippingShippingServiceCalculationMethod--; |
440 } | 496 } |
441 | 497 |
442 buildUnnamed549() { | 498 buildUnnamed568() { |
443 var o = new core.List<api.AccountShippingShippingServiceCostRule>(); | 499 var o = new core.List<api.AccountShippingShippingServiceCostRule>(); |
444 o.add(buildAccountShippingShippingServiceCostRule()); | 500 o.add(buildAccountShippingShippingServiceCostRule()); |
445 o.add(buildAccountShippingShippingServiceCostRule()); | 501 o.add(buildAccountShippingShippingServiceCostRule()); |
446 return o; | 502 return o; |
447 } | 503 } |
448 | 504 |
449 checkUnnamed549(core.List<api.AccountShippingShippingServiceCostRule> o) { | 505 checkUnnamed568(core.List<api.AccountShippingShippingServiceCostRule> o) { |
450 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
451 checkAccountShippingShippingServiceCostRule(o[0]); | 507 checkAccountShippingShippingServiceCostRule(o[0]); |
452 checkAccountShippingShippingServiceCostRule(o[1]); | 508 checkAccountShippingShippingServiceCostRule(o[1]); |
453 } | 509 } |
454 | 510 |
455 core.int buildCounterAccountShippingShippingServiceCostRule = 0; | 511 core.int buildCounterAccountShippingShippingServiceCostRule = 0; |
456 buildAccountShippingShippingServiceCostRule() { | 512 buildAccountShippingShippingServiceCostRule() { |
457 var o = new api.AccountShippingShippingServiceCostRule(); | 513 var o = new api.AccountShippingShippingServiceCostRule(); |
458 buildCounterAccountShippingShippingServiceCostRule++; | 514 buildCounterAccountShippingShippingServiceCostRule++; |
459 if (buildCounterAccountShippingShippingServiceCostRule < 3) { | 515 if (buildCounterAccountShippingShippingServiceCostRule < 3) { |
460 o.calculationMethod = buildAccountShippingShippingServiceCalculationMethod()
; | 516 o.calculationMethod = buildAccountShippingShippingServiceCalculationMethod()
; |
461 o.children = buildUnnamed549(); | 517 o.children = buildUnnamed568(); |
462 o.condition = buildAccountShippingCondition(); | 518 o.condition = buildAccountShippingCondition(); |
463 } | 519 } |
464 buildCounterAccountShippingShippingServiceCostRule--; | 520 buildCounterAccountShippingShippingServiceCostRule--; |
465 return o; | 521 return o; |
466 } | 522 } |
467 | 523 |
468 checkAccountShippingShippingServiceCostRule(api.AccountShippingShippingServiceCo
stRule o) { | 524 checkAccountShippingShippingServiceCostRule(api.AccountShippingShippingServiceCo
stRule o) { |
469 buildCounterAccountShippingShippingServiceCostRule++; | 525 buildCounterAccountShippingShippingServiceCostRule++; |
470 if (buildCounterAccountShippingShippingServiceCostRule < 3) { | 526 if (buildCounterAccountShippingShippingServiceCostRule < 3) { |
471 checkAccountShippingShippingServiceCalculationMethod(o.calculationMethod); | 527 checkAccountShippingShippingServiceCalculationMethod(o.calculationMethod); |
472 checkUnnamed549(o.children); | 528 checkUnnamed568(o.children); |
473 checkAccountShippingCondition(o.condition); | 529 checkAccountShippingCondition(o.condition); |
474 } | 530 } |
475 buildCounterAccountShippingShippingServiceCostRule--; | 531 buildCounterAccountShippingShippingServiceCostRule--; |
476 } | 532 } |
477 | 533 |
478 buildUnnamed550() { | 534 buildUnnamed569() { |
479 var o = new core.List<api.AccountStatusDataQualityIssue>(); | 535 var o = new core.List<api.AccountStatusDataQualityIssue>(); |
480 o.add(buildAccountStatusDataQualityIssue()); | 536 o.add(buildAccountStatusDataQualityIssue()); |
481 o.add(buildAccountStatusDataQualityIssue()); | 537 o.add(buildAccountStatusDataQualityIssue()); |
482 return o; | 538 return o; |
483 } | 539 } |
484 | 540 |
485 checkUnnamed550(core.List<api.AccountStatusDataQualityIssue> o) { | 541 checkUnnamed569(core.List<api.AccountStatusDataQualityIssue> o) { |
486 unittest.expect(o, unittest.hasLength(2)); | 542 unittest.expect(o, unittest.hasLength(2)); |
487 checkAccountStatusDataQualityIssue(o[0]); | 543 checkAccountStatusDataQualityIssue(o[0]); |
488 checkAccountStatusDataQualityIssue(o[1]); | 544 checkAccountStatusDataQualityIssue(o[1]); |
489 } | 545 } |
490 | 546 |
491 core.int buildCounterAccountStatus = 0; | 547 core.int buildCounterAccountStatus = 0; |
492 buildAccountStatus() { | 548 buildAccountStatus() { |
493 var o = new api.AccountStatus(); | 549 var o = new api.AccountStatus(); |
494 buildCounterAccountStatus++; | 550 buildCounterAccountStatus++; |
495 if (buildCounterAccountStatus < 3) { | 551 if (buildCounterAccountStatus < 3) { |
496 o.accountId = "foo"; | 552 o.accountId = "foo"; |
497 o.dataQualityIssues = buildUnnamed550(); | 553 o.dataQualityIssues = buildUnnamed569(); |
498 o.kind = "foo"; | 554 o.kind = "foo"; |
499 } | 555 } |
500 buildCounterAccountStatus--; | 556 buildCounterAccountStatus--; |
501 return o; | 557 return o; |
502 } | 558 } |
503 | 559 |
504 checkAccountStatus(api.AccountStatus o) { | 560 checkAccountStatus(api.AccountStatus o) { |
505 buildCounterAccountStatus++; | 561 buildCounterAccountStatus++; |
506 if (buildCounterAccountStatus < 3) { | 562 if (buildCounterAccountStatus < 3) { |
507 unittest.expect(o.accountId, unittest.equals('foo')); | 563 unittest.expect(o.accountId, unittest.equals('foo')); |
508 checkUnnamed550(o.dataQualityIssues); | 564 checkUnnamed569(o.dataQualityIssues); |
509 unittest.expect(o.kind, unittest.equals('foo')); | 565 unittest.expect(o.kind, unittest.equals('foo')); |
510 } | 566 } |
511 buildCounterAccountStatus--; | 567 buildCounterAccountStatus--; |
512 } | 568 } |
513 | 569 |
514 buildUnnamed551() { | 570 buildUnnamed570() { |
515 var o = new core.List<api.AccountStatusExampleItem>(); | 571 var o = new core.List<api.AccountStatusExampleItem>(); |
516 o.add(buildAccountStatusExampleItem()); | 572 o.add(buildAccountStatusExampleItem()); |
517 o.add(buildAccountStatusExampleItem()); | 573 o.add(buildAccountStatusExampleItem()); |
518 return o; | 574 return o; |
519 } | 575 } |
520 | 576 |
521 checkUnnamed551(core.List<api.AccountStatusExampleItem> o) { | 577 checkUnnamed570(core.List<api.AccountStatusExampleItem> o) { |
522 unittest.expect(o, unittest.hasLength(2)); | 578 unittest.expect(o, unittest.hasLength(2)); |
523 checkAccountStatusExampleItem(o[0]); | 579 checkAccountStatusExampleItem(o[0]); |
524 checkAccountStatusExampleItem(o[1]); | 580 checkAccountStatusExampleItem(o[1]); |
525 } | 581 } |
526 | 582 |
527 core.int buildCounterAccountStatusDataQualityIssue = 0; | 583 core.int buildCounterAccountStatusDataQualityIssue = 0; |
528 buildAccountStatusDataQualityIssue() { | 584 buildAccountStatusDataQualityIssue() { |
529 var o = new api.AccountStatusDataQualityIssue(); | 585 var o = new api.AccountStatusDataQualityIssue(); |
530 buildCounterAccountStatusDataQualityIssue++; | 586 buildCounterAccountStatusDataQualityIssue++; |
531 if (buildCounterAccountStatusDataQualityIssue < 3) { | 587 if (buildCounterAccountStatusDataQualityIssue < 3) { |
532 o.country = "foo"; | 588 o.country = "foo"; |
533 o.displayedValue = "foo"; | 589 o.displayedValue = "foo"; |
534 o.exampleItems = buildUnnamed551(); | 590 o.exampleItems = buildUnnamed570(); |
535 o.id = "foo"; | 591 o.id = "foo"; |
536 o.lastChecked = "foo"; | 592 o.lastChecked = "foo"; |
537 o.numItems = 42; | 593 o.numItems = 42; |
538 o.severity = "foo"; | 594 o.severity = "foo"; |
539 o.submittedValue = "foo"; | 595 o.submittedValue = "foo"; |
540 } | 596 } |
541 buildCounterAccountStatusDataQualityIssue--; | 597 buildCounterAccountStatusDataQualityIssue--; |
542 return o; | 598 return o; |
543 } | 599 } |
544 | 600 |
545 checkAccountStatusDataQualityIssue(api.AccountStatusDataQualityIssue o) { | 601 checkAccountStatusDataQualityIssue(api.AccountStatusDataQualityIssue o) { |
546 buildCounterAccountStatusDataQualityIssue++; | 602 buildCounterAccountStatusDataQualityIssue++; |
547 if (buildCounterAccountStatusDataQualityIssue < 3) { | 603 if (buildCounterAccountStatusDataQualityIssue < 3) { |
548 unittest.expect(o.country, unittest.equals('foo')); | 604 unittest.expect(o.country, unittest.equals('foo')); |
549 unittest.expect(o.displayedValue, unittest.equals('foo')); | 605 unittest.expect(o.displayedValue, unittest.equals('foo')); |
550 checkUnnamed551(o.exampleItems); | 606 checkUnnamed570(o.exampleItems); |
551 unittest.expect(o.id, unittest.equals('foo')); | 607 unittest.expect(o.id, unittest.equals('foo')); |
552 unittest.expect(o.lastChecked, unittest.equals('foo')); | 608 unittest.expect(o.lastChecked, unittest.equals('foo')); |
553 unittest.expect(o.numItems, unittest.equals(42)); | 609 unittest.expect(o.numItems, unittest.equals(42)); |
554 unittest.expect(o.severity, unittest.equals('foo')); | 610 unittest.expect(o.severity, unittest.equals('foo')); |
555 unittest.expect(o.submittedValue, unittest.equals('foo')); | 611 unittest.expect(o.submittedValue, unittest.equals('foo')); |
556 } | 612 } |
557 buildCounterAccountStatusDataQualityIssue--; | 613 buildCounterAccountStatusDataQualityIssue--; |
558 } | 614 } |
559 | 615 |
560 core.int buildCounterAccountStatusExampleItem = 0; | 616 core.int buildCounterAccountStatusExampleItem = 0; |
(...skipping 16 matching lines...) Expand all Loading... |
577 if (buildCounterAccountStatusExampleItem < 3) { | 633 if (buildCounterAccountStatusExampleItem < 3) { |
578 unittest.expect(o.itemId, unittest.equals('foo')); | 634 unittest.expect(o.itemId, unittest.equals('foo')); |
579 unittest.expect(o.link, unittest.equals('foo')); | 635 unittest.expect(o.link, unittest.equals('foo')); |
580 unittest.expect(o.submittedValue, unittest.equals('foo')); | 636 unittest.expect(o.submittedValue, unittest.equals('foo')); |
581 unittest.expect(o.title, unittest.equals('foo')); | 637 unittest.expect(o.title, unittest.equals('foo')); |
582 unittest.expect(o.valueOnLandingPage, unittest.equals('foo')); | 638 unittest.expect(o.valueOnLandingPage, unittest.equals('foo')); |
583 } | 639 } |
584 buildCounterAccountStatusExampleItem--; | 640 buildCounterAccountStatusExampleItem--; |
585 } | 641 } |
586 | 642 |
587 buildUnnamed552() { | 643 buildUnnamed571() { |
588 var o = new core.List<api.AccountTaxTaxRule>(); | 644 var o = new core.List<api.AccountTaxTaxRule>(); |
589 o.add(buildAccountTaxTaxRule()); | 645 o.add(buildAccountTaxTaxRule()); |
590 o.add(buildAccountTaxTaxRule()); | 646 o.add(buildAccountTaxTaxRule()); |
591 return o; | 647 return o; |
592 } | 648 } |
593 | 649 |
594 checkUnnamed552(core.List<api.AccountTaxTaxRule> o) { | 650 checkUnnamed571(core.List<api.AccountTaxTaxRule> o) { |
595 unittest.expect(o, unittest.hasLength(2)); | 651 unittest.expect(o, unittest.hasLength(2)); |
596 checkAccountTaxTaxRule(o[0]); | 652 checkAccountTaxTaxRule(o[0]); |
597 checkAccountTaxTaxRule(o[1]); | 653 checkAccountTaxTaxRule(o[1]); |
598 } | 654 } |
599 | 655 |
600 core.int buildCounterAccountTax = 0; | 656 core.int buildCounterAccountTax = 0; |
601 buildAccountTax() { | 657 buildAccountTax() { |
602 var o = new api.AccountTax(); | 658 var o = new api.AccountTax(); |
603 buildCounterAccountTax++; | 659 buildCounterAccountTax++; |
604 if (buildCounterAccountTax < 3) { | 660 if (buildCounterAccountTax < 3) { |
605 o.accountId = "foo"; | 661 o.accountId = "foo"; |
606 o.kind = "foo"; | 662 o.kind = "foo"; |
607 o.rules = buildUnnamed552(); | 663 o.rules = buildUnnamed571(); |
608 } | 664 } |
609 buildCounterAccountTax--; | 665 buildCounterAccountTax--; |
610 return o; | 666 return o; |
611 } | 667 } |
612 | 668 |
613 checkAccountTax(api.AccountTax o) { | 669 checkAccountTax(api.AccountTax o) { |
614 buildCounterAccountTax++; | 670 buildCounterAccountTax++; |
615 if (buildCounterAccountTax < 3) { | 671 if (buildCounterAccountTax < 3) { |
616 unittest.expect(o.accountId, unittest.equals('foo')); | 672 unittest.expect(o.accountId, unittest.equals('foo')); |
617 unittest.expect(o.kind, unittest.equals('foo')); | 673 unittest.expect(o.kind, unittest.equals('foo')); |
618 checkUnnamed552(o.rules); | 674 checkUnnamed571(o.rules); |
619 } | 675 } |
620 buildCounterAccountTax--; | 676 buildCounterAccountTax--; |
621 } | 677 } |
622 | 678 |
623 core.int buildCounterAccountTaxTaxRule = 0; | 679 core.int buildCounterAccountTaxTaxRule = 0; |
624 buildAccountTaxTaxRule() { | 680 buildAccountTaxTaxRule() { |
625 var o = new api.AccountTaxTaxRule(); | 681 var o = new api.AccountTaxTaxRule(); |
626 buildCounterAccountTaxTaxRule++; | 682 buildCounterAccountTaxTaxRule++; |
627 if (buildCounterAccountTaxTaxRule < 3) { | 683 if (buildCounterAccountTaxTaxRule < 3) { |
628 o.country = "foo"; | 684 o.country = "foo"; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 | 717 |
662 checkAccountUser(api.AccountUser o) { | 718 checkAccountUser(api.AccountUser o) { |
663 buildCounterAccountUser++; | 719 buildCounterAccountUser++; |
664 if (buildCounterAccountUser < 3) { | 720 if (buildCounterAccountUser < 3) { |
665 unittest.expect(o.admin, unittest.isTrue); | 721 unittest.expect(o.admin, unittest.isTrue); |
666 unittest.expect(o.emailAddress, unittest.equals('foo')); | 722 unittest.expect(o.emailAddress, unittest.equals('foo')); |
667 } | 723 } |
668 buildCounterAccountUser--; | 724 buildCounterAccountUser--; |
669 } | 725 } |
670 | 726 |
671 buildUnnamed553() { | 727 buildUnnamed572() { |
| 728 var o = new core.List<api.AccountIdentifier>(); |
| 729 o.add(buildAccountIdentifier()); |
| 730 o.add(buildAccountIdentifier()); |
| 731 return o; |
| 732 } |
| 733 |
| 734 checkUnnamed572(core.List<api.AccountIdentifier> o) { |
| 735 unittest.expect(o, unittest.hasLength(2)); |
| 736 checkAccountIdentifier(o[0]); |
| 737 checkAccountIdentifier(o[1]); |
| 738 } |
| 739 |
| 740 core.int buildCounterAccountsAuthInfoResponse = 0; |
| 741 buildAccountsAuthInfoResponse() { |
| 742 var o = new api.AccountsAuthInfoResponse(); |
| 743 buildCounterAccountsAuthInfoResponse++; |
| 744 if (buildCounterAccountsAuthInfoResponse < 3) { |
| 745 o.accountIdentifiers = buildUnnamed572(); |
| 746 o.kind = "foo"; |
| 747 } |
| 748 buildCounterAccountsAuthInfoResponse--; |
| 749 return o; |
| 750 } |
| 751 |
| 752 checkAccountsAuthInfoResponse(api.AccountsAuthInfoResponse o) { |
| 753 buildCounterAccountsAuthInfoResponse++; |
| 754 if (buildCounterAccountsAuthInfoResponse < 3) { |
| 755 checkUnnamed572(o.accountIdentifiers); |
| 756 unittest.expect(o.kind, unittest.equals('foo')); |
| 757 } |
| 758 buildCounterAccountsAuthInfoResponse--; |
| 759 } |
| 760 |
| 761 buildUnnamed573() { |
672 var o = new core.List<api.AccountsCustomBatchRequestEntry>(); | 762 var o = new core.List<api.AccountsCustomBatchRequestEntry>(); |
673 o.add(buildAccountsCustomBatchRequestEntry()); | 763 o.add(buildAccountsCustomBatchRequestEntry()); |
674 o.add(buildAccountsCustomBatchRequestEntry()); | 764 o.add(buildAccountsCustomBatchRequestEntry()); |
675 return o; | 765 return o; |
676 } | 766 } |
677 | 767 |
678 checkUnnamed553(core.List<api.AccountsCustomBatchRequestEntry> o) { | 768 checkUnnamed573(core.List<api.AccountsCustomBatchRequestEntry> o) { |
679 unittest.expect(o, unittest.hasLength(2)); | 769 unittest.expect(o, unittest.hasLength(2)); |
680 checkAccountsCustomBatchRequestEntry(o[0]); | 770 checkAccountsCustomBatchRequestEntry(o[0]); |
681 checkAccountsCustomBatchRequestEntry(o[1]); | 771 checkAccountsCustomBatchRequestEntry(o[1]); |
682 } | 772 } |
683 | 773 |
684 core.int buildCounterAccountsCustomBatchRequest = 0; | 774 core.int buildCounterAccountsCustomBatchRequest = 0; |
685 buildAccountsCustomBatchRequest() { | 775 buildAccountsCustomBatchRequest() { |
686 var o = new api.AccountsCustomBatchRequest(); | 776 var o = new api.AccountsCustomBatchRequest(); |
687 buildCounterAccountsCustomBatchRequest++; | 777 buildCounterAccountsCustomBatchRequest++; |
688 if (buildCounterAccountsCustomBatchRequest < 3) { | 778 if (buildCounterAccountsCustomBatchRequest < 3) { |
689 o.entries = buildUnnamed553(); | 779 o.entries = buildUnnamed573(); |
690 } | 780 } |
691 buildCounterAccountsCustomBatchRequest--; | 781 buildCounterAccountsCustomBatchRequest--; |
692 return o; | 782 return o; |
693 } | 783 } |
694 | 784 |
695 checkAccountsCustomBatchRequest(api.AccountsCustomBatchRequest o) { | 785 checkAccountsCustomBatchRequest(api.AccountsCustomBatchRequest o) { |
696 buildCounterAccountsCustomBatchRequest++; | 786 buildCounterAccountsCustomBatchRequest++; |
697 if (buildCounterAccountsCustomBatchRequest < 3) { | 787 if (buildCounterAccountsCustomBatchRequest < 3) { |
698 checkUnnamed553(o.entries); | 788 checkUnnamed573(o.entries); |
699 } | 789 } |
700 buildCounterAccountsCustomBatchRequest--; | 790 buildCounterAccountsCustomBatchRequest--; |
701 } | 791 } |
702 | 792 |
703 core.int buildCounterAccountsCustomBatchRequestEntry = 0; | 793 core.int buildCounterAccountsCustomBatchRequestEntry = 0; |
704 buildAccountsCustomBatchRequestEntry() { | 794 buildAccountsCustomBatchRequestEntry() { |
705 var o = new api.AccountsCustomBatchRequestEntry(); | 795 var o = new api.AccountsCustomBatchRequestEntry(); |
706 buildCounterAccountsCustomBatchRequestEntry++; | 796 buildCounterAccountsCustomBatchRequestEntry++; |
707 if (buildCounterAccountsCustomBatchRequestEntry < 3) { | 797 if (buildCounterAccountsCustomBatchRequestEntry < 3) { |
708 o.account = buildAccount(); | 798 o.account = buildAccount(); |
(...skipping 11 matching lines...) Expand all Loading... |
720 if (buildCounterAccountsCustomBatchRequestEntry < 3) { | 810 if (buildCounterAccountsCustomBatchRequestEntry < 3) { |
721 checkAccount(o.account); | 811 checkAccount(o.account); |
722 unittest.expect(o.accountId, unittest.equals('foo')); | 812 unittest.expect(o.accountId, unittest.equals('foo')); |
723 unittest.expect(o.batchId, unittest.equals(42)); | 813 unittest.expect(o.batchId, unittest.equals(42)); |
724 unittest.expect(o.merchantId, unittest.equals('foo')); | 814 unittest.expect(o.merchantId, unittest.equals('foo')); |
725 unittest.expect(o.method, unittest.equals('foo')); | 815 unittest.expect(o.method, unittest.equals('foo')); |
726 } | 816 } |
727 buildCounterAccountsCustomBatchRequestEntry--; | 817 buildCounterAccountsCustomBatchRequestEntry--; |
728 } | 818 } |
729 | 819 |
730 buildUnnamed554() { | 820 buildUnnamed574() { |
731 var o = new core.List<api.AccountsCustomBatchResponseEntry>(); | 821 var o = new core.List<api.AccountsCustomBatchResponseEntry>(); |
732 o.add(buildAccountsCustomBatchResponseEntry()); | 822 o.add(buildAccountsCustomBatchResponseEntry()); |
733 o.add(buildAccountsCustomBatchResponseEntry()); | 823 o.add(buildAccountsCustomBatchResponseEntry()); |
734 return o; | 824 return o; |
735 } | 825 } |
736 | 826 |
737 checkUnnamed554(core.List<api.AccountsCustomBatchResponseEntry> o) { | 827 checkUnnamed574(core.List<api.AccountsCustomBatchResponseEntry> o) { |
738 unittest.expect(o, unittest.hasLength(2)); | 828 unittest.expect(o, unittest.hasLength(2)); |
739 checkAccountsCustomBatchResponseEntry(o[0]); | 829 checkAccountsCustomBatchResponseEntry(o[0]); |
740 checkAccountsCustomBatchResponseEntry(o[1]); | 830 checkAccountsCustomBatchResponseEntry(o[1]); |
741 } | 831 } |
742 | 832 |
743 core.int buildCounterAccountsCustomBatchResponse = 0; | 833 core.int buildCounterAccountsCustomBatchResponse = 0; |
744 buildAccountsCustomBatchResponse() { | 834 buildAccountsCustomBatchResponse() { |
745 var o = new api.AccountsCustomBatchResponse(); | 835 var o = new api.AccountsCustomBatchResponse(); |
746 buildCounterAccountsCustomBatchResponse++; | 836 buildCounterAccountsCustomBatchResponse++; |
747 if (buildCounterAccountsCustomBatchResponse < 3) { | 837 if (buildCounterAccountsCustomBatchResponse < 3) { |
748 o.entries = buildUnnamed554(); | 838 o.entries = buildUnnamed574(); |
749 o.kind = "foo"; | 839 o.kind = "foo"; |
750 } | 840 } |
751 buildCounterAccountsCustomBatchResponse--; | 841 buildCounterAccountsCustomBatchResponse--; |
752 return o; | 842 return o; |
753 } | 843 } |
754 | 844 |
755 checkAccountsCustomBatchResponse(api.AccountsCustomBatchResponse o) { | 845 checkAccountsCustomBatchResponse(api.AccountsCustomBatchResponse o) { |
756 buildCounterAccountsCustomBatchResponse++; | 846 buildCounterAccountsCustomBatchResponse++; |
757 if (buildCounterAccountsCustomBatchResponse < 3) { | 847 if (buildCounterAccountsCustomBatchResponse < 3) { |
758 checkUnnamed554(o.entries); | 848 checkUnnamed574(o.entries); |
759 unittest.expect(o.kind, unittest.equals('foo')); | 849 unittest.expect(o.kind, unittest.equals('foo')); |
760 } | 850 } |
761 buildCounterAccountsCustomBatchResponse--; | 851 buildCounterAccountsCustomBatchResponse--; |
762 } | 852 } |
763 | 853 |
764 core.int buildCounterAccountsCustomBatchResponseEntry = 0; | 854 core.int buildCounterAccountsCustomBatchResponseEntry = 0; |
765 buildAccountsCustomBatchResponseEntry() { | 855 buildAccountsCustomBatchResponseEntry() { |
766 var o = new api.AccountsCustomBatchResponseEntry(); | 856 var o = new api.AccountsCustomBatchResponseEntry(); |
767 buildCounterAccountsCustomBatchResponseEntry++; | 857 buildCounterAccountsCustomBatchResponseEntry++; |
768 if (buildCounterAccountsCustomBatchResponseEntry < 3) { | 858 if (buildCounterAccountsCustomBatchResponseEntry < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
779 buildCounterAccountsCustomBatchResponseEntry++; | 869 buildCounterAccountsCustomBatchResponseEntry++; |
780 if (buildCounterAccountsCustomBatchResponseEntry < 3) { | 870 if (buildCounterAccountsCustomBatchResponseEntry < 3) { |
781 checkAccount(o.account); | 871 checkAccount(o.account); |
782 unittest.expect(o.batchId, unittest.equals(42)); | 872 unittest.expect(o.batchId, unittest.equals(42)); |
783 checkErrors(o.errors); | 873 checkErrors(o.errors); |
784 unittest.expect(o.kind, unittest.equals('foo')); | 874 unittest.expect(o.kind, unittest.equals('foo')); |
785 } | 875 } |
786 buildCounterAccountsCustomBatchResponseEntry--; | 876 buildCounterAccountsCustomBatchResponseEntry--; |
787 } | 877 } |
788 | 878 |
789 buildUnnamed555() { | 879 buildUnnamed575() { |
790 var o = new core.List<api.Account>(); | 880 var o = new core.List<api.Account>(); |
791 o.add(buildAccount()); | 881 o.add(buildAccount()); |
792 o.add(buildAccount()); | 882 o.add(buildAccount()); |
793 return o; | 883 return o; |
794 } | 884 } |
795 | 885 |
796 checkUnnamed555(core.List<api.Account> o) { | 886 checkUnnamed575(core.List<api.Account> o) { |
797 unittest.expect(o, unittest.hasLength(2)); | 887 unittest.expect(o, unittest.hasLength(2)); |
798 checkAccount(o[0]); | 888 checkAccount(o[0]); |
799 checkAccount(o[1]); | 889 checkAccount(o[1]); |
800 } | 890 } |
801 | 891 |
802 core.int buildCounterAccountsListResponse = 0; | 892 core.int buildCounterAccountsListResponse = 0; |
803 buildAccountsListResponse() { | 893 buildAccountsListResponse() { |
804 var o = new api.AccountsListResponse(); | 894 var o = new api.AccountsListResponse(); |
805 buildCounterAccountsListResponse++; | 895 buildCounterAccountsListResponse++; |
806 if (buildCounterAccountsListResponse < 3) { | 896 if (buildCounterAccountsListResponse < 3) { |
807 o.kind = "foo"; | 897 o.kind = "foo"; |
808 o.nextPageToken = "foo"; | 898 o.nextPageToken = "foo"; |
809 o.resources = buildUnnamed555(); | 899 o.resources = buildUnnamed575(); |
810 } | 900 } |
811 buildCounterAccountsListResponse--; | 901 buildCounterAccountsListResponse--; |
812 return o; | 902 return o; |
813 } | 903 } |
814 | 904 |
815 checkAccountsListResponse(api.AccountsListResponse o) { | 905 checkAccountsListResponse(api.AccountsListResponse o) { |
816 buildCounterAccountsListResponse++; | 906 buildCounterAccountsListResponse++; |
817 if (buildCounterAccountsListResponse < 3) { | 907 if (buildCounterAccountsListResponse < 3) { |
818 unittest.expect(o.kind, unittest.equals('foo')); | 908 unittest.expect(o.kind, unittest.equals('foo')); |
819 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 909 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
820 checkUnnamed555(o.resources); | 910 checkUnnamed575(o.resources); |
821 } | 911 } |
822 buildCounterAccountsListResponse--; | 912 buildCounterAccountsListResponse--; |
823 } | 913 } |
824 | 914 |
825 buildUnnamed556() { | 915 buildUnnamed576() { |
826 var o = new core.List<api.AccountshippingCustomBatchRequestEntry>(); | 916 var o = new core.List<api.AccountshippingCustomBatchRequestEntry>(); |
827 o.add(buildAccountshippingCustomBatchRequestEntry()); | 917 o.add(buildAccountshippingCustomBatchRequestEntry()); |
828 o.add(buildAccountshippingCustomBatchRequestEntry()); | 918 o.add(buildAccountshippingCustomBatchRequestEntry()); |
829 return o; | 919 return o; |
830 } | 920 } |
831 | 921 |
832 checkUnnamed556(core.List<api.AccountshippingCustomBatchRequestEntry> o) { | 922 checkUnnamed576(core.List<api.AccountshippingCustomBatchRequestEntry> o) { |
833 unittest.expect(o, unittest.hasLength(2)); | 923 unittest.expect(o, unittest.hasLength(2)); |
834 checkAccountshippingCustomBatchRequestEntry(o[0]); | 924 checkAccountshippingCustomBatchRequestEntry(o[0]); |
835 checkAccountshippingCustomBatchRequestEntry(o[1]); | 925 checkAccountshippingCustomBatchRequestEntry(o[1]); |
836 } | 926 } |
837 | 927 |
838 core.int buildCounterAccountshippingCustomBatchRequest = 0; | 928 core.int buildCounterAccountshippingCustomBatchRequest = 0; |
839 buildAccountshippingCustomBatchRequest() { | 929 buildAccountshippingCustomBatchRequest() { |
840 var o = new api.AccountshippingCustomBatchRequest(); | 930 var o = new api.AccountshippingCustomBatchRequest(); |
841 buildCounterAccountshippingCustomBatchRequest++; | 931 buildCounterAccountshippingCustomBatchRequest++; |
842 if (buildCounterAccountshippingCustomBatchRequest < 3) { | 932 if (buildCounterAccountshippingCustomBatchRequest < 3) { |
843 o.entries = buildUnnamed556(); | 933 o.entries = buildUnnamed576(); |
844 } | 934 } |
845 buildCounterAccountshippingCustomBatchRequest--; | 935 buildCounterAccountshippingCustomBatchRequest--; |
846 return o; | 936 return o; |
847 } | 937 } |
848 | 938 |
849 checkAccountshippingCustomBatchRequest(api.AccountshippingCustomBatchRequest o)
{ | 939 checkAccountshippingCustomBatchRequest(api.AccountshippingCustomBatchRequest o)
{ |
850 buildCounterAccountshippingCustomBatchRequest++; | 940 buildCounterAccountshippingCustomBatchRequest++; |
851 if (buildCounterAccountshippingCustomBatchRequest < 3) { | 941 if (buildCounterAccountshippingCustomBatchRequest < 3) { |
852 checkUnnamed556(o.entries); | 942 checkUnnamed576(o.entries); |
853 } | 943 } |
854 buildCounterAccountshippingCustomBatchRequest--; | 944 buildCounterAccountshippingCustomBatchRequest--; |
855 } | 945 } |
856 | 946 |
857 core.int buildCounterAccountshippingCustomBatchRequestEntry = 0; | 947 core.int buildCounterAccountshippingCustomBatchRequestEntry = 0; |
858 buildAccountshippingCustomBatchRequestEntry() { | 948 buildAccountshippingCustomBatchRequestEntry() { |
859 var o = new api.AccountshippingCustomBatchRequestEntry(); | 949 var o = new api.AccountshippingCustomBatchRequestEntry(); |
860 buildCounterAccountshippingCustomBatchRequestEntry++; | 950 buildCounterAccountshippingCustomBatchRequestEntry++; |
861 if (buildCounterAccountshippingCustomBatchRequestEntry < 3) { | 951 if (buildCounterAccountshippingCustomBatchRequestEntry < 3) { |
862 o.accountId = "foo"; | 952 o.accountId = "foo"; |
(...skipping 11 matching lines...) Expand all Loading... |
874 if (buildCounterAccountshippingCustomBatchRequestEntry < 3) { | 964 if (buildCounterAccountshippingCustomBatchRequestEntry < 3) { |
875 unittest.expect(o.accountId, unittest.equals('foo')); | 965 unittest.expect(o.accountId, unittest.equals('foo')); |
876 checkAccountShipping(o.accountShipping); | 966 checkAccountShipping(o.accountShipping); |
877 unittest.expect(o.batchId, unittest.equals(42)); | 967 unittest.expect(o.batchId, unittest.equals(42)); |
878 unittest.expect(o.merchantId, unittest.equals('foo')); | 968 unittest.expect(o.merchantId, unittest.equals('foo')); |
879 unittest.expect(o.method, unittest.equals('foo')); | 969 unittest.expect(o.method, unittest.equals('foo')); |
880 } | 970 } |
881 buildCounterAccountshippingCustomBatchRequestEntry--; | 971 buildCounterAccountshippingCustomBatchRequestEntry--; |
882 } | 972 } |
883 | 973 |
884 buildUnnamed557() { | 974 buildUnnamed577() { |
885 var o = new core.List<api.AccountshippingCustomBatchResponseEntry>(); | 975 var o = new core.List<api.AccountshippingCustomBatchResponseEntry>(); |
886 o.add(buildAccountshippingCustomBatchResponseEntry()); | 976 o.add(buildAccountshippingCustomBatchResponseEntry()); |
887 o.add(buildAccountshippingCustomBatchResponseEntry()); | 977 o.add(buildAccountshippingCustomBatchResponseEntry()); |
888 return o; | 978 return o; |
889 } | 979 } |
890 | 980 |
891 checkUnnamed557(core.List<api.AccountshippingCustomBatchResponseEntry> o) { | 981 checkUnnamed577(core.List<api.AccountshippingCustomBatchResponseEntry> o) { |
892 unittest.expect(o, unittest.hasLength(2)); | 982 unittest.expect(o, unittest.hasLength(2)); |
893 checkAccountshippingCustomBatchResponseEntry(o[0]); | 983 checkAccountshippingCustomBatchResponseEntry(o[0]); |
894 checkAccountshippingCustomBatchResponseEntry(o[1]); | 984 checkAccountshippingCustomBatchResponseEntry(o[1]); |
895 } | 985 } |
896 | 986 |
897 core.int buildCounterAccountshippingCustomBatchResponse = 0; | 987 core.int buildCounterAccountshippingCustomBatchResponse = 0; |
898 buildAccountshippingCustomBatchResponse() { | 988 buildAccountshippingCustomBatchResponse() { |
899 var o = new api.AccountshippingCustomBatchResponse(); | 989 var o = new api.AccountshippingCustomBatchResponse(); |
900 buildCounterAccountshippingCustomBatchResponse++; | 990 buildCounterAccountshippingCustomBatchResponse++; |
901 if (buildCounterAccountshippingCustomBatchResponse < 3) { | 991 if (buildCounterAccountshippingCustomBatchResponse < 3) { |
902 o.entries = buildUnnamed557(); | 992 o.entries = buildUnnamed577(); |
903 o.kind = "foo"; | 993 o.kind = "foo"; |
904 } | 994 } |
905 buildCounterAccountshippingCustomBatchResponse--; | 995 buildCounterAccountshippingCustomBatchResponse--; |
906 return o; | 996 return o; |
907 } | 997 } |
908 | 998 |
909 checkAccountshippingCustomBatchResponse(api.AccountshippingCustomBatchResponse o
) { | 999 checkAccountshippingCustomBatchResponse(api.AccountshippingCustomBatchResponse o
) { |
910 buildCounterAccountshippingCustomBatchResponse++; | 1000 buildCounterAccountshippingCustomBatchResponse++; |
911 if (buildCounterAccountshippingCustomBatchResponse < 3) { | 1001 if (buildCounterAccountshippingCustomBatchResponse < 3) { |
912 checkUnnamed557(o.entries); | 1002 checkUnnamed577(o.entries); |
913 unittest.expect(o.kind, unittest.equals('foo')); | 1003 unittest.expect(o.kind, unittest.equals('foo')); |
914 } | 1004 } |
915 buildCounterAccountshippingCustomBatchResponse--; | 1005 buildCounterAccountshippingCustomBatchResponse--; |
916 } | 1006 } |
917 | 1007 |
918 core.int buildCounterAccountshippingCustomBatchResponseEntry = 0; | 1008 core.int buildCounterAccountshippingCustomBatchResponseEntry = 0; |
919 buildAccountshippingCustomBatchResponseEntry() { | 1009 buildAccountshippingCustomBatchResponseEntry() { |
920 var o = new api.AccountshippingCustomBatchResponseEntry(); | 1010 var o = new api.AccountshippingCustomBatchResponseEntry(); |
921 buildCounterAccountshippingCustomBatchResponseEntry++; | 1011 buildCounterAccountshippingCustomBatchResponseEntry++; |
922 if (buildCounterAccountshippingCustomBatchResponseEntry < 3) { | 1012 if (buildCounterAccountshippingCustomBatchResponseEntry < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
933 buildCounterAccountshippingCustomBatchResponseEntry++; | 1023 buildCounterAccountshippingCustomBatchResponseEntry++; |
934 if (buildCounterAccountshippingCustomBatchResponseEntry < 3) { | 1024 if (buildCounterAccountshippingCustomBatchResponseEntry < 3) { |
935 checkAccountShipping(o.accountShipping); | 1025 checkAccountShipping(o.accountShipping); |
936 unittest.expect(o.batchId, unittest.equals(42)); | 1026 unittest.expect(o.batchId, unittest.equals(42)); |
937 checkErrors(o.errors); | 1027 checkErrors(o.errors); |
938 unittest.expect(o.kind, unittest.equals('foo')); | 1028 unittest.expect(o.kind, unittest.equals('foo')); |
939 } | 1029 } |
940 buildCounterAccountshippingCustomBatchResponseEntry--; | 1030 buildCounterAccountshippingCustomBatchResponseEntry--; |
941 } | 1031 } |
942 | 1032 |
943 buildUnnamed558() { | 1033 buildUnnamed578() { |
944 var o = new core.List<api.AccountShipping>(); | 1034 var o = new core.List<api.AccountShipping>(); |
945 o.add(buildAccountShipping()); | 1035 o.add(buildAccountShipping()); |
946 o.add(buildAccountShipping()); | 1036 o.add(buildAccountShipping()); |
947 return o; | 1037 return o; |
948 } | 1038 } |
949 | 1039 |
950 checkUnnamed558(core.List<api.AccountShipping> o) { | 1040 checkUnnamed578(core.List<api.AccountShipping> o) { |
951 unittest.expect(o, unittest.hasLength(2)); | 1041 unittest.expect(o, unittest.hasLength(2)); |
952 checkAccountShipping(o[0]); | 1042 checkAccountShipping(o[0]); |
953 checkAccountShipping(o[1]); | 1043 checkAccountShipping(o[1]); |
954 } | 1044 } |
955 | 1045 |
956 core.int buildCounterAccountshippingListResponse = 0; | 1046 core.int buildCounterAccountshippingListResponse = 0; |
957 buildAccountshippingListResponse() { | 1047 buildAccountshippingListResponse() { |
958 var o = new api.AccountshippingListResponse(); | 1048 var o = new api.AccountshippingListResponse(); |
959 buildCounterAccountshippingListResponse++; | 1049 buildCounterAccountshippingListResponse++; |
960 if (buildCounterAccountshippingListResponse < 3) { | 1050 if (buildCounterAccountshippingListResponse < 3) { |
961 o.kind = "foo"; | 1051 o.kind = "foo"; |
962 o.nextPageToken = "foo"; | 1052 o.nextPageToken = "foo"; |
963 o.resources = buildUnnamed558(); | 1053 o.resources = buildUnnamed578(); |
964 } | 1054 } |
965 buildCounterAccountshippingListResponse--; | 1055 buildCounterAccountshippingListResponse--; |
966 return o; | 1056 return o; |
967 } | 1057 } |
968 | 1058 |
969 checkAccountshippingListResponse(api.AccountshippingListResponse o) { | 1059 checkAccountshippingListResponse(api.AccountshippingListResponse o) { |
970 buildCounterAccountshippingListResponse++; | 1060 buildCounterAccountshippingListResponse++; |
971 if (buildCounterAccountshippingListResponse < 3) { | 1061 if (buildCounterAccountshippingListResponse < 3) { |
972 unittest.expect(o.kind, unittest.equals('foo')); | 1062 unittest.expect(o.kind, unittest.equals('foo')); |
973 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1063 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
974 checkUnnamed558(o.resources); | 1064 checkUnnamed578(o.resources); |
975 } | 1065 } |
976 buildCounterAccountshippingListResponse--; | 1066 buildCounterAccountshippingListResponse--; |
977 } | 1067 } |
978 | 1068 |
979 buildUnnamed559() { | 1069 buildUnnamed579() { |
980 var o = new core.List<api.AccountstatusesCustomBatchRequestEntry>(); | 1070 var o = new core.List<api.AccountstatusesCustomBatchRequestEntry>(); |
981 o.add(buildAccountstatusesCustomBatchRequestEntry()); | 1071 o.add(buildAccountstatusesCustomBatchRequestEntry()); |
982 o.add(buildAccountstatusesCustomBatchRequestEntry()); | 1072 o.add(buildAccountstatusesCustomBatchRequestEntry()); |
983 return o; | 1073 return o; |
984 } | 1074 } |
985 | 1075 |
986 checkUnnamed559(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { | 1076 checkUnnamed579(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { |
987 unittest.expect(o, unittest.hasLength(2)); | 1077 unittest.expect(o, unittest.hasLength(2)); |
988 checkAccountstatusesCustomBatchRequestEntry(o[0]); | 1078 checkAccountstatusesCustomBatchRequestEntry(o[0]); |
989 checkAccountstatusesCustomBatchRequestEntry(o[1]); | 1079 checkAccountstatusesCustomBatchRequestEntry(o[1]); |
990 } | 1080 } |
991 | 1081 |
992 core.int buildCounterAccountstatusesCustomBatchRequest = 0; | 1082 core.int buildCounterAccountstatusesCustomBatchRequest = 0; |
993 buildAccountstatusesCustomBatchRequest() { | 1083 buildAccountstatusesCustomBatchRequest() { |
994 var o = new api.AccountstatusesCustomBatchRequest(); | 1084 var o = new api.AccountstatusesCustomBatchRequest(); |
995 buildCounterAccountstatusesCustomBatchRequest++; | 1085 buildCounterAccountstatusesCustomBatchRequest++; |
996 if (buildCounterAccountstatusesCustomBatchRequest < 3) { | 1086 if (buildCounterAccountstatusesCustomBatchRequest < 3) { |
997 o.entries = buildUnnamed559(); | 1087 o.entries = buildUnnamed579(); |
998 } | 1088 } |
999 buildCounterAccountstatusesCustomBatchRequest--; | 1089 buildCounterAccountstatusesCustomBatchRequest--; |
1000 return o; | 1090 return o; |
1001 } | 1091 } |
1002 | 1092 |
1003 checkAccountstatusesCustomBatchRequest(api.AccountstatusesCustomBatchRequest o)
{ | 1093 checkAccountstatusesCustomBatchRequest(api.AccountstatusesCustomBatchRequest o)
{ |
1004 buildCounterAccountstatusesCustomBatchRequest++; | 1094 buildCounterAccountstatusesCustomBatchRequest++; |
1005 if (buildCounterAccountstatusesCustomBatchRequest < 3) { | 1095 if (buildCounterAccountstatusesCustomBatchRequest < 3) { |
1006 checkUnnamed559(o.entries); | 1096 checkUnnamed579(o.entries); |
1007 } | 1097 } |
1008 buildCounterAccountstatusesCustomBatchRequest--; | 1098 buildCounterAccountstatusesCustomBatchRequest--; |
1009 } | 1099 } |
1010 | 1100 |
1011 core.int buildCounterAccountstatusesCustomBatchRequestEntry = 0; | 1101 core.int buildCounterAccountstatusesCustomBatchRequestEntry = 0; |
1012 buildAccountstatusesCustomBatchRequestEntry() { | 1102 buildAccountstatusesCustomBatchRequestEntry() { |
1013 var o = new api.AccountstatusesCustomBatchRequestEntry(); | 1103 var o = new api.AccountstatusesCustomBatchRequestEntry(); |
1014 buildCounterAccountstatusesCustomBatchRequestEntry++; | 1104 buildCounterAccountstatusesCustomBatchRequestEntry++; |
1015 if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { | 1105 if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { |
1016 o.accountId = "foo"; | 1106 o.accountId = "foo"; |
1017 o.batchId = 42; | 1107 o.batchId = 42; |
1018 o.merchantId = "foo"; | 1108 o.merchantId = "foo"; |
1019 o.method = "foo"; | 1109 o.method = "foo"; |
1020 } | 1110 } |
1021 buildCounterAccountstatusesCustomBatchRequestEntry--; | 1111 buildCounterAccountstatusesCustomBatchRequestEntry--; |
1022 return o; | 1112 return o; |
1023 } | 1113 } |
1024 | 1114 |
1025 checkAccountstatusesCustomBatchRequestEntry(api.AccountstatusesCustomBatchReques
tEntry o) { | 1115 checkAccountstatusesCustomBatchRequestEntry(api.AccountstatusesCustomBatchReques
tEntry o) { |
1026 buildCounterAccountstatusesCustomBatchRequestEntry++; | 1116 buildCounterAccountstatusesCustomBatchRequestEntry++; |
1027 if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { | 1117 if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { |
1028 unittest.expect(o.accountId, unittest.equals('foo')); | 1118 unittest.expect(o.accountId, unittest.equals('foo')); |
1029 unittest.expect(o.batchId, unittest.equals(42)); | 1119 unittest.expect(o.batchId, unittest.equals(42)); |
1030 unittest.expect(o.merchantId, unittest.equals('foo')); | 1120 unittest.expect(o.merchantId, unittest.equals('foo')); |
1031 unittest.expect(o.method, unittest.equals('foo')); | 1121 unittest.expect(o.method, unittest.equals('foo')); |
1032 } | 1122 } |
1033 buildCounterAccountstatusesCustomBatchRequestEntry--; | 1123 buildCounterAccountstatusesCustomBatchRequestEntry--; |
1034 } | 1124 } |
1035 | 1125 |
1036 buildUnnamed560() { | 1126 buildUnnamed580() { |
1037 var o = new core.List<api.AccountstatusesCustomBatchResponseEntry>(); | 1127 var o = new core.List<api.AccountstatusesCustomBatchResponseEntry>(); |
1038 o.add(buildAccountstatusesCustomBatchResponseEntry()); | 1128 o.add(buildAccountstatusesCustomBatchResponseEntry()); |
1039 o.add(buildAccountstatusesCustomBatchResponseEntry()); | 1129 o.add(buildAccountstatusesCustomBatchResponseEntry()); |
1040 return o; | 1130 return o; |
1041 } | 1131 } |
1042 | 1132 |
1043 checkUnnamed560(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { | 1133 checkUnnamed580(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { |
1044 unittest.expect(o, unittest.hasLength(2)); | 1134 unittest.expect(o, unittest.hasLength(2)); |
1045 checkAccountstatusesCustomBatchResponseEntry(o[0]); | 1135 checkAccountstatusesCustomBatchResponseEntry(o[0]); |
1046 checkAccountstatusesCustomBatchResponseEntry(o[1]); | 1136 checkAccountstatusesCustomBatchResponseEntry(o[1]); |
1047 } | 1137 } |
1048 | 1138 |
1049 core.int buildCounterAccountstatusesCustomBatchResponse = 0; | 1139 core.int buildCounterAccountstatusesCustomBatchResponse = 0; |
1050 buildAccountstatusesCustomBatchResponse() { | 1140 buildAccountstatusesCustomBatchResponse() { |
1051 var o = new api.AccountstatusesCustomBatchResponse(); | 1141 var o = new api.AccountstatusesCustomBatchResponse(); |
1052 buildCounterAccountstatusesCustomBatchResponse++; | 1142 buildCounterAccountstatusesCustomBatchResponse++; |
1053 if (buildCounterAccountstatusesCustomBatchResponse < 3) { | 1143 if (buildCounterAccountstatusesCustomBatchResponse < 3) { |
1054 o.entries = buildUnnamed560(); | 1144 o.entries = buildUnnamed580(); |
1055 o.kind = "foo"; | 1145 o.kind = "foo"; |
1056 } | 1146 } |
1057 buildCounterAccountstatusesCustomBatchResponse--; | 1147 buildCounterAccountstatusesCustomBatchResponse--; |
1058 return o; | 1148 return o; |
1059 } | 1149 } |
1060 | 1150 |
1061 checkAccountstatusesCustomBatchResponse(api.AccountstatusesCustomBatchResponse o
) { | 1151 checkAccountstatusesCustomBatchResponse(api.AccountstatusesCustomBatchResponse o
) { |
1062 buildCounterAccountstatusesCustomBatchResponse++; | 1152 buildCounterAccountstatusesCustomBatchResponse++; |
1063 if (buildCounterAccountstatusesCustomBatchResponse < 3) { | 1153 if (buildCounterAccountstatusesCustomBatchResponse < 3) { |
1064 checkUnnamed560(o.entries); | 1154 checkUnnamed580(o.entries); |
1065 unittest.expect(o.kind, unittest.equals('foo')); | 1155 unittest.expect(o.kind, unittest.equals('foo')); |
1066 } | 1156 } |
1067 buildCounterAccountstatusesCustomBatchResponse--; | 1157 buildCounterAccountstatusesCustomBatchResponse--; |
1068 } | 1158 } |
1069 | 1159 |
1070 core.int buildCounterAccountstatusesCustomBatchResponseEntry = 0; | 1160 core.int buildCounterAccountstatusesCustomBatchResponseEntry = 0; |
1071 buildAccountstatusesCustomBatchResponseEntry() { | 1161 buildAccountstatusesCustomBatchResponseEntry() { |
1072 var o = new api.AccountstatusesCustomBatchResponseEntry(); | 1162 var o = new api.AccountstatusesCustomBatchResponseEntry(); |
1073 buildCounterAccountstatusesCustomBatchResponseEntry++; | 1163 buildCounterAccountstatusesCustomBatchResponseEntry++; |
1074 if (buildCounterAccountstatusesCustomBatchResponseEntry < 3) { | 1164 if (buildCounterAccountstatusesCustomBatchResponseEntry < 3) { |
1075 o.accountStatus = buildAccountStatus(); | 1165 o.accountStatus = buildAccountStatus(); |
1076 o.batchId = 42; | 1166 o.batchId = 42; |
1077 o.errors = buildErrors(); | 1167 o.errors = buildErrors(); |
1078 } | 1168 } |
1079 buildCounterAccountstatusesCustomBatchResponseEntry--; | 1169 buildCounterAccountstatusesCustomBatchResponseEntry--; |
1080 return o; | 1170 return o; |
1081 } | 1171 } |
1082 | 1172 |
1083 checkAccountstatusesCustomBatchResponseEntry(api.AccountstatusesCustomBatchRespo
nseEntry o) { | 1173 checkAccountstatusesCustomBatchResponseEntry(api.AccountstatusesCustomBatchRespo
nseEntry o) { |
1084 buildCounterAccountstatusesCustomBatchResponseEntry++; | 1174 buildCounterAccountstatusesCustomBatchResponseEntry++; |
1085 if (buildCounterAccountstatusesCustomBatchResponseEntry < 3) { | 1175 if (buildCounterAccountstatusesCustomBatchResponseEntry < 3) { |
1086 checkAccountStatus(o.accountStatus); | 1176 checkAccountStatus(o.accountStatus); |
1087 unittest.expect(o.batchId, unittest.equals(42)); | 1177 unittest.expect(o.batchId, unittest.equals(42)); |
1088 checkErrors(o.errors); | 1178 checkErrors(o.errors); |
1089 } | 1179 } |
1090 buildCounterAccountstatusesCustomBatchResponseEntry--; | 1180 buildCounterAccountstatusesCustomBatchResponseEntry--; |
1091 } | 1181 } |
1092 | 1182 |
1093 buildUnnamed561() { | 1183 buildUnnamed581() { |
1094 var o = new core.List<api.AccountStatus>(); | 1184 var o = new core.List<api.AccountStatus>(); |
1095 o.add(buildAccountStatus()); | 1185 o.add(buildAccountStatus()); |
1096 o.add(buildAccountStatus()); | 1186 o.add(buildAccountStatus()); |
1097 return o; | 1187 return o; |
1098 } | 1188 } |
1099 | 1189 |
1100 checkUnnamed561(core.List<api.AccountStatus> o) { | 1190 checkUnnamed581(core.List<api.AccountStatus> o) { |
1101 unittest.expect(o, unittest.hasLength(2)); | 1191 unittest.expect(o, unittest.hasLength(2)); |
1102 checkAccountStatus(o[0]); | 1192 checkAccountStatus(o[0]); |
1103 checkAccountStatus(o[1]); | 1193 checkAccountStatus(o[1]); |
1104 } | 1194 } |
1105 | 1195 |
1106 core.int buildCounterAccountstatusesListResponse = 0; | 1196 core.int buildCounterAccountstatusesListResponse = 0; |
1107 buildAccountstatusesListResponse() { | 1197 buildAccountstatusesListResponse() { |
1108 var o = new api.AccountstatusesListResponse(); | 1198 var o = new api.AccountstatusesListResponse(); |
1109 buildCounterAccountstatusesListResponse++; | 1199 buildCounterAccountstatusesListResponse++; |
1110 if (buildCounterAccountstatusesListResponse < 3) { | 1200 if (buildCounterAccountstatusesListResponse < 3) { |
1111 o.kind = "foo"; | 1201 o.kind = "foo"; |
1112 o.nextPageToken = "foo"; | 1202 o.nextPageToken = "foo"; |
1113 o.resources = buildUnnamed561(); | 1203 o.resources = buildUnnamed581(); |
1114 } | 1204 } |
1115 buildCounterAccountstatusesListResponse--; | 1205 buildCounterAccountstatusesListResponse--; |
1116 return o; | 1206 return o; |
1117 } | 1207 } |
1118 | 1208 |
1119 checkAccountstatusesListResponse(api.AccountstatusesListResponse o) { | 1209 checkAccountstatusesListResponse(api.AccountstatusesListResponse o) { |
1120 buildCounterAccountstatusesListResponse++; | 1210 buildCounterAccountstatusesListResponse++; |
1121 if (buildCounterAccountstatusesListResponse < 3) { | 1211 if (buildCounterAccountstatusesListResponse < 3) { |
1122 unittest.expect(o.kind, unittest.equals('foo')); | 1212 unittest.expect(o.kind, unittest.equals('foo')); |
1123 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1213 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1124 checkUnnamed561(o.resources); | 1214 checkUnnamed581(o.resources); |
1125 } | 1215 } |
1126 buildCounterAccountstatusesListResponse--; | 1216 buildCounterAccountstatusesListResponse--; |
1127 } | 1217 } |
1128 | 1218 |
1129 buildUnnamed562() { | 1219 buildUnnamed582() { |
1130 var o = new core.List<api.AccounttaxCustomBatchRequestEntry>(); | 1220 var o = new core.List<api.AccounttaxCustomBatchRequestEntry>(); |
1131 o.add(buildAccounttaxCustomBatchRequestEntry()); | 1221 o.add(buildAccounttaxCustomBatchRequestEntry()); |
1132 o.add(buildAccounttaxCustomBatchRequestEntry()); | 1222 o.add(buildAccounttaxCustomBatchRequestEntry()); |
1133 return o; | 1223 return o; |
1134 } | 1224 } |
1135 | 1225 |
1136 checkUnnamed562(core.List<api.AccounttaxCustomBatchRequestEntry> o) { | 1226 checkUnnamed582(core.List<api.AccounttaxCustomBatchRequestEntry> o) { |
1137 unittest.expect(o, unittest.hasLength(2)); | 1227 unittest.expect(o, unittest.hasLength(2)); |
1138 checkAccounttaxCustomBatchRequestEntry(o[0]); | 1228 checkAccounttaxCustomBatchRequestEntry(o[0]); |
1139 checkAccounttaxCustomBatchRequestEntry(o[1]); | 1229 checkAccounttaxCustomBatchRequestEntry(o[1]); |
1140 } | 1230 } |
1141 | 1231 |
1142 core.int buildCounterAccounttaxCustomBatchRequest = 0; | 1232 core.int buildCounterAccounttaxCustomBatchRequest = 0; |
1143 buildAccounttaxCustomBatchRequest() { | 1233 buildAccounttaxCustomBatchRequest() { |
1144 var o = new api.AccounttaxCustomBatchRequest(); | 1234 var o = new api.AccounttaxCustomBatchRequest(); |
1145 buildCounterAccounttaxCustomBatchRequest++; | 1235 buildCounterAccounttaxCustomBatchRequest++; |
1146 if (buildCounterAccounttaxCustomBatchRequest < 3) { | 1236 if (buildCounterAccounttaxCustomBatchRequest < 3) { |
1147 o.entries = buildUnnamed562(); | 1237 o.entries = buildUnnamed582(); |
1148 } | 1238 } |
1149 buildCounterAccounttaxCustomBatchRequest--; | 1239 buildCounterAccounttaxCustomBatchRequest--; |
1150 return o; | 1240 return o; |
1151 } | 1241 } |
1152 | 1242 |
1153 checkAccounttaxCustomBatchRequest(api.AccounttaxCustomBatchRequest o) { | 1243 checkAccounttaxCustomBatchRequest(api.AccounttaxCustomBatchRequest o) { |
1154 buildCounterAccounttaxCustomBatchRequest++; | 1244 buildCounterAccounttaxCustomBatchRequest++; |
1155 if (buildCounterAccounttaxCustomBatchRequest < 3) { | 1245 if (buildCounterAccounttaxCustomBatchRequest < 3) { |
1156 checkUnnamed562(o.entries); | 1246 checkUnnamed582(o.entries); |
1157 } | 1247 } |
1158 buildCounterAccounttaxCustomBatchRequest--; | 1248 buildCounterAccounttaxCustomBatchRequest--; |
1159 } | 1249 } |
1160 | 1250 |
1161 core.int buildCounterAccounttaxCustomBatchRequestEntry = 0; | 1251 core.int buildCounterAccounttaxCustomBatchRequestEntry = 0; |
1162 buildAccounttaxCustomBatchRequestEntry() { | 1252 buildAccounttaxCustomBatchRequestEntry() { |
1163 var o = new api.AccounttaxCustomBatchRequestEntry(); | 1253 var o = new api.AccounttaxCustomBatchRequestEntry(); |
1164 buildCounterAccounttaxCustomBatchRequestEntry++; | 1254 buildCounterAccounttaxCustomBatchRequestEntry++; |
1165 if (buildCounterAccounttaxCustomBatchRequestEntry < 3) { | 1255 if (buildCounterAccounttaxCustomBatchRequestEntry < 3) { |
1166 o.accountId = "foo"; | 1256 o.accountId = "foo"; |
(...skipping 11 matching lines...) Expand all Loading... |
1178 if (buildCounterAccounttaxCustomBatchRequestEntry < 3) { | 1268 if (buildCounterAccounttaxCustomBatchRequestEntry < 3) { |
1179 unittest.expect(o.accountId, unittest.equals('foo')); | 1269 unittest.expect(o.accountId, unittest.equals('foo')); |
1180 checkAccountTax(o.accountTax); | 1270 checkAccountTax(o.accountTax); |
1181 unittest.expect(o.batchId, unittest.equals(42)); | 1271 unittest.expect(o.batchId, unittest.equals(42)); |
1182 unittest.expect(o.merchantId, unittest.equals('foo')); | 1272 unittest.expect(o.merchantId, unittest.equals('foo')); |
1183 unittest.expect(o.method, unittest.equals('foo')); | 1273 unittest.expect(o.method, unittest.equals('foo')); |
1184 } | 1274 } |
1185 buildCounterAccounttaxCustomBatchRequestEntry--; | 1275 buildCounterAccounttaxCustomBatchRequestEntry--; |
1186 } | 1276 } |
1187 | 1277 |
1188 buildUnnamed563() { | 1278 buildUnnamed583() { |
1189 var o = new core.List<api.AccounttaxCustomBatchResponseEntry>(); | 1279 var o = new core.List<api.AccounttaxCustomBatchResponseEntry>(); |
1190 o.add(buildAccounttaxCustomBatchResponseEntry()); | 1280 o.add(buildAccounttaxCustomBatchResponseEntry()); |
1191 o.add(buildAccounttaxCustomBatchResponseEntry()); | 1281 o.add(buildAccounttaxCustomBatchResponseEntry()); |
1192 return o; | 1282 return o; |
1193 } | 1283 } |
1194 | 1284 |
1195 checkUnnamed563(core.List<api.AccounttaxCustomBatchResponseEntry> o) { | 1285 checkUnnamed583(core.List<api.AccounttaxCustomBatchResponseEntry> o) { |
1196 unittest.expect(o, unittest.hasLength(2)); | 1286 unittest.expect(o, unittest.hasLength(2)); |
1197 checkAccounttaxCustomBatchResponseEntry(o[0]); | 1287 checkAccounttaxCustomBatchResponseEntry(o[0]); |
1198 checkAccounttaxCustomBatchResponseEntry(o[1]); | 1288 checkAccounttaxCustomBatchResponseEntry(o[1]); |
1199 } | 1289 } |
1200 | 1290 |
1201 core.int buildCounterAccounttaxCustomBatchResponse = 0; | 1291 core.int buildCounterAccounttaxCustomBatchResponse = 0; |
1202 buildAccounttaxCustomBatchResponse() { | 1292 buildAccounttaxCustomBatchResponse() { |
1203 var o = new api.AccounttaxCustomBatchResponse(); | 1293 var o = new api.AccounttaxCustomBatchResponse(); |
1204 buildCounterAccounttaxCustomBatchResponse++; | 1294 buildCounterAccounttaxCustomBatchResponse++; |
1205 if (buildCounterAccounttaxCustomBatchResponse < 3) { | 1295 if (buildCounterAccounttaxCustomBatchResponse < 3) { |
1206 o.entries = buildUnnamed563(); | 1296 o.entries = buildUnnamed583(); |
1207 o.kind = "foo"; | 1297 o.kind = "foo"; |
1208 } | 1298 } |
1209 buildCounterAccounttaxCustomBatchResponse--; | 1299 buildCounterAccounttaxCustomBatchResponse--; |
1210 return o; | 1300 return o; |
1211 } | 1301 } |
1212 | 1302 |
1213 checkAccounttaxCustomBatchResponse(api.AccounttaxCustomBatchResponse o) { | 1303 checkAccounttaxCustomBatchResponse(api.AccounttaxCustomBatchResponse o) { |
1214 buildCounterAccounttaxCustomBatchResponse++; | 1304 buildCounterAccounttaxCustomBatchResponse++; |
1215 if (buildCounterAccounttaxCustomBatchResponse < 3) { | 1305 if (buildCounterAccounttaxCustomBatchResponse < 3) { |
1216 checkUnnamed563(o.entries); | 1306 checkUnnamed583(o.entries); |
1217 unittest.expect(o.kind, unittest.equals('foo')); | 1307 unittest.expect(o.kind, unittest.equals('foo')); |
1218 } | 1308 } |
1219 buildCounterAccounttaxCustomBatchResponse--; | 1309 buildCounterAccounttaxCustomBatchResponse--; |
1220 } | 1310 } |
1221 | 1311 |
1222 core.int buildCounterAccounttaxCustomBatchResponseEntry = 0; | 1312 core.int buildCounterAccounttaxCustomBatchResponseEntry = 0; |
1223 buildAccounttaxCustomBatchResponseEntry() { | 1313 buildAccounttaxCustomBatchResponseEntry() { |
1224 var o = new api.AccounttaxCustomBatchResponseEntry(); | 1314 var o = new api.AccounttaxCustomBatchResponseEntry(); |
1225 buildCounterAccounttaxCustomBatchResponseEntry++; | 1315 buildCounterAccounttaxCustomBatchResponseEntry++; |
1226 if (buildCounterAccounttaxCustomBatchResponseEntry < 3) { | 1316 if (buildCounterAccounttaxCustomBatchResponseEntry < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
1237 buildCounterAccounttaxCustomBatchResponseEntry++; | 1327 buildCounterAccounttaxCustomBatchResponseEntry++; |
1238 if (buildCounterAccounttaxCustomBatchResponseEntry < 3) { | 1328 if (buildCounterAccounttaxCustomBatchResponseEntry < 3) { |
1239 checkAccountTax(o.accountTax); | 1329 checkAccountTax(o.accountTax); |
1240 unittest.expect(o.batchId, unittest.equals(42)); | 1330 unittest.expect(o.batchId, unittest.equals(42)); |
1241 checkErrors(o.errors); | 1331 checkErrors(o.errors); |
1242 unittest.expect(o.kind, unittest.equals('foo')); | 1332 unittest.expect(o.kind, unittest.equals('foo')); |
1243 } | 1333 } |
1244 buildCounterAccounttaxCustomBatchResponseEntry--; | 1334 buildCounterAccounttaxCustomBatchResponseEntry--; |
1245 } | 1335 } |
1246 | 1336 |
1247 buildUnnamed564() { | 1337 buildUnnamed584() { |
1248 var o = new core.List<api.AccountTax>(); | 1338 var o = new core.List<api.AccountTax>(); |
1249 o.add(buildAccountTax()); | 1339 o.add(buildAccountTax()); |
1250 o.add(buildAccountTax()); | 1340 o.add(buildAccountTax()); |
1251 return o; | 1341 return o; |
1252 } | 1342 } |
1253 | 1343 |
1254 checkUnnamed564(core.List<api.AccountTax> o) { | 1344 checkUnnamed584(core.List<api.AccountTax> o) { |
1255 unittest.expect(o, unittest.hasLength(2)); | 1345 unittest.expect(o, unittest.hasLength(2)); |
1256 checkAccountTax(o[0]); | 1346 checkAccountTax(o[0]); |
1257 checkAccountTax(o[1]); | 1347 checkAccountTax(o[1]); |
1258 } | 1348 } |
1259 | 1349 |
1260 core.int buildCounterAccounttaxListResponse = 0; | 1350 core.int buildCounterAccounttaxListResponse = 0; |
1261 buildAccounttaxListResponse() { | 1351 buildAccounttaxListResponse() { |
1262 var o = new api.AccounttaxListResponse(); | 1352 var o = new api.AccounttaxListResponse(); |
1263 buildCounterAccounttaxListResponse++; | 1353 buildCounterAccounttaxListResponse++; |
1264 if (buildCounterAccounttaxListResponse < 3) { | 1354 if (buildCounterAccounttaxListResponse < 3) { |
1265 o.kind = "foo"; | 1355 o.kind = "foo"; |
1266 o.nextPageToken = "foo"; | 1356 o.nextPageToken = "foo"; |
1267 o.resources = buildUnnamed564(); | 1357 o.resources = buildUnnamed584(); |
1268 } | 1358 } |
1269 buildCounterAccounttaxListResponse--; | 1359 buildCounterAccounttaxListResponse--; |
1270 return o; | 1360 return o; |
1271 } | 1361 } |
1272 | 1362 |
1273 checkAccounttaxListResponse(api.AccounttaxListResponse o) { | 1363 checkAccounttaxListResponse(api.AccounttaxListResponse o) { |
1274 buildCounterAccounttaxListResponse++; | 1364 buildCounterAccounttaxListResponse++; |
1275 if (buildCounterAccounttaxListResponse < 3) { | 1365 if (buildCounterAccounttaxListResponse < 3) { |
1276 unittest.expect(o.kind, unittest.equals('foo')); | 1366 unittest.expect(o.kind, unittest.equals('foo')); |
1277 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1367 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1278 checkUnnamed564(o.resources); | 1368 checkUnnamed584(o.resources); |
1279 } | 1369 } |
1280 buildCounterAccounttaxListResponse--; | 1370 buildCounterAccounttaxListResponse--; |
1281 } | 1371 } |
1282 | 1372 |
1283 buildUnnamed565() { | 1373 buildUnnamed585() { |
1284 var o = new core.List<core.String>(); | 1374 var o = new core.List<core.String>(); |
1285 o.add("foo"); | 1375 o.add("foo"); |
1286 o.add("foo"); | 1376 o.add("foo"); |
1287 return o; | 1377 return o; |
1288 } | 1378 } |
1289 | 1379 |
1290 checkUnnamed565(core.List<core.String> o) { | 1380 checkUnnamed585(core.List<core.String> o) { |
1291 unittest.expect(o, unittest.hasLength(2)); | 1381 unittest.expect(o, unittest.hasLength(2)); |
1292 unittest.expect(o[0], unittest.equals('foo')); | 1382 unittest.expect(o[0], unittest.equals('foo')); |
1293 unittest.expect(o[1], unittest.equals('foo')); | 1383 unittest.expect(o[1], unittest.equals('foo')); |
1294 } | 1384 } |
1295 | 1385 |
1296 core.int buildCounterDatafeed = 0; | 1386 core.int buildCounterDatafeed = 0; |
1297 buildDatafeed() { | 1387 buildDatafeed() { |
1298 var o = new api.Datafeed(); | 1388 var o = new api.Datafeed(); |
1299 buildCounterDatafeed++; | 1389 buildCounterDatafeed++; |
1300 if (buildCounterDatafeed < 3) { | 1390 if (buildCounterDatafeed < 3) { |
1301 o.attributeLanguage = "foo"; | 1391 o.attributeLanguage = "foo"; |
1302 o.contentLanguage = "foo"; | 1392 o.contentLanguage = "foo"; |
1303 o.contentType = "foo"; | 1393 o.contentType = "foo"; |
1304 o.fetchSchedule = buildDatafeedFetchSchedule(); | 1394 o.fetchSchedule = buildDatafeedFetchSchedule(); |
1305 o.fileName = "foo"; | 1395 o.fileName = "foo"; |
1306 o.format = buildDatafeedFormat(); | 1396 o.format = buildDatafeedFormat(); |
1307 o.id = "foo"; | 1397 o.id = "foo"; |
1308 o.intendedDestinations = buildUnnamed565(); | 1398 o.intendedDestinations = buildUnnamed585(); |
1309 o.kind = "foo"; | 1399 o.kind = "foo"; |
1310 o.name = "foo"; | 1400 o.name = "foo"; |
1311 o.targetCountry = "foo"; | 1401 o.targetCountry = "foo"; |
1312 } | 1402 } |
1313 buildCounterDatafeed--; | 1403 buildCounterDatafeed--; |
1314 return o; | 1404 return o; |
1315 } | 1405 } |
1316 | 1406 |
1317 checkDatafeed(api.Datafeed o) { | 1407 checkDatafeed(api.Datafeed o) { |
1318 buildCounterDatafeed++; | 1408 buildCounterDatafeed++; |
1319 if (buildCounterDatafeed < 3) { | 1409 if (buildCounterDatafeed < 3) { |
1320 unittest.expect(o.attributeLanguage, unittest.equals('foo')); | 1410 unittest.expect(o.attributeLanguage, unittest.equals('foo')); |
1321 unittest.expect(o.contentLanguage, unittest.equals('foo')); | 1411 unittest.expect(o.contentLanguage, unittest.equals('foo')); |
1322 unittest.expect(o.contentType, unittest.equals('foo')); | 1412 unittest.expect(o.contentType, unittest.equals('foo')); |
1323 checkDatafeedFetchSchedule(o.fetchSchedule); | 1413 checkDatafeedFetchSchedule(o.fetchSchedule); |
1324 unittest.expect(o.fileName, unittest.equals('foo')); | 1414 unittest.expect(o.fileName, unittest.equals('foo')); |
1325 checkDatafeedFormat(o.format); | 1415 checkDatafeedFormat(o.format); |
1326 unittest.expect(o.id, unittest.equals('foo')); | 1416 unittest.expect(o.id, unittest.equals('foo')); |
1327 checkUnnamed565(o.intendedDestinations); | 1417 checkUnnamed585(o.intendedDestinations); |
1328 unittest.expect(o.kind, unittest.equals('foo')); | 1418 unittest.expect(o.kind, unittest.equals('foo')); |
1329 unittest.expect(o.name, unittest.equals('foo')); | 1419 unittest.expect(o.name, unittest.equals('foo')); |
1330 unittest.expect(o.targetCountry, unittest.equals('foo')); | 1420 unittest.expect(o.targetCountry, unittest.equals('foo')); |
1331 } | 1421 } |
1332 buildCounterDatafeed--; | 1422 buildCounterDatafeed--; |
1333 } | 1423 } |
1334 | 1424 |
1335 core.int buildCounterDatafeedFetchSchedule = 0; | 1425 core.int buildCounterDatafeedFetchSchedule = 0; |
1336 buildDatafeedFetchSchedule() { | 1426 buildDatafeedFetchSchedule() { |
1337 var o = new api.DatafeedFetchSchedule(); | 1427 var o = new api.DatafeedFetchSchedule(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1379 checkDatafeedFormat(api.DatafeedFormat o) { | 1469 checkDatafeedFormat(api.DatafeedFormat o) { |
1380 buildCounterDatafeedFormat++; | 1470 buildCounterDatafeedFormat++; |
1381 if (buildCounterDatafeedFormat < 3) { | 1471 if (buildCounterDatafeedFormat < 3) { |
1382 unittest.expect(o.columnDelimiter, unittest.equals('foo')); | 1472 unittest.expect(o.columnDelimiter, unittest.equals('foo')); |
1383 unittest.expect(o.fileEncoding, unittest.equals('foo')); | 1473 unittest.expect(o.fileEncoding, unittest.equals('foo')); |
1384 unittest.expect(o.quotingMode, unittest.equals('foo')); | 1474 unittest.expect(o.quotingMode, unittest.equals('foo')); |
1385 } | 1475 } |
1386 buildCounterDatafeedFormat--; | 1476 buildCounterDatafeedFormat--; |
1387 } | 1477 } |
1388 | 1478 |
1389 buildUnnamed566() { | 1479 buildUnnamed586() { |
1390 var o = new core.List<api.DatafeedStatusError>(); | 1480 var o = new core.List<api.DatafeedStatusError>(); |
1391 o.add(buildDatafeedStatusError()); | 1481 o.add(buildDatafeedStatusError()); |
1392 o.add(buildDatafeedStatusError()); | 1482 o.add(buildDatafeedStatusError()); |
1393 return o; | 1483 return o; |
1394 } | 1484 } |
1395 | 1485 |
1396 checkUnnamed566(core.List<api.DatafeedStatusError> o) { | 1486 checkUnnamed586(core.List<api.DatafeedStatusError> o) { |
1397 unittest.expect(o, unittest.hasLength(2)); | 1487 unittest.expect(o, unittest.hasLength(2)); |
1398 checkDatafeedStatusError(o[0]); | 1488 checkDatafeedStatusError(o[0]); |
1399 checkDatafeedStatusError(o[1]); | 1489 checkDatafeedStatusError(o[1]); |
1400 } | 1490 } |
1401 | 1491 |
1402 buildUnnamed567() { | 1492 buildUnnamed587() { |
1403 var o = new core.List<api.DatafeedStatusError>(); | 1493 var o = new core.List<api.DatafeedStatusError>(); |
1404 o.add(buildDatafeedStatusError()); | 1494 o.add(buildDatafeedStatusError()); |
1405 o.add(buildDatafeedStatusError()); | 1495 o.add(buildDatafeedStatusError()); |
1406 return o; | 1496 return o; |
1407 } | 1497 } |
1408 | 1498 |
1409 checkUnnamed567(core.List<api.DatafeedStatusError> o) { | 1499 checkUnnamed587(core.List<api.DatafeedStatusError> o) { |
1410 unittest.expect(o, unittest.hasLength(2)); | 1500 unittest.expect(o, unittest.hasLength(2)); |
1411 checkDatafeedStatusError(o[0]); | 1501 checkDatafeedStatusError(o[0]); |
1412 checkDatafeedStatusError(o[1]); | 1502 checkDatafeedStatusError(o[1]); |
1413 } | 1503 } |
1414 | 1504 |
1415 core.int buildCounterDatafeedStatus = 0; | 1505 core.int buildCounterDatafeedStatus = 0; |
1416 buildDatafeedStatus() { | 1506 buildDatafeedStatus() { |
1417 var o = new api.DatafeedStatus(); | 1507 var o = new api.DatafeedStatus(); |
1418 buildCounterDatafeedStatus++; | 1508 buildCounterDatafeedStatus++; |
1419 if (buildCounterDatafeedStatus < 3) { | 1509 if (buildCounterDatafeedStatus < 3) { |
1420 o.datafeedId = "foo"; | 1510 o.datafeedId = "foo"; |
1421 o.errors = buildUnnamed566(); | 1511 o.errors = buildUnnamed586(); |
1422 o.itemsTotal = "foo"; | 1512 o.itemsTotal = "foo"; |
1423 o.itemsValid = "foo"; | 1513 o.itemsValid = "foo"; |
1424 o.kind = "foo"; | 1514 o.kind = "foo"; |
1425 o.processingStatus = "foo"; | 1515 o.processingStatus = "foo"; |
1426 o.warnings = buildUnnamed567(); | 1516 o.warnings = buildUnnamed587(); |
1427 } | 1517 } |
1428 buildCounterDatafeedStatus--; | 1518 buildCounterDatafeedStatus--; |
1429 return o; | 1519 return o; |
1430 } | 1520 } |
1431 | 1521 |
1432 checkDatafeedStatus(api.DatafeedStatus o) { | 1522 checkDatafeedStatus(api.DatafeedStatus o) { |
1433 buildCounterDatafeedStatus++; | 1523 buildCounterDatafeedStatus++; |
1434 if (buildCounterDatafeedStatus < 3) { | 1524 if (buildCounterDatafeedStatus < 3) { |
1435 unittest.expect(o.datafeedId, unittest.equals('foo')); | 1525 unittest.expect(o.datafeedId, unittest.equals('foo')); |
1436 checkUnnamed566(o.errors); | 1526 checkUnnamed586(o.errors); |
1437 unittest.expect(o.itemsTotal, unittest.equals('foo')); | 1527 unittest.expect(o.itemsTotal, unittest.equals('foo')); |
1438 unittest.expect(o.itemsValid, unittest.equals('foo')); | 1528 unittest.expect(o.itemsValid, unittest.equals('foo')); |
1439 unittest.expect(o.kind, unittest.equals('foo')); | 1529 unittest.expect(o.kind, unittest.equals('foo')); |
1440 unittest.expect(o.processingStatus, unittest.equals('foo')); | 1530 unittest.expect(o.processingStatus, unittest.equals('foo')); |
1441 checkUnnamed567(o.warnings); | 1531 checkUnnamed587(o.warnings); |
1442 } | 1532 } |
1443 buildCounterDatafeedStatus--; | 1533 buildCounterDatafeedStatus--; |
1444 } | 1534 } |
1445 | 1535 |
1446 buildUnnamed568() { | 1536 buildUnnamed588() { |
1447 var o = new core.List<api.DatafeedStatusExample>(); | 1537 var o = new core.List<api.DatafeedStatusExample>(); |
1448 o.add(buildDatafeedStatusExample()); | 1538 o.add(buildDatafeedStatusExample()); |
1449 o.add(buildDatafeedStatusExample()); | 1539 o.add(buildDatafeedStatusExample()); |
1450 return o; | 1540 return o; |
1451 } | 1541 } |
1452 | 1542 |
1453 checkUnnamed568(core.List<api.DatafeedStatusExample> o) { | 1543 checkUnnamed588(core.List<api.DatafeedStatusExample> o) { |
1454 unittest.expect(o, unittest.hasLength(2)); | 1544 unittest.expect(o, unittest.hasLength(2)); |
1455 checkDatafeedStatusExample(o[0]); | 1545 checkDatafeedStatusExample(o[0]); |
1456 checkDatafeedStatusExample(o[1]); | 1546 checkDatafeedStatusExample(o[1]); |
1457 } | 1547 } |
1458 | 1548 |
1459 core.int buildCounterDatafeedStatusError = 0; | 1549 core.int buildCounterDatafeedStatusError = 0; |
1460 buildDatafeedStatusError() { | 1550 buildDatafeedStatusError() { |
1461 var o = new api.DatafeedStatusError(); | 1551 var o = new api.DatafeedStatusError(); |
1462 buildCounterDatafeedStatusError++; | 1552 buildCounterDatafeedStatusError++; |
1463 if (buildCounterDatafeedStatusError < 3) { | 1553 if (buildCounterDatafeedStatusError < 3) { |
1464 o.code = "foo"; | 1554 o.code = "foo"; |
1465 o.count = "foo"; | 1555 o.count = "foo"; |
1466 o.examples = buildUnnamed568(); | 1556 o.examples = buildUnnamed588(); |
1467 o.message = "foo"; | 1557 o.message = "foo"; |
1468 } | 1558 } |
1469 buildCounterDatafeedStatusError--; | 1559 buildCounterDatafeedStatusError--; |
1470 return o; | 1560 return o; |
1471 } | 1561 } |
1472 | 1562 |
1473 checkDatafeedStatusError(api.DatafeedStatusError o) { | 1563 checkDatafeedStatusError(api.DatafeedStatusError o) { |
1474 buildCounterDatafeedStatusError++; | 1564 buildCounterDatafeedStatusError++; |
1475 if (buildCounterDatafeedStatusError < 3) { | 1565 if (buildCounterDatafeedStatusError < 3) { |
1476 unittest.expect(o.code, unittest.equals('foo')); | 1566 unittest.expect(o.code, unittest.equals('foo')); |
1477 unittest.expect(o.count, unittest.equals('foo')); | 1567 unittest.expect(o.count, unittest.equals('foo')); |
1478 checkUnnamed568(o.examples); | 1568 checkUnnamed588(o.examples); |
1479 unittest.expect(o.message, unittest.equals('foo')); | 1569 unittest.expect(o.message, unittest.equals('foo')); |
1480 } | 1570 } |
1481 buildCounterDatafeedStatusError--; | 1571 buildCounterDatafeedStatusError--; |
1482 } | 1572 } |
1483 | 1573 |
1484 core.int buildCounterDatafeedStatusExample = 0; | 1574 core.int buildCounterDatafeedStatusExample = 0; |
1485 buildDatafeedStatusExample() { | 1575 buildDatafeedStatusExample() { |
1486 var o = new api.DatafeedStatusExample(); | 1576 var o = new api.DatafeedStatusExample(); |
1487 buildCounterDatafeedStatusExample++; | 1577 buildCounterDatafeedStatusExample++; |
1488 if (buildCounterDatafeedStatusExample < 3) { | 1578 if (buildCounterDatafeedStatusExample < 3) { |
1489 o.itemId = "foo"; | 1579 o.itemId = "foo"; |
1490 o.lineNumber = "foo"; | 1580 o.lineNumber = "foo"; |
1491 o.value = "foo"; | 1581 o.value = "foo"; |
1492 } | 1582 } |
1493 buildCounterDatafeedStatusExample--; | 1583 buildCounterDatafeedStatusExample--; |
1494 return o; | 1584 return o; |
1495 } | 1585 } |
1496 | 1586 |
1497 checkDatafeedStatusExample(api.DatafeedStatusExample o) { | 1587 checkDatafeedStatusExample(api.DatafeedStatusExample o) { |
1498 buildCounterDatafeedStatusExample++; | 1588 buildCounterDatafeedStatusExample++; |
1499 if (buildCounterDatafeedStatusExample < 3) { | 1589 if (buildCounterDatafeedStatusExample < 3) { |
1500 unittest.expect(o.itemId, unittest.equals('foo')); | 1590 unittest.expect(o.itemId, unittest.equals('foo')); |
1501 unittest.expect(o.lineNumber, unittest.equals('foo')); | 1591 unittest.expect(o.lineNumber, unittest.equals('foo')); |
1502 unittest.expect(o.value, unittest.equals('foo')); | 1592 unittest.expect(o.value, unittest.equals('foo')); |
1503 } | 1593 } |
1504 buildCounterDatafeedStatusExample--; | 1594 buildCounterDatafeedStatusExample--; |
1505 } | 1595 } |
1506 | 1596 |
1507 buildUnnamed569() { | 1597 buildUnnamed589() { |
1508 var o = new core.List<api.DatafeedsCustomBatchRequestEntry>(); | 1598 var o = new core.List<api.DatafeedsCustomBatchRequestEntry>(); |
1509 o.add(buildDatafeedsCustomBatchRequestEntry()); | 1599 o.add(buildDatafeedsCustomBatchRequestEntry()); |
1510 o.add(buildDatafeedsCustomBatchRequestEntry()); | 1600 o.add(buildDatafeedsCustomBatchRequestEntry()); |
1511 return o; | 1601 return o; |
1512 } | 1602 } |
1513 | 1603 |
1514 checkUnnamed569(core.List<api.DatafeedsCustomBatchRequestEntry> o) { | 1604 checkUnnamed589(core.List<api.DatafeedsCustomBatchRequestEntry> o) { |
1515 unittest.expect(o, unittest.hasLength(2)); | 1605 unittest.expect(o, unittest.hasLength(2)); |
1516 checkDatafeedsCustomBatchRequestEntry(o[0]); | 1606 checkDatafeedsCustomBatchRequestEntry(o[0]); |
1517 checkDatafeedsCustomBatchRequestEntry(o[1]); | 1607 checkDatafeedsCustomBatchRequestEntry(o[1]); |
1518 } | 1608 } |
1519 | 1609 |
1520 core.int buildCounterDatafeedsCustomBatchRequest = 0; | 1610 core.int buildCounterDatafeedsCustomBatchRequest = 0; |
1521 buildDatafeedsCustomBatchRequest() { | 1611 buildDatafeedsCustomBatchRequest() { |
1522 var o = new api.DatafeedsCustomBatchRequest(); | 1612 var o = new api.DatafeedsCustomBatchRequest(); |
1523 buildCounterDatafeedsCustomBatchRequest++; | 1613 buildCounterDatafeedsCustomBatchRequest++; |
1524 if (buildCounterDatafeedsCustomBatchRequest < 3) { | 1614 if (buildCounterDatafeedsCustomBatchRequest < 3) { |
1525 o.entries = buildUnnamed569(); | 1615 o.entries = buildUnnamed589(); |
1526 } | 1616 } |
1527 buildCounterDatafeedsCustomBatchRequest--; | 1617 buildCounterDatafeedsCustomBatchRequest--; |
1528 return o; | 1618 return o; |
1529 } | 1619 } |
1530 | 1620 |
1531 checkDatafeedsCustomBatchRequest(api.DatafeedsCustomBatchRequest o) { | 1621 checkDatafeedsCustomBatchRequest(api.DatafeedsCustomBatchRequest o) { |
1532 buildCounterDatafeedsCustomBatchRequest++; | 1622 buildCounterDatafeedsCustomBatchRequest++; |
1533 if (buildCounterDatafeedsCustomBatchRequest < 3) { | 1623 if (buildCounterDatafeedsCustomBatchRequest < 3) { |
1534 checkUnnamed569(o.entries); | 1624 checkUnnamed589(o.entries); |
1535 } | 1625 } |
1536 buildCounterDatafeedsCustomBatchRequest--; | 1626 buildCounterDatafeedsCustomBatchRequest--; |
1537 } | 1627 } |
1538 | 1628 |
1539 core.int buildCounterDatafeedsCustomBatchRequestEntry = 0; | 1629 core.int buildCounterDatafeedsCustomBatchRequestEntry = 0; |
1540 buildDatafeedsCustomBatchRequestEntry() { | 1630 buildDatafeedsCustomBatchRequestEntry() { |
1541 var o = new api.DatafeedsCustomBatchRequestEntry(); | 1631 var o = new api.DatafeedsCustomBatchRequestEntry(); |
1542 buildCounterDatafeedsCustomBatchRequestEntry++; | 1632 buildCounterDatafeedsCustomBatchRequestEntry++; |
1543 if (buildCounterDatafeedsCustomBatchRequestEntry < 3) { | 1633 if (buildCounterDatafeedsCustomBatchRequestEntry < 3) { |
1544 o.batchId = 42; | 1634 o.batchId = 42; |
(...skipping 11 matching lines...) Expand all Loading... |
1556 if (buildCounterDatafeedsCustomBatchRequestEntry < 3) { | 1646 if (buildCounterDatafeedsCustomBatchRequestEntry < 3) { |
1557 unittest.expect(o.batchId, unittest.equals(42)); | 1647 unittest.expect(o.batchId, unittest.equals(42)); |
1558 checkDatafeed(o.datafeed); | 1648 checkDatafeed(o.datafeed); |
1559 unittest.expect(o.datafeedId, unittest.equals('foo')); | 1649 unittest.expect(o.datafeedId, unittest.equals('foo')); |
1560 unittest.expect(o.merchantId, unittest.equals('foo')); | 1650 unittest.expect(o.merchantId, unittest.equals('foo')); |
1561 unittest.expect(o.method, unittest.equals('foo')); | 1651 unittest.expect(o.method, unittest.equals('foo')); |
1562 } | 1652 } |
1563 buildCounterDatafeedsCustomBatchRequestEntry--; | 1653 buildCounterDatafeedsCustomBatchRequestEntry--; |
1564 } | 1654 } |
1565 | 1655 |
1566 buildUnnamed570() { | 1656 buildUnnamed590() { |
1567 var o = new core.List<api.DatafeedsCustomBatchResponseEntry>(); | 1657 var o = new core.List<api.DatafeedsCustomBatchResponseEntry>(); |
1568 o.add(buildDatafeedsCustomBatchResponseEntry()); | 1658 o.add(buildDatafeedsCustomBatchResponseEntry()); |
1569 o.add(buildDatafeedsCustomBatchResponseEntry()); | 1659 o.add(buildDatafeedsCustomBatchResponseEntry()); |
1570 return o; | 1660 return o; |
1571 } | 1661 } |
1572 | 1662 |
1573 checkUnnamed570(core.List<api.DatafeedsCustomBatchResponseEntry> o) { | 1663 checkUnnamed590(core.List<api.DatafeedsCustomBatchResponseEntry> o) { |
1574 unittest.expect(o, unittest.hasLength(2)); | 1664 unittest.expect(o, unittest.hasLength(2)); |
1575 checkDatafeedsCustomBatchResponseEntry(o[0]); | 1665 checkDatafeedsCustomBatchResponseEntry(o[0]); |
1576 checkDatafeedsCustomBatchResponseEntry(o[1]); | 1666 checkDatafeedsCustomBatchResponseEntry(o[1]); |
1577 } | 1667 } |
1578 | 1668 |
1579 core.int buildCounterDatafeedsCustomBatchResponse = 0; | 1669 core.int buildCounterDatafeedsCustomBatchResponse = 0; |
1580 buildDatafeedsCustomBatchResponse() { | 1670 buildDatafeedsCustomBatchResponse() { |
1581 var o = new api.DatafeedsCustomBatchResponse(); | 1671 var o = new api.DatafeedsCustomBatchResponse(); |
1582 buildCounterDatafeedsCustomBatchResponse++; | 1672 buildCounterDatafeedsCustomBatchResponse++; |
1583 if (buildCounterDatafeedsCustomBatchResponse < 3) { | 1673 if (buildCounterDatafeedsCustomBatchResponse < 3) { |
1584 o.entries = buildUnnamed570(); | 1674 o.entries = buildUnnamed590(); |
1585 o.kind = "foo"; | 1675 o.kind = "foo"; |
1586 } | 1676 } |
1587 buildCounterDatafeedsCustomBatchResponse--; | 1677 buildCounterDatafeedsCustomBatchResponse--; |
1588 return o; | 1678 return o; |
1589 } | 1679 } |
1590 | 1680 |
1591 checkDatafeedsCustomBatchResponse(api.DatafeedsCustomBatchResponse o) { | 1681 checkDatafeedsCustomBatchResponse(api.DatafeedsCustomBatchResponse o) { |
1592 buildCounterDatafeedsCustomBatchResponse++; | 1682 buildCounterDatafeedsCustomBatchResponse++; |
1593 if (buildCounterDatafeedsCustomBatchResponse < 3) { | 1683 if (buildCounterDatafeedsCustomBatchResponse < 3) { |
1594 checkUnnamed570(o.entries); | 1684 checkUnnamed590(o.entries); |
1595 unittest.expect(o.kind, unittest.equals('foo')); | 1685 unittest.expect(o.kind, unittest.equals('foo')); |
1596 } | 1686 } |
1597 buildCounterDatafeedsCustomBatchResponse--; | 1687 buildCounterDatafeedsCustomBatchResponse--; |
1598 } | 1688 } |
1599 | 1689 |
1600 core.int buildCounterDatafeedsCustomBatchResponseEntry = 0; | 1690 core.int buildCounterDatafeedsCustomBatchResponseEntry = 0; |
1601 buildDatafeedsCustomBatchResponseEntry() { | 1691 buildDatafeedsCustomBatchResponseEntry() { |
1602 var o = new api.DatafeedsCustomBatchResponseEntry(); | 1692 var o = new api.DatafeedsCustomBatchResponseEntry(); |
1603 buildCounterDatafeedsCustomBatchResponseEntry++; | 1693 buildCounterDatafeedsCustomBatchResponseEntry++; |
1604 if (buildCounterDatafeedsCustomBatchResponseEntry < 3) { | 1694 if (buildCounterDatafeedsCustomBatchResponseEntry < 3) { |
1605 o.batchId = 42; | 1695 o.batchId = 42; |
1606 o.datafeed = buildDatafeed(); | 1696 o.datafeed = buildDatafeed(); |
1607 o.errors = buildErrors(); | 1697 o.errors = buildErrors(); |
1608 } | 1698 } |
1609 buildCounterDatafeedsCustomBatchResponseEntry--; | 1699 buildCounterDatafeedsCustomBatchResponseEntry--; |
1610 return o; | 1700 return o; |
1611 } | 1701 } |
1612 | 1702 |
1613 checkDatafeedsCustomBatchResponseEntry(api.DatafeedsCustomBatchResponseEntry o)
{ | 1703 checkDatafeedsCustomBatchResponseEntry(api.DatafeedsCustomBatchResponseEntry o)
{ |
1614 buildCounterDatafeedsCustomBatchResponseEntry++; | 1704 buildCounterDatafeedsCustomBatchResponseEntry++; |
1615 if (buildCounterDatafeedsCustomBatchResponseEntry < 3) { | 1705 if (buildCounterDatafeedsCustomBatchResponseEntry < 3) { |
1616 unittest.expect(o.batchId, unittest.equals(42)); | 1706 unittest.expect(o.batchId, unittest.equals(42)); |
1617 checkDatafeed(o.datafeed); | 1707 checkDatafeed(o.datafeed); |
1618 checkErrors(o.errors); | 1708 checkErrors(o.errors); |
1619 } | 1709 } |
1620 buildCounterDatafeedsCustomBatchResponseEntry--; | 1710 buildCounterDatafeedsCustomBatchResponseEntry--; |
1621 } | 1711 } |
1622 | 1712 |
1623 buildUnnamed571() { | 1713 buildUnnamed591() { |
1624 var o = new core.List<api.Datafeed>(); | 1714 var o = new core.List<api.Datafeed>(); |
1625 o.add(buildDatafeed()); | 1715 o.add(buildDatafeed()); |
1626 o.add(buildDatafeed()); | 1716 o.add(buildDatafeed()); |
1627 return o; | 1717 return o; |
1628 } | 1718 } |
1629 | 1719 |
1630 checkUnnamed571(core.List<api.Datafeed> o) { | 1720 checkUnnamed591(core.List<api.Datafeed> o) { |
1631 unittest.expect(o, unittest.hasLength(2)); | 1721 unittest.expect(o, unittest.hasLength(2)); |
1632 checkDatafeed(o[0]); | 1722 checkDatafeed(o[0]); |
1633 checkDatafeed(o[1]); | 1723 checkDatafeed(o[1]); |
1634 } | 1724 } |
1635 | 1725 |
1636 core.int buildCounterDatafeedsListResponse = 0; | 1726 core.int buildCounterDatafeedsListResponse = 0; |
1637 buildDatafeedsListResponse() { | 1727 buildDatafeedsListResponse() { |
1638 var o = new api.DatafeedsListResponse(); | 1728 var o = new api.DatafeedsListResponse(); |
1639 buildCounterDatafeedsListResponse++; | 1729 buildCounterDatafeedsListResponse++; |
1640 if (buildCounterDatafeedsListResponse < 3) { | 1730 if (buildCounterDatafeedsListResponse < 3) { |
1641 o.kind = "foo"; | 1731 o.kind = "foo"; |
1642 o.nextPageToken = "foo"; | 1732 o.nextPageToken = "foo"; |
1643 o.resources = buildUnnamed571(); | 1733 o.resources = buildUnnamed591(); |
1644 } | 1734 } |
1645 buildCounterDatafeedsListResponse--; | 1735 buildCounterDatafeedsListResponse--; |
1646 return o; | 1736 return o; |
1647 } | 1737 } |
1648 | 1738 |
1649 checkDatafeedsListResponse(api.DatafeedsListResponse o) { | 1739 checkDatafeedsListResponse(api.DatafeedsListResponse o) { |
1650 buildCounterDatafeedsListResponse++; | 1740 buildCounterDatafeedsListResponse++; |
1651 if (buildCounterDatafeedsListResponse < 3) { | 1741 if (buildCounterDatafeedsListResponse < 3) { |
1652 unittest.expect(o.kind, unittest.equals('foo')); | 1742 unittest.expect(o.kind, unittest.equals('foo')); |
1653 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1743 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1654 checkUnnamed571(o.resources); | 1744 checkUnnamed591(o.resources); |
1655 } | 1745 } |
1656 buildCounterDatafeedsListResponse--; | 1746 buildCounterDatafeedsListResponse--; |
1657 } | 1747 } |
1658 | 1748 |
1659 buildUnnamed572() { | 1749 buildUnnamed592() { |
1660 var o = new core.List<api.DatafeedstatusesCustomBatchRequestEntry>(); | 1750 var o = new core.List<api.DatafeedstatusesCustomBatchRequestEntry>(); |
1661 o.add(buildDatafeedstatusesCustomBatchRequestEntry()); | 1751 o.add(buildDatafeedstatusesCustomBatchRequestEntry()); |
1662 o.add(buildDatafeedstatusesCustomBatchRequestEntry()); | 1752 o.add(buildDatafeedstatusesCustomBatchRequestEntry()); |
1663 return o; | 1753 return o; |
1664 } | 1754 } |
1665 | 1755 |
1666 checkUnnamed572(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { | 1756 checkUnnamed592(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { |
1667 unittest.expect(o, unittest.hasLength(2)); | 1757 unittest.expect(o, unittest.hasLength(2)); |
1668 checkDatafeedstatusesCustomBatchRequestEntry(o[0]); | 1758 checkDatafeedstatusesCustomBatchRequestEntry(o[0]); |
1669 checkDatafeedstatusesCustomBatchRequestEntry(o[1]); | 1759 checkDatafeedstatusesCustomBatchRequestEntry(o[1]); |
1670 } | 1760 } |
1671 | 1761 |
1672 core.int buildCounterDatafeedstatusesCustomBatchRequest = 0; | 1762 core.int buildCounterDatafeedstatusesCustomBatchRequest = 0; |
1673 buildDatafeedstatusesCustomBatchRequest() { | 1763 buildDatafeedstatusesCustomBatchRequest() { |
1674 var o = new api.DatafeedstatusesCustomBatchRequest(); | 1764 var o = new api.DatafeedstatusesCustomBatchRequest(); |
1675 buildCounterDatafeedstatusesCustomBatchRequest++; | 1765 buildCounterDatafeedstatusesCustomBatchRequest++; |
1676 if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { | 1766 if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { |
1677 o.entries = buildUnnamed572(); | 1767 o.entries = buildUnnamed592(); |
1678 } | 1768 } |
1679 buildCounterDatafeedstatusesCustomBatchRequest--; | 1769 buildCounterDatafeedstatusesCustomBatchRequest--; |
1680 return o; | 1770 return o; |
1681 } | 1771 } |
1682 | 1772 |
1683 checkDatafeedstatusesCustomBatchRequest(api.DatafeedstatusesCustomBatchRequest o
) { | 1773 checkDatafeedstatusesCustomBatchRequest(api.DatafeedstatusesCustomBatchRequest o
) { |
1684 buildCounterDatafeedstatusesCustomBatchRequest++; | 1774 buildCounterDatafeedstatusesCustomBatchRequest++; |
1685 if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { | 1775 if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { |
1686 checkUnnamed572(o.entries); | 1776 checkUnnamed592(o.entries); |
1687 } | 1777 } |
1688 buildCounterDatafeedstatusesCustomBatchRequest--; | 1778 buildCounterDatafeedstatusesCustomBatchRequest--; |
1689 } | 1779 } |
1690 | 1780 |
1691 core.int buildCounterDatafeedstatusesCustomBatchRequestEntry = 0; | 1781 core.int buildCounterDatafeedstatusesCustomBatchRequestEntry = 0; |
1692 buildDatafeedstatusesCustomBatchRequestEntry() { | 1782 buildDatafeedstatusesCustomBatchRequestEntry() { |
1693 var o = new api.DatafeedstatusesCustomBatchRequestEntry(); | 1783 var o = new api.DatafeedstatusesCustomBatchRequestEntry(); |
1694 buildCounterDatafeedstatusesCustomBatchRequestEntry++; | 1784 buildCounterDatafeedstatusesCustomBatchRequestEntry++; |
1695 if (buildCounterDatafeedstatusesCustomBatchRequestEntry < 3) { | 1785 if (buildCounterDatafeedstatusesCustomBatchRequestEntry < 3) { |
1696 o.batchId = 42; | 1786 o.batchId = 42; |
1697 o.datafeedId = "foo"; | 1787 o.datafeedId = "foo"; |
1698 o.merchantId = "foo"; | 1788 o.merchantId = "foo"; |
1699 o.method = "foo"; | 1789 o.method = "foo"; |
1700 } | 1790 } |
1701 buildCounterDatafeedstatusesCustomBatchRequestEntry--; | 1791 buildCounterDatafeedstatusesCustomBatchRequestEntry--; |
1702 return o; | 1792 return o; |
1703 } | 1793 } |
1704 | 1794 |
1705 checkDatafeedstatusesCustomBatchRequestEntry(api.DatafeedstatusesCustomBatchRequ
estEntry o) { | 1795 checkDatafeedstatusesCustomBatchRequestEntry(api.DatafeedstatusesCustomBatchRequ
estEntry o) { |
1706 buildCounterDatafeedstatusesCustomBatchRequestEntry++; | 1796 buildCounterDatafeedstatusesCustomBatchRequestEntry++; |
1707 if (buildCounterDatafeedstatusesCustomBatchRequestEntry < 3) { | 1797 if (buildCounterDatafeedstatusesCustomBatchRequestEntry < 3) { |
1708 unittest.expect(o.batchId, unittest.equals(42)); | 1798 unittest.expect(o.batchId, unittest.equals(42)); |
1709 unittest.expect(o.datafeedId, unittest.equals('foo')); | 1799 unittest.expect(o.datafeedId, unittest.equals('foo')); |
1710 unittest.expect(o.merchantId, unittest.equals('foo')); | 1800 unittest.expect(o.merchantId, unittest.equals('foo')); |
1711 unittest.expect(o.method, unittest.equals('foo')); | 1801 unittest.expect(o.method, unittest.equals('foo')); |
1712 } | 1802 } |
1713 buildCounterDatafeedstatusesCustomBatchRequestEntry--; | 1803 buildCounterDatafeedstatusesCustomBatchRequestEntry--; |
1714 } | 1804 } |
1715 | 1805 |
1716 buildUnnamed573() { | 1806 buildUnnamed593() { |
1717 var o = new core.List<api.DatafeedstatusesCustomBatchResponseEntry>(); | 1807 var o = new core.List<api.DatafeedstatusesCustomBatchResponseEntry>(); |
1718 o.add(buildDatafeedstatusesCustomBatchResponseEntry()); | 1808 o.add(buildDatafeedstatusesCustomBatchResponseEntry()); |
1719 o.add(buildDatafeedstatusesCustomBatchResponseEntry()); | 1809 o.add(buildDatafeedstatusesCustomBatchResponseEntry()); |
1720 return o; | 1810 return o; |
1721 } | 1811 } |
1722 | 1812 |
1723 checkUnnamed573(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { | 1813 checkUnnamed593(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { |
1724 unittest.expect(o, unittest.hasLength(2)); | 1814 unittest.expect(o, unittest.hasLength(2)); |
1725 checkDatafeedstatusesCustomBatchResponseEntry(o[0]); | 1815 checkDatafeedstatusesCustomBatchResponseEntry(o[0]); |
1726 checkDatafeedstatusesCustomBatchResponseEntry(o[1]); | 1816 checkDatafeedstatusesCustomBatchResponseEntry(o[1]); |
1727 } | 1817 } |
1728 | 1818 |
1729 core.int buildCounterDatafeedstatusesCustomBatchResponse = 0; | 1819 core.int buildCounterDatafeedstatusesCustomBatchResponse = 0; |
1730 buildDatafeedstatusesCustomBatchResponse() { | 1820 buildDatafeedstatusesCustomBatchResponse() { |
1731 var o = new api.DatafeedstatusesCustomBatchResponse(); | 1821 var o = new api.DatafeedstatusesCustomBatchResponse(); |
1732 buildCounterDatafeedstatusesCustomBatchResponse++; | 1822 buildCounterDatafeedstatusesCustomBatchResponse++; |
1733 if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { | 1823 if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { |
1734 o.entries = buildUnnamed573(); | 1824 o.entries = buildUnnamed593(); |
1735 o.kind = "foo"; | 1825 o.kind = "foo"; |
1736 } | 1826 } |
1737 buildCounterDatafeedstatusesCustomBatchResponse--; | 1827 buildCounterDatafeedstatusesCustomBatchResponse--; |
1738 return o; | 1828 return o; |
1739 } | 1829 } |
1740 | 1830 |
1741 checkDatafeedstatusesCustomBatchResponse(api.DatafeedstatusesCustomBatchResponse
o) { | 1831 checkDatafeedstatusesCustomBatchResponse(api.DatafeedstatusesCustomBatchResponse
o) { |
1742 buildCounterDatafeedstatusesCustomBatchResponse++; | 1832 buildCounterDatafeedstatusesCustomBatchResponse++; |
1743 if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { | 1833 if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { |
1744 checkUnnamed573(o.entries); | 1834 checkUnnamed593(o.entries); |
1745 unittest.expect(o.kind, unittest.equals('foo')); | 1835 unittest.expect(o.kind, unittest.equals('foo')); |
1746 } | 1836 } |
1747 buildCounterDatafeedstatusesCustomBatchResponse--; | 1837 buildCounterDatafeedstatusesCustomBatchResponse--; |
1748 } | 1838 } |
1749 | 1839 |
1750 core.int buildCounterDatafeedstatusesCustomBatchResponseEntry = 0; | 1840 core.int buildCounterDatafeedstatusesCustomBatchResponseEntry = 0; |
1751 buildDatafeedstatusesCustomBatchResponseEntry() { | 1841 buildDatafeedstatusesCustomBatchResponseEntry() { |
1752 var o = new api.DatafeedstatusesCustomBatchResponseEntry(); | 1842 var o = new api.DatafeedstatusesCustomBatchResponseEntry(); |
1753 buildCounterDatafeedstatusesCustomBatchResponseEntry++; | 1843 buildCounterDatafeedstatusesCustomBatchResponseEntry++; |
1754 if (buildCounterDatafeedstatusesCustomBatchResponseEntry < 3) { | 1844 if (buildCounterDatafeedstatusesCustomBatchResponseEntry < 3) { |
1755 o.batchId = 42; | 1845 o.batchId = 42; |
1756 o.datafeedStatus = buildDatafeedStatus(); | 1846 o.datafeedStatus = buildDatafeedStatus(); |
1757 o.errors = buildErrors(); | 1847 o.errors = buildErrors(); |
1758 } | 1848 } |
1759 buildCounterDatafeedstatusesCustomBatchResponseEntry--; | 1849 buildCounterDatafeedstatusesCustomBatchResponseEntry--; |
1760 return o; | 1850 return o; |
1761 } | 1851 } |
1762 | 1852 |
1763 checkDatafeedstatusesCustomBatchResponseEntry(api.DatafeedstatusesCustomBatchRes
ponseEntry o) { | 1853 checkDatafeedstatusesCustomBatchResponseEntry(api.DatafeedstatusesCustomBatchRes
ponseEntry o) { |
1764 buildCounterDatafeedstatusesCustomBatchResponseEntry++; | 1854 buildCounterDatafeedstatusesCustomBatchResponseEntry++; |
1765 if (buildCounterDatafeedstatusesCustomBatchResponseEntry < 3) { | 1855 if (buildCounterDatafeedstatusesCustomBatchResponseEntry < 3) { |
1766 unittest.expect(o.batchId, unittest.equals(42)); | 1856 unittest.expect(o.batchId, unittest.equals(42)); |
1767 checkDatafeedStatus(o.datafeedStatus); | 1857 checkDatafeedStatus(o.datafeedStatus); |
1768 checkErrors(o.errors); | 1858 checkErrors(o.errors); |
1769 } | 1859 } |
1770 buildCounterDatafeedstatusesCustomBatchResponseEntry--; | 1860 buildCounterDatafeedstatusesCustomBatchResponseEntry--; |
1771 } | 1861 } |
1772 | 1862 |
1773 buildUnnamed574() { | 1863 buildUnnamed594() { |
1774 var o = new core.List<api.DatafeedStatus>(); | 1864 var o = new core.List<api.DatafeedStatus>(); |
1775 o.add(buildDatafeedStatus()); | 1865 o.add(buildDatafeedStatus()); |
1776 o.add(buildDatafeedStatus()); | 1866 o.add(buildDatafeedStatus()); |
1777 return o; | 1867 return o; |
1778 } | 1868 } |
1779 | 1869 |
1780 checkUnnamed574(core.List<api.DatafeedStatus> o) { | 1870 checkUnnamed594(core.List<api.DatafeedStatus> o) { |
1781 unittest.expect(o, unittest.hasLength(2)); | 1871 unittest.expect(o, unittest.hasLength(2)); |
1782 checkDatafeedStatus(o[0]); | 1872 checkDatafeedStatus(o[0]); |
1783 checkDatafeedStatus(o[1]); | 1873 checkDatafeedStatus(o[1]); |
1784 } | 1874 } |
1785 | 1875 |
1786 core.int buildCounterDatafeedstatusesListResponse = 0; | 1876 core.int buildCounterDatafeedstatusesListResponse = 0; |
1787 buildDatafeedstatusesListResponse() { | 1877 buildDatafeedstatusesListResponse() { |
1788 var o = new api.DatafeedstatusesListResponse(); | 1878 var o = new api.DatafeedstatusesListResponse(); |
1789 buildCounterDatafeedstatusesListResponse++; | 1879 buildCounterDatafeedstatusesListResponse++; |
1790 if (buildCounterDatafeedstatusesListResponse < 3) { | 1880 if (buildCounterDatafeedstatusesListResponse < 3) { |
1791 o.kind = "foo"; | 1881 o.kind = "foo"; |
1792 o.nextPageToken = "foo"; | 1882 o.nextPageToken = "foo"; |
1793 o.resources = buildUnnamed574(); | 1883 o.resources = buildUnnamed594(); |
1794 } | 1884 } |
1795 buildCounterDatafeedstatusesListResponse--; | 1885 buildCounterDatafeedstatusesListResponse--; |
1796 return o; | 1886 return o; |
1797 } | 1887 } |
1798 | 1888 |
1799 checkDatafeedstatusesListResponse(api.DatafeedstatusesListResponse o) { | 1889 checkDatafeedstatusesListResponse(api.DatafeedstatusesListResponse o) { |
1800 buildCounterDatafeedstatusesListResponse++; | 1890 buildCounterDatafeedstatusesListResponse++; |
1801 if (buildCounterDatafeedstatusesListResponse < 3) { | 1891 if (buildCounterDatafeedstatusesListResponse < 3) { |
1802 unittest.expect(o.kind, unittest.equals('foo')); | 1892 unittest.expect(o.kind, unittest.equals('foo')); |
1803 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1893 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1804 checkUnnamed574(o.resources); | 1894 checkUnnamed594(o.resources); |
1805 } | 1895 } |
1806 buildCounterDatafeedstatusesListResponse--; | 1896 buildCounterDatafeedstatusesListResponse--; |
1807 } | 1897 } |
1808 | 1898 |
1809 core.int buildCounterError = 0; | 1899 core.int buildCounterError = 0; |
1810 buildError() { | 1900 buildError() { |
1811 var o = new api.Error(); | 1901 var o = new api.Error(); |
1812 buildCounterError++; | 1902 buildCounterError++; |
1813 if (buildCounterError < 3) { | 1903 if (buildCounterError < 3) { |
1814 o.domain = "foo"; | 1904 o.domain = "foo"; |
1815 o.message = "foo"; | 1905 o.message = "foo"; |
1816 o.reason = "foo"; | 1906 o.reason = "foo"; |
1817 } | 1907 } |
1818 buildCounterError--; | 1908 buildCounterError--; |
1819 return o; | 1909 return o; |
1820 } | 1910 } |
1821 | 1911 |
1822 checkError(api.Error o) { | 1912 checkError(api.Error o) { |
1823 buildCounterError++; | 1913 buildCounterError++; |
1824 if (buildCounterError < 3) { | 1914 if (buildCounterError < 3) { |
1825 unittest.expect(o.domain, unittest.equals('foo')); | 1915 unittest.expect(o.domain, unittest.equals('foo')); |
1826 unittest.expect(o.message, unittest.equals('foo')); | 1916 unittest.expect(o.message, unittest.equals('foo')); |
1827 unittest.expect(o.reason, unittest.equals('foo')); | 1917 unittest.expect(o.reason, unittest.equals('foo')); |
1828 } | 1918 } |
1829 buildCounterError--; | 1919 buildCounterError--; |
1830 } | 1920 } |
1831 | 1921 |
1832 buildUnnamed575() { | 1922 buildUnnamed595() { |
1833 var o = new core.List<api.Error>(); | 1923 var o = new core.List<api.Error>(); |
1834 o.add(buildError()); | 1924 o.add(buildError()); |
1835 o.add(buildError()); | 1925 o.add(buildError()); |
1836 return o; | 1926 return o; |
1837 } | 1927 } |
1838 | 1928 |
1839 checkUnnamed575(core.List<api.Error> o) { | 1929 checkUnnamed595(core.List<api.Error> o) { |
1840 unittest.expect(o, unittest.hasLength(2)); | 1930 unittest.expect(o, unittest.hasLength(2)); |
1841 checkError(o[0]); | 1931 checkError(o[0]); |
1842 checkError(o[1]); | 1932 checkError(o[1]); |
1843 } | 1933 } |
1844 | 1934 |
1845 core.int buildCounterErrors = 0; | 1935 core.int buildCounterErrors = 0; |
1846 buildErrors() { | 1936 buildErrors() { |
1847 var o = new api.Errors(); | 1937 var o = new api.Errors(); |
1848 buildCounterErrors++; | 1938 buildCounterErrors++; |
1849 if (buildCounterErrors < 3) { | 1939 if (buildCounterErrors < 3) { |
1850 o.code = 42; | 1940 o.code = 42; |
1851 o.errors = buildUnnamed575(); | 1941 o.errors = buildUnnamed595(); |
1852 o.message = "foo"; | 1942 o.message = "foo"; |
1853 } | 1943 } |
1854 buildCounterErrors--; | 1944 buildCounterErrors--; |
1855 return o; | 1945 return o; |
1856 } | 1946 } |
1857 | 1947 |
1858 checkErrors(api.Errors o) { | 1948 checkErrors(api.Errors o) { |
1859 buildCounterErrors++; | 1949 buildCounterErrors++; |
1860 if (buildCounterErrors < 3) { | 1950 if (buildCounterErrors < 3) { |
1861 unittest.expect(o.code, unittest.equals(42)); | 1951 unittest.expect(o.code, unittest.equals(42)); |
1862 checkUnnamed575(o.errors); | 1952 checkUnnamed595(o.errors); |
1863 unittest.expect(o.message, unittest.equals('foo')); | 1953 unittest.expect(o.message, unittest.equals('foo')); |
1864 } | 1954 } |
1865 buildCounterErrors--; | 1955 buildCounterErrors--; |
1866 } | 1956 } |
1867 | 1957 |
1868 core.int buildCounterInventory = 0; | 1958 core.int buildCounterInventory = 0; |
1869 buildInventory() { | 1959 buildInventory() { |
1870 var o = new api.Inventory(); | 1960 var o = new api.Inventory(); |
1871 buildCounterInventory++; | 1961 buildCounterInventory++; |
1872 if (buildCounterInventory < 3) { | 1962 if (buildCounterInventory < 3) { |
(...skipping 14 matching lines...) Expand all Loading... |
1887 unittest.expect(o.availability, unittest.equals('foo')); | 1977 unittest.expect(o.availability, unittest.equals('foo')); |
1888 unittest.expect(o.kind, unittest.equals('foo')); | 1978 unittest.expect(o.kind, unittest.equals('foo')); |
1889 checkPrice(o.price); | 1979 checkPrice(o.price); |
1890 unittest.expect(o.quantity, unittest.equals(42)); | 1980 unittest.expect(o.quantity, unittest.equals(42)); |
1891 checkPrice(o.salePrice); | 1981 checkPrice(o.salePrice); |
1892 unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); | 1982 unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); |
1893 } | 1983 } |
1894 buildCounterInventory--; | 1984 buildCounterInventory--; |
1895 } | 1985 } |
1896 | 1986 |
1897 buildUnnamed576() { | 1987 buildUnnamed596() { |
1898 var o = new core.List<api.InventoryCustomBatchRequestEntry>(); | 1988 var o = new core.List<api.InventoryCustomBatchRequestEntry>(); |
1899 o.add(buildInventoryCustomBatchRequestEntry()); | 1989 o.add(buildInventoryCustomBatchRequestEntry()); |
1900 o.add(buildInventoryCustomBatchRequestEntry()); | 1990 o.add(buildInventoryCustomBatchRequestEntry()); |
1901 return o; | 1991 return o; |
1902 } | 1992 } |
1903 | 1993 |
1904 checkUnnamed576(core.List<api.InventoryCustomBatchRequestEntry> o) { | 1994 checkUnnamed596(core.List<api.InventoryCustomBatchRequestEntry> o) { |
1905 unittest.expect(o, unittest.hasLength(2)); | 1995 unittest.expect(o, unittest.hasLength(2)); |
1906 checkInventoryCustomBatchRequestEntry(o[0]); | 1996 checkInventoryCustomBatchRequestEntry(o[0]); |
1907 checkInventoryCustomBatchRequestEntry(o[1]); | 1997 checkInventoryCustomBatchRequestEntry(o[1]); |
1908 } | 1998 } |
1909 | 1999 |
1910 core.int buildCounterInventoryCustomBatchRequest = 0; | 2000 core.int buildCounterInventoryCustomBatchRequest = 0; |
1911 buildInventoryCustomBatchRequest() { | 2001 buildInventoryCustomBatchRequest() { |
1912 var o = new api.InventoryCustomBatchRequest(); | 2002 var o = new api.InventoryCustomBatchRequest(); |
1913 buildCounterInventoryCustomBatchRequest++; | 2003 buildCounterInventoryCustomBatchRequest++; |
1914 if (buildCounterInventoryCustomBatchRequest < 3) { | 2004 if (buildCounterInventoryCustomBatchRequest < 3) { |
1915 o.entries = buildUnnamed576(); | 2005 o.entries = buildUnnamed596(); |
1916 } | 2006 } |
1917 buildCounterInventoryCustomBatchRequest--; | 2007 buildCounterInventoryCustomBatchRequest--; |
1918 return o; | 2008 return o; |
1919 } | 2009 } |
1920 | 2010 |
1921 checkInventoryCustomBatchRequest(api.InventoryCustomBatchRequest o) { | 2011 checkInventoryCustomBatchRequest(api.InventoryCustomBatchRequest o) { |
1922 buildCounterInventoryCustomBatchRequest++; | 2012 buildCounterInventoryCustomBatchRequest++; |
1923 if (buildCounterInventoryCustomBatchRequest < 3) { | 2013 if (buildCounterInventoryCustomBatchRequest < 3) { |
1924 checkUnnamed576(o.entries); | 2014 checkUnnamed596(o.entries); |
1925 } | 2015 } |
1926 buildCounterInventoryCustomBatchRequest--; | 2016 buildCounterInventoryCustomBatchRequest--; |
1927 } | 2017 } |
1928 | 2018 |
1929 core.int buildCounterInventoryCustomBatchRequestEntry = 0; | 2019 core.int buildCounterInventoryCustomBatchRequestEntry = 0; |
1930 buildInventoryCustomBatchRequestEntry() { | 2020 buildInventoryCustomBatchRequestEntry() { |
1931 var o = new api.InventoryCustomBatchRequestEntry(); | 2021 var o = new api.InventoryCustomBatchRequestEntry(); |
1932 buildCounterInventoryCustomBatchRequestEntry++; | 2022 buildCounterInventoryCustomBatchRequestEntry++; |
1933 if (buildCounterInventoryCustomBatchRequestEntry < 3) { | 2023 if (buildCounterInventoryCustomBatchRequestEntry < 3) { |
1934 o.batchId = 42; | 2024 o.batchId = 42; |
(...skipping 11 matching lines...) Expand all Loading... |
1946 if (buildCounterInventoryCustomBatchRequestEntry < 3) { | 2036 if (buildCounterInventoryCustomBatchRequestEntry < 3) { |
1947 unittest.expect(o.batchId, unittest.equals(42)); | 2037 unittest.expect(o.batchId, unittest.equals(42)); |
1948 checkInventory(o.inventory); | 2038 checkInventory(o.inventory); |
1949 unittest.expect(o.merchantId, unittest.equals('foo')); | 2039 unittest.expect(o.merchantId, unittest.equals('foo')); |
1950 unittest.expect(o.productId, unittest.equals('foo')); | 2040 unittest.expect(o.productId, unittest.equals('foo')); |
1951 unittest.expect(o.storeCode, unittest.equals('foo')); | 2041 unittest.expect(o.storeCode, unittest.equals('foo')); |
1952 } | 2042 } |
1953 buildCounterInventoryCustomBatchRequestEntry--; | 2043 buildCounterInventoryCustomBatchRequestEntry--; |
1954 } | 2044 } |
1955 | 2045 |
1956 buildUnnamed577() { | 2046 buildUnnamed597() { |
1957 var o = new core.List<api.InventoryCustomBatchResponseEntry>(); | 2047 var o = new core.List<api.InventoryCustomBatchResponseEntry>(); |
1958 o.add(buildInventoryCustomBatchResponseEntry()); | 2048 o.add(buildInventoryCustomBatchResponseEntry()); |
1959 o.add(buildInventoryCustomBatchResponseEntry()); | 2049 o.add(buildInventoryCustomBatchResponseEntry()); |
1960 return o; | 2050 return o; |
1961 } | 2051 } |
1962 | 2052 |
1963 checkUnnamed577(core.List<api.InventoryCustomBatchResponseEntry> o) { | 2053 checkUnnamed597(core.List<api.InventoryCustomBatchResponseEntry> o) { |
1964 unittest.expect(o, unittest.hasLength(2)); | 2054 unittest.expect(o, unittest.hasLength(2)); |
1965 checkInventoryCustomBatchResponseEntry(o[0]); | 2055 checkInventoryCustomBatchResponseEntry(o[0]); |
1966 checkInventoryCustomBatchResponseEntry(o[1]); | 2056 checkInventoryCustomBatchResponseEntry(o[1]); |
1967 } | 2057 } |
1968 | 2058 |
1969 core.int buildCounterInventoryCustomBatchResponse = 0; | 2059 core.int buildCounterInventoryCustomBatchResponse = 0; |
1970 buildInventoryCustomBatchResponse() { | 2060 buildInventoryCustomBatchResponse() { |
1971 var o = new api.InventoryCustomBatchResponse(); | 2061 var o = new api.InventoryCustomBatchResponse(); |
1972 buildCounterInventoryCustomBatchResponse++; | 2062 buildCounterInventoryCustomBatchResponse++; |
1973 if (buildCounterInventoryCustomBatchResponse < 3) { | 2063 if (buildCounterInventoryCustomBatchResponse < 3) { |
1974 o.entries = buildUnnamed577(); | 2064 o.entries = buildUnnamed597(); |
1975 o.kind = "foo"; | 2065 o.kind = "foo"; |
1976 } | 2066 } |
1977 buildCounterInventoryCustomBatchResponse--; | 2067 buildCounterInventoryCustomBatchResponse--; |
1978 return o; | 2068 return o; |
1979 } | 2069 } |
1980 | 2070 |
1981 checkInventoryCustomBatchResponse(api.InventoryCustomBatchResponse o) { | 2071 checkInventoryCustomBatchResponse(api.InventoryCustomBatchResponse o) { |
1982 buildCounterInventoryCustomBatchResponse++; | 2072 buildCounterInventoryCustomBatchResponse++; |
1983 if (buildCounterInventoryCustomBatchResponse < 3) { | 2073 if (buildCounterInventoryCustomBatchResponse < 3) { |
1984 checkUnnamed577(o.entries); | 2074 checkUnnamed597(o.entries); |
1985 unittest.expect(o.kind, unittest.equals('foo')); | 2075 unittest.expect(o.kind, unittest.equals('foo')); |
1986 } | 2076 } |
1987 buildCounterInventoryCustomBatchResponse--; | 2077 buildCounterInventoryCustomBatchResponse--; |
1988 } | 2078 } |
1989 | 2079 |
1990 core.int buildCounterInventoryCustomBatchResponseEntry = 0; | 2080 core.int buildCounterInventoryCustomBatchResponseEntry = 0; |
1991 buildInventoryCustomBatchResponseEntry() { | 2081 buildInventoryCustomBatchResponseEntry() { |
1992 var o = new api.InventoryCustomBatchResponseEntry(); | 2082 var o = new api.InventoryCustomBatchResponseEntry(); |
1993 buildCounterInventoryCustomBatchResponseEntry++; | 2083 buildCounterInventoryCustomBatchResponseEntry++; |
1994 if (buildCounterInventoryCustomBatchResponseEntry < 3) { | 2084 if (buildCounterInventoryCustomBatchResponseEntry < 3) { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2093 | 2183 |
2094 checkPrice(api.Price o) { | 2184 checkPrice(api.Price o) { |
2095 buildCounterPrice++; | 2185 buildCounterPrice++; |
2096 if (buildCounterPrice < 3) { | 2186 if (buildCounterPrice < 3) { |
2097 unittest.expect(o.currency, unittest.equals('foo')); | 2187 unittest.expect(o.currency, unittest.equals('foo')); |
2098 unittest.expect(o.value, unittest.equals('foo')); | 2188 unittest.expect(o.value, unittest.equals('foo')); |
2099 } | 2189 } |
2100 buildCounterPrice--; | 2190 buildCounterPrice--; |
2101 } | 2191 } |
2102 | 2192 |
2103 buildUnnamed578() { | 2193 buildUnnamed598() { |
2104 var o = new core.List<core.String>(); | 2194 var o = new core.List<core.String>(); |
2105 o.add("foo"); | 2195 o.add("foo"); |
2106 o.add("foo"); | 2196 o.add("foo"); |
2107 return o; | 2197 return o; |
2108 } | 2198 } |
2109 | 2199 |
2110 checkUnnamed578(core.List<core.String> o) { | 2200 checkUnnamed598(core.List<core.String> o) { |
2111 unittest.expect(o, unittest.hasLength(2)); | 2201 unittest.expect(o, unittest.hasLength(2)); |
2112 unittest.expect(o[0], unittest.equals('foo')); | 2202 unittest.expect(o[0], unittest.equals('foo')); |
2113 unittest.expect(o[1], unittest.equals('foo')); | 2203 unittest.expect(o[1], unittest.equals('foo')); |
2114 } | 2204 } |
2115 | 2205 |
2116 buildUnnamed579() { | 2206 buildUnnamed599() { |
2117 var o = new core.List<core.String>(); | 2207 var o = new core.List<core.String>(); |
2118 o.add("foo"); | 2208 o.add("foo"); |
2119 o.add("foo"); | 2209 o.add("foo"); |
2120 return o; | 2210 return o; |
2121 } | 2211 } |
2122 | 2212 |
2123 checkUnnamed579(core.List<core.String> o) { | 2213 checkUnnamed599(core.List<core.String> o) { |
2124 unittest.expect(o, unittest.hasLength(2)); | 2214 unittest.expect(o, unittest.hasLength(2)); |
2125 unittest.expect(o[0], unittest.equals('foo')); | 2215 unittest.expect(o[0], unittest.equals('foo')); |
2126 unittest.expect(o[1], unittest.equals('foo')); | 2216 unittest.expect(o[1], unittest.equals('foo')); |
2127 } | 2217 } |
2128 | 2218 |
2129 buildUnnamed580() { | 2219 buildUnnamed600() { |
| 2220 var o = new core.List<api.ProductAspect>(); |
| 2221 o.add(buildProductAspect()); |
| 2222 o.add(buildProductAspect()); |
| 2223 return o; |
| 2224 } |
| 2225 |
| 2226 checkUnnamed600(core.List<api.ProductAspect> o) { |
| 2227 unittest.expect(o, unittest.hasLength(2)); |
| 2228 checkProductAspect(o[0]); |
| 2229 checkProductAspect(o[1]); |
| 2230 } |
| 2231 |
| 2232 buildUnnamed601() { |
2130 var o = new core.List<api.ProductCustomAttribute>(); | 2233 var o = new core.List<api.ProductCustomAttribute>(); |
2131 o.add(buildProductCustomAttribute()); | 2234 o.add(buildProductCustomAttribute()); |
2132 o.add(buildProductCustomAttribute()); | 2235 o.add(buildProductCustomAttribute()); |
2133 return o; | 2236 return o; |
2134 } | 2237 } |
2135 | 2238 |
2136 checkUnnamed580(core.List<api.ProductCustomAttribute> o) { | 2239 checkUnnamed601(core.List<api.ProductCustomAttribute> o) { |
2137 unittest.expect(o, unittest.hasLength(2)); | 2240 unittest.expect(o, unittest.hasLength(2)); |
2138 checkProductCustomAttribute(o[0]); | 2241 checkProductCustomAttribute(o[0]); |
2139 checkProductCustomAttribute(o[1]); | 2242 checkProductCustomAttribute(o[1]); |
2140 } | 2243 } |
2141 | 2244 |
2142 buildUnnamed581() { | 2245 buildUnnamed602() { |
2143 var o = new core.List<api.ProductCustomGroup>(); | 2246 var o = new core.List<api.ProductCustomGroup>(); |
2144 o.add(buildProductCustomGroup()); | 2247 o.add(buildProductCustomGroup()); |
2145 o.add(buildProductCustomGroup()); | 2248 o.add(buildProductCustomGroup()); |
2146 return o; | 2249 return o; |
2147 } | 2250 } |
2148 | 2251 |
2149 checkUnnamed581(core.List<api.ProductCustomGroup> o) { | 2252 checkUnnamed602(core.List<api.ProductCustomGroup> o) { |
2150 unittest.expect(o, unittest.hasLength(2)); | 2253 unittest.expect(o, unittest.hasLength(2)); |
2151 checkProductCustomGroup(o[0]); | 2254 checkProductCustomGroup(o[0]); |
2152 checkProductCustomGroup(o[1]); | 2255 checkProductCustomGroup(o[1]); |
2153 } | 2256 } |
2154 | 2257 |
2155 buildUnnamed582() { | 2258 buildUnnamed603() { |
2156 var o = new core.List<api.ProductDestination>(); | 2259 var o = new core.List<api.ProductDestination>(); |
2157 o.add(buildProductDestination()); | 2260 o.add(buildProductDestination()); |
2158 o.add(buildProductDestination()); | 2261 o.add(buildProductDestination()); |
2159 return o; | 2262 return o; |
2160 } | 2263 } |
2161 | 2264 |
2162 checkUnnamed582(core.List<api.ProductDestination> o) { | 2265 checkUnnamed603(core.List<api.ProductDestination> o) { |
2163 unittest.expect(o, unittest.hasLength(2)); | 2266 unittest.expect(o, unittest.hasLength(2)); |
2164 checkProductDestination(o[0]); | 2267 checkProductDestination(o[0]); |
2165 checkProductDestination(o[1]); | 2268 checkProductDestination(o[1]); |
2166 } | 2269 } |
2167 | 2270 |
2168 buildUnnamed583() { | 2271 buildUnnamed604() { |
2169 var o = new core.List<core.String>(); | 2272 var o = new core.List<core.String>(); |
2170 o.add("foo"); | 2273 o.add("foo"); |
2171 o.add("foo"); | 2274 o.add("foo"); |
2172 return o; | 2275 return o; |
2173 } | 2276 } |
2174 | 2277 |
2175 checkUnnamed583(core.List<core.String> o) { | 2278 checkUnnamed604(core.List<core.String> o) { |
2176 unittest.expect(o, unittest.hasLength(2)); | 2279 unittest.expect(o, unittest.hasLength(2)); |
2177 unittest.expect(o[0], unittest.equals('foo')); | 2280 unittest.expect(o[0], unittest.equals('foo')); |
2178 unittest.expect(o[1], unittest.equals('foo')); | 2281 unittest.expect(o[1], unittest.equals('foo')); |
2179 } | 2282 } |
2180 | 2283 |
2181 buildUnnamed584() { | 2284 buildUnnamed605() { |
2182 var o = new core.List<api.ProductShipping>(); | 2285 var o = new core.List<api.ProductShipping>(); |
2183 o.add(buildProductShipping()); | 2286 o.add(buildProductShipping()); |
2184 o.add(buildProductShipping()); | 2287 o.add(buildProductShipping()); |
2185 return o; | 2288 return o; |
2186 } | 2289 } |
2187 | 2290 |
2188 checkUnnamed584(core.List<api.ProductShipping> o) { | 2291 checkUnnamed605(core.List<api.ProductShipping> o) { |
2189 unittest.expect(o, unittest.hasLength(2)); | 2292 unittest.expect(o, unittest.hasLength(2)); |
2190 checkProductShipping(o[0]); | 2293 checkProductShipping(o[0]); |
2191 checkProductShipping(o[1]); | 2294 checkProductShipping(o[1]); |
2192 } | 2295 } |
2193 | 2296 |
2194 buildUnnamed585() { | 2297 buildUnnamed606() { |
2195 var o = new core.List<core.String>(); | 2298 var o = new core.List<core.String>(); |
2196 o.add("foo"); | 2299 o.add("foo"); |
2197 o.add("foo"); | 2300 o.add("foo"); |
2198 return o; | 2301 return o; |
2199 } | 2302 } |
2200 | 2303 |
2201 checkUnnamed585(core.List<core.String> o) { | 2304 checkUnnamed606(core.List<core.String> o) { |
2202 unittest.expect(o, unittest.hasLength(2)); | 2305 unittest.expect(o, unittest.hasLength(2)); |
2203 unittest.expect(o[0], unittest.equals('foo')); | 2306 unittest.expect(o[0], unittest.equals('foo')); |
2204 unittest.expect(o[1], unittest.equals('foo')); | 2307 unittest.expect(o[1], unittest.equals('foo')); |
2205 } | 2308 } |
2206 | 2309 |
2207 buildUnnamed586() { | 2310 buildUnnamed607() { |
2208 var o = new core.List<api.ProductTax>(); | 2311 var o = new core.List<api.ProductTax>(); |
2209 o.add(buildProductTax()); | 2312 o.add(buildProductTax()); |
2210 o.add(buildProductTax()); | 2313 o.add(buildProductTax()); |
2211 return o; | 2314 return o; |
2212 } | 2315 } |
2213 | 2316 |
2214 checkUnnamed586(core.List<api.ProductTax> o) { | 2317 checkUnnamed607(core.List<api.ProductTax> o) { |
2215 unittest.expect(o, unittest.hasLength(2)); | 2318 unittest.expect(o, unittest.hasLength(2)); |
2216 checkProductTax(o[0]); | 2319 checkProductTax(o[0]); |
2217 checkProductTax(o[1]); | 2320 checkProductTax(o[1]); |
2218 } | 2321 } |
2219 | 2322 |
2220 buildUnnamed587() { | 2323 buildUnnamed608() { |
2221 var o = new core.List<core.String>(); | 2324 var o = new core.List<core.String>(); |
2222 o.add("foo"); | 2325 o.add("foo"); |
2223 o.add("foo"); | 2326 o.add("foo"); |
2224 return o; | 2327 return o; |
2225 } | 2328 } |
2226 | 2329 |
2227 checkUnnamed587(core.List<core.String> o) { | 2330 checkUnnamed608(core.List<core.String> o) { |
2228 unittest.expect(o, unittest.hasLength(2)); | 2331 unittest.expect(o, unittest.hasLength(2)); |
2229 unittest.expect(o[0], unittest.equals('foo')); | 2332 unittest.expect(o[0], unittest.equals('foo')); |
2230 unittest.expect(o[1], unittest.equals('foo')); | 2333 unittest.expect(o[1], unittest.equals('foo')); |
2231 } | 2334 } |
2232 | 2335 |
2233 buildUnnamed588() { | 2336 buildUnnamed609() { |
2234 var o = new core.List<api.Error>(); | 2337 var o = new core.List<api.Error>(); |
2235 o.add(buildError()); | 2338 o.add(buildError()); |
2236 o.add(buildError()); | 2339 o.add(buildError()); |
2237 return o; | 2340 return o; |
2238 } | 2341 } |
2239 | 2342 |
2240 checkUnnamed588(core.List<api.Error> o) { | 2343 checkUnnamed609(core.List<api.Error> o) { |
2241 unittest.expect(o, unittest.hasLength(2)); | 2344 unittest.expect(o, unittest.hasLength(2)); |
2242 checkError(o[0]); | 2345 checkError(o[0]); |
2243 checkError(o[1]); | 2346 checkError(o[1]); |
2244 } | 2347 } |
2245 | 2348 |
2246 core.int buildCounterProduct = 0; | 2349 core.int buildCounterProduct = 0; |
2247 buildProduct() { | 2350 buildProduct() { |
2248 var o = new api.Product(); | 2351 var o = new api.Product(); |
2249 buildCounterProduct++; | 2352 buildCounterProduct++; |
2250 if (buildCounterProduct < 3) { | 2353 if (buildCounterProduct < 3) { |
2251 o.additionalImageLinks = buildUnnamed578(); | 2354 o.additionalImageLinks = buildUnnamed598(); |
2252 o.adult = true; | 2355 o.adult = true; |
2253 o.adwordsGrouping = "foo"; | 2356 o.adwordsGrouping = "foo"; |
2254 o.adwordsLabels = buildUnnamed579(); | 2357 o.adwordsLabels = buildUnnamed599(); |
2255 o.adwordsRedirect = "foo"; | 2358 o.adwordsRedirect = "foo"; |
2256 o.ageGroup = "foo"; | 2359 o.ageGroup = "foo"; |
| 2360 o.aspects = buildUnnamed600(); |
2257 o.availability = "foo"; | 2361 o.availability = "foo"; |
2258 o.availabilityDate = "foo"; | 2362 o.availabilityDate = "foo"; |
2259 o.brand = "foo"; | 2363 o.brand = "foo"; |
2260 o.channel = "foo"; | 2364 o.channel = "foo"; |
2261 o.color = "foo"; | 2365 o.color = "foo"; |
2262 o.condition = "foo"; | 2366 o.condition = "foo"; |
2263 o.contentLanguage = "foo"; | 2367 o.contentLanguage = "foo"; |
2264 o.customAttributes = buildUnnamed580(); | 2368 o.customAttributes = buildUnnamed601(); |
2265 o.customGroups = buildUnnamed581(); | 2369 o.customGroups = buildUnnamed602(); |
2266 o.customLabel0 = "foo"; | 2370 o.customLabel0 = "foo"; |
2267 o.customLabel1 = "foo"; | 2371 o.customLabel1 = "foo"; |
2268 o.customLabel2 = "foo"; | 2372 o.customLabel2 = "foo"; |
2269 o.customLabel3 = "foo"; | 2373 o.customLabel3 = "foo"; |
2270 o.customLabel4 = "foo"; | 2374 o.customLabel4 = "foo"; |
2271 o.description = "foo"; | 2375 o.description = "foo"; |
2272 o.destinations = buildUnnamed582(); | 2376 o.destinations = buildUnnamed603(); |
2273 o.displayAdsId = "foo"; | 2377 o.displayAdsId = "foo"; |
2274 o.displayAdsLink = "foo"; | 2378 o.displayAdsLink = "foo"; |
2275 o.displayAdsSimilarIds = buildUnnamed583(); | 2379 o.displayAdsSimilarIds = buildUnnamed604(); |
2276 o.displayAdsTitle = "foo"; | 2380 o.displayAdsTitle = "foo"; |
2277 o.displayAdsValue = 42.0; | 2381 o.displayAdsValue = 42.0; |
2278 o.energyEfficiencyClass = "foo"; | 2382 o.energyEfficiencyClass = "foo"; |
2279 o.expirationDate = "foo"; | 2383 o.expirationDate = "foo"; |
2280 o.gender = "foo"; | 2384 o.gender = "foo"; |
2281 o.googleProductCategory = "foo"; | 2385 o.googleProductCategory = "foo"; |
2282 o.gtin = "foo"; | 2386 o.gtin = "foo"; |
2283 o.id = "foo"; | 2387 o.id = "foo"; |
2284 o.identifierExists = true; | 2388 o.identifierExists = true; |
2285 o.imageLink = "foo"; | 2389 o.imageLink = "foo"; |
2286 o.installment = buildProductInstallment(); | 2390 o.installment = buildProductInstallment(); |
2287 o.isBundle = true; | 2391 o.isBundle = true; |
2288 o.itemGroupId = "foo"; | 2392 o.itemGroupId = "foo"; |
2289 o.kind = "foo"; | 2393 o.kind = "foo"; |
2290 o.link = "foo"; | 2394 o.link = "foo"; |
2291 o.loyaltyPoints = buildLoyaltyPoints(); | 2395 o.loyaltyPoints = buildLoyaltyPoints(); |
2292 o.material = "foo"; | 2396 o.material = "foo"; |
2293 o.mobileLink = "foo"; | 2397 o.mobileLink = "foo"; |
2294 o.mpn = "foo"; | 2398 o.mpn = "foo"; |
2295 o.multipack = "foo"; | 2399 o.multipack = "foo"; |
2296 o.offerId = "foo"; | 2400 o.offerId = "foo"; |
2297 o.onlineOnly = true; | 2401 o.onlineOnly = true; |
2298 o.pattern = "foo"; | 2402 o.pattern = "foo"; |
2299 o.price = buildPrice(); | 2403 o.price = buildPrice(); |
2300 o.productType = "foo"; | 2404 o.productType = "foo"; |
2301 o.salePrice = buildPrice(); | 2405 o.salePrice = buildPrice(); |
2302 o.salePriceEffectiveDate = "foo"; | 2406 o.salePriceEffectiveDate = "foo"; |
2303 o.shipping = buildUnnamed584(); | 2407 o.shipping = buildUnnamed605(); |
2304 o.shippingHeight = buildProductShippingDimension(); | 2408 o.shippingHeight = buildProductShippingDimension(); |
2305 o.shippingLabel = "foo"; | 2409 o.shippingLabel = "foo"; |
2306 o.shippingLength = buildProductShippingDimension(); | 2410 o.shippingLength = buildProductShippingDimension(); |
2307 o.shippingWeight = buildProductShippingWeight(); | 2411 o.shippingWeight = buildProductShippingWeight(); |
2308 o.shippingWidth = buildProductShippingDimension(); | 2412 o.shippingWidth = buildProductShippingDimension(); |
2309 o.sizeSystem = "foo"; | 2413 o.sizeSystem = "foo"; |
2310 o.sizeType = "foo"; | 2414 o.sizeType = "foo"; |
2311 o.sizes = buildUnnamed585(); | 2415 o.sizes = buildUnnamed606(); |
2312 o.targetCountry = "foo"; | 2416 o.targetCountry = "foo"; |
2313 o.taxes = buildUnnamed586(); | 2417 o.taxes = buildUnnamed607(); |
2314 o.title = "foo"; | 2418 o.title = "foo"; |
2315 o.unitPricingBaseMeasure = buildProductUnitPricingBaseMeasure(); | 2419 o.unitPricingBaseMeasure = buildProductUnitPricingBaseMeasure(); |
2316 o.unitPricingMeasure = buildProductUnitPricingMeasure(); | 2420 o.unitPricingMeasure = buildProductUnitPricingMeasure(); |
2317 o.validatedDestinations = buildUnnamed587(); | 2421 o.validatedDestinations = buildUnnamed608(); |
2318 o.warnings = buildUnnamed588(); | 2422 o.warnings = buildUnnamed609(); |
2319 } | 2423 } |
2320 buildCounterProduct--; | 2424 buildCounterProduct--; |
2321 return o; | 2425 return o; |
2322 } | 2426 } |
2323 | 2427 |
2324 checkProduct(api.Product o) { | 2428 checkProduct(api.Product o) { |
2325 buildCounterProduct++; | 2429 buildCounterProduct++; |
2326 if (buildCounterProduct < 3) { | 2430 if (buildCounterProduct < 3) { |
2327 checkUnnamed578(o.additionalImageLinks); | 2431 checkUnnamed598(o.additionalImageLinks); |
2328 unittest.expect(o.adult, unittest.isTrue); | 2432 unittest.expect(o.adult, unittest.isTrue); |
2329 unittest.expect(o.adwordsGrouping, unittest.equals('foo')); | 2433 unittest.expect(o.adwordsGrouping, unittest.equals('foo')); |
2330 checkUnnamed579(o.adwordsLabels); | 2434 checkUnnamed599(o.adwordsLabels); |
2331 unittest.expect(o.adwordsRedirect, unittest.equals('foo')); | 2435 unittest.expect(o.adwordsRedirect, unittest.equals('foo')); |
2332 unittest.expect(o.ageGroup, unittest.equals('foo')); | 2436 unittest.expect(o.ageGroup, unittest.equals('foo')); |
| 2437 checkUnnamed600(o.aspects); |
2333 unittest.expect(o.availability, unittest.equals('foo')); | 2438 unittest.expect(o.availability, unittest.equals('foo')); |
2334 unittest.expect(o.availabilityDate, unittest.equals('foo')); | 2439 unittest.expect(o.availabilityDate, unittest.equals('foo')); |
2335 unittest.expect(o.brand, unittest.equals('foo')); | 2440 unittest.expect(o.brand, unittest.equals('foo')); |
2336 unittest.expect(o.channel, unittest.equals('foo')); | 2441 unittest.expect(o.channel, unittest.equals('foo')); |
2337 unittest.expect(o.color, unittest.equals('foo')); | 2442 unittest.expect(o.color, unittest.equals('foo')); |
2338 unittest.expect(o.condition, unittest.equals('foo')); | 2443 unittest.expect(o.condition, unittest.equals('foo')); |
2339 unittest.expect(o.contentLanguage, unittest.equals('foo')); | 2444 unittest.expect(o.contentLanguage, unittest.equals('foo')); |
2340 checkUnnamed580(o.customAttributes); | 2445 checkUnnamed601(o.customAttributes); |
2341 checkUnnamed581(o.customGroups); | 2446 checkUnnamed602(o.customGroups); |
2342 unittest.expect(o.customLabel0, unittest.equals('foo')); | 2447 unittest.expect(o.customLabel0, unittest.equals('foo')); |
2343 unittest.expect(o.customLabel1, unittest.equals('foo')); | 2448 unittest.expect(o.customLabel1, unittest.equals('foo')); |
2344 unittest.expect(o.customLabel2, unittest.equals('foo')); | 2449 unittest.expect(o.customLabel2, unittest.equals('foo')); |
2345 unittest.expect(o.customLabel3, unittest.equals('foo')); | 2450 unittest.expect(o.customLabel3, unittest.equals('foo')); |
2346 unittest.expect(o.customLabel4, unittest.equals('foo')); | 2451 unittest.expect(o.customLabel4, unittest.equals('foo')); |
2347 unittest.expect(o.description, unittest.equals('foo')); | 2452 unittest.expect(o.description, unittest.equals('foo')); |
2348 checkUnnamed582(o.destinations); | 2453 checkUnnamed603(o.destinations); |
2349 unittest.expect(o.displayAdsId, unittest.equals('foo')); | 2454 unittest.expect(o.displayAdsId, unittest.equals('foo')); |
2350 unittest.expect(o.displayAdsLink, unittest.equals('foo')); | 2455 unittest.expect(o.displayAdsLink, unittest.equals('foo')); |
2351 checkUnnamed583(o.displayAdsSimilarIds); | 2456 checkUnnamed604(o.displayAdsSimilarIds); |
2352 unittest.expect(o.displayAdsTitle, unittest.equals('foo')); | 2457 unittest.expect(o.displayAdsTitle, unittest.equals('foo')); |
2353 unittest.expect(o.displayAdsValue, unittest.equals(42.0)); | 2458 unittest.expect(o.displayAdsValue, unittest.equals(42.0)); |
2354 unittest.expect(o.energyEfficiencyClass, unittest.equals('foo')); | 2459 unittest.expect(o.energyEfficiencyClass, unittest.equals('foo')); |
2355 unittest.expect(o.expirationDate, unittest.equals('foo')); | 2460 unittest.expect(o.expirationDate, unittest.equals('foo')); |
2356 unittest.expect(o.gender, unittest.equals('foo')); | 2461 unittest.expect(o.gender, unittest.equals('foo')); |
2357 unittest.expect(o.googleProductCategory, unittest.equals('foo')); | 2462 unittest.expect(o.googleProductCategory, unittest.equals('foo')); |
2358 unittest.expect(o.gtin, unittest.equals('foo')); | 2463 unittest.expect(o.gtin, unittest.equals('foo')); |
2359 unittest.expect(o.id, unittest.equals('foo')); | 2464 unittest.expect(o.id, unittest.equals('foo')); |
2360 unittest.expect(o.identifierExists, unittest.isTrue); | 2465 unittest.expect(o.identifierExists, unittest.isTrue); |
2361 unittest.expect(o.imageLink, unittest.equals('foo')); | 2466 unittest.expect(o.imageLink, unittest.equals('foo')); |
2362 checkProductInstallment(o.installment); | 2467 checkProductInstallment(o.installment); |
2363 unittest.expect(o.isBundle, unittest.isTrue); | 2468 unittest.expect(o.isBundle, unittest.isTrue); |
2364 unittest.expect(o.itemGroupId, unittest.equals('foo')); | 2469 unittest.expect(o.itemGroupId, unittest.equals('foo')); |
2365 unittest.expect(o.kind, unittest.equals('foo')); | 2470 unittest.expect(o.kind, unittest.equals('foo')); |
2366 unittest.expect(o.link, unittest.equals('foo')); | 2471 unittest.expect(o.link, unittest.equals('foo')); |
2367 checkLoyaltyPoints(o.loyaltyPoints); | 2472 checkLoyaltyPoints(o.loyaltyPoints); |
2368 unittest.expect(o.material, unittest.equals('foo')); | 2473 unittest.expect(o.material, unittest.equals('foo')); |
2369 unittest.expect(o.mobileLink, unittest.equals('foo')); | 2474 unittest.expect(o.mobileLink, unittest.equals('foo')); |
2370 unittest.expect(o.mpn, unittest.equals('foo')); | 2475 unittest.expect(o.mpn, unittest.equals('foo')); |
2371 unittest.expect(o.multipack, unittest.equals('foo')); | 2476 unittest.expect(o.multipack, unittest.equals('foo')); |
2372 unittest.expect(o.offerId, unittest.equals('foo')); | 2477 unittest.expect(o.offerId, unittest.equals('foo')); |
2373 unittest.expect(o.onlineOnly, unittest.isTrue); | 2478 unittest.expect(o.onlineOnly, unittest.isTrue); |
2374 unittest.expect(o.pattern, unittest.equals('foo')); | 2479 unittest.expect(o.pattern, unittest.equals('foo')); |
2375 checkPrice(o.price); | 2480 checkPrice(o.price); |
2376 unittest.expect(o.productType, unittest.equals('foo')); | 2481 unittest.expect(o.productType, unittest.equals('foo')); |
2377 checkPrice(o.salePrice); | 2482 checkPrice(o.salePrice); |
2378 unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); | 2483 unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); |
2379 checkUnnamed584(o.shipping); | 2484 checkUnnamed605(o.shipping); |
2380 checkProductShippingDimension(o.shippingHeight); | 2485 checkProductShippingDimension(o.shippingHeight); |
2381 unittest.expect(o.shippingLabel, unittest.equals('foo')); | 2486 unittest.expect(o.shippingLabel, unittest.equals('foo')); |
2382 checkProductShippingDimension(o.shippingLength); | 2487 checkProductShippingDimension(o.shippingLength); |
2383 checkProductShippingWeight(o.shippingWeight); | 2488 checkProductShippingWeight(o.shippingWeight); |
2384 checkProductShippingDimension(o.shippingWidth); | 2489 checkProductShippingDimension(o.shippingWidth); |
2385 unittest.expect(o.sizeSystem, unittest.equals('foo')); | 2490 unittest.expect(o.sizeSystem, unittest.equals('foo')); |
2386 unittest.expect(o.sizeType, unittest.equals('foo')); | 2491 unittest.expect(o.sizeType, unittest.equals('foo')); |
2387 checkUnnamed585(o.sizes); | 2492 checkUnnamed606(o.sizes); |
2388 unittest.expect(o.targetCountry, unittest.equals('foo')); | 2493 unittest.expect(o.targetCountry, unittest.equals('foo')); |
2389 checkUnnamed586(o.taxes); | 2494 checkUnnamed607(o.taxes); |
2390 unittest.expect(o.title, unittest.equals('foo')); | 2495 unittest.expect(o.title, unittest.equals('foo')); |
2391 checkProductUnitPricingBaseMeasure(o.unitPricingBaseMeasure); | 2496 checkProductUnitPricingBaseMeasure(o.unitPricingBaseMeasure); |
2392 checkProductUnitPricingMeasure(o.unitPricingMeasure); | 2497 checkProductUnitPricingMeasure(o.unitPricingMeasure); |
2393 checkUnnamed587(o.validatedDestinations); | 2498 checkUnnamed608(o.validatedDestinations); |
2394 checkUnnamed588(o.warnings); | 2499 checkUnnamed609(o.warnings); |
2395 } | 2500 } |
2396 buildCounterProduct--; | 2501 buildCounterProduct--; |
2397 } | 2502 } |
2398 | 2503 |
| 2504 core.int buildCounterProductAspect = 0; |
| 2505 buildProductAspect() { |
| 2506 var o = new api.ProductAspect(); |
| 2507 buildCounterProductAspect++; |
| 2508 if (buildCounterProductAspect < 3) { |
| 2509 o.aspectName = "foo"; |
| 2510 o.destinationName = "foo"; |
| 2511 o.intention = "foo"; |
| 2512 } |
| 2513 buildCounterProductAspect--; |
| 2514 return o; |
| 2515 } |
| 2516 |
| 2517 checkProductAspect(api.ProductAspect o) { |
| 2518 buildCounterProductAspect++; |
| 2519 if (buildCounterProductAspect < 3) { |
| 2520 unittest.expect(o.aspectName, unittest.equals('foo')); |
| 2521 unittest.expect(o.destinationName, unittest.equals('foo')); |
| 2522 unittest.expect(o.intention, unittest.equals('foo')); |
| 2523 } |
| 2524 buildCounterProductAspect--; |
| 2525 } |
| 2526 |
2399 core.int buildCounterProductCustomAttribute = 0; | 2527 core.int buildCounterProductCustomAttribute = 0; |
2400 buildProductCustomAttribute() { | 2528 buildProductCustomAttribute() { |
2401 var o = new api.ProductCustomAttribute(); | 2529 var o = new api.ProductCustomAttribute(); |
2402 buildCounterProductCustomAttribute++; | 2530 buildCounterProductCustomAttribute++; |
2403 if (buildCounterProductCustomAttribute < 3) { | 2531 if (buildCounterProductCustomAttribute < 3) { |
2404 o.name = "foo"; | 2532 o.name = "foo"; |
2405 o.type = "foo"; | 2533 o.type = "foo"; |
2406 o.unit = "foo"; | 2534 o.unit = "foo"; |
2407 o.value = "foo"; | 2535 o.value = "foo"; |
2408 } | 2536 } |
2409 buildCounterProductCustomAttribute--; | 2537 buildCounterProductCustomAttribute--; |
2410 return o; | 2538 return o; |
2411 } | 2539 } |
2412 | 2540 |
2413 checkProductCustomAttribute(api.ProductCustomAttribute o) { | 2541 checkProductCustomAttribute(api.ProductCustomAttribute o) { |
2414 buildCounterProductCustomAttribute++; | 2542 buildCounterProductCustomAttribute++; |
2415 if (buildCounterProductCustomAttribute < 3) { | 2543 if (buildCounterProductCustomAttribute < 3) { |
2416 unittest.expect(o.name, unittest.equals('foo')); | 2544 unittest.expect(o.name, unittest.equals('foo')); |
2417 unittest.expect(o.type, unittest.equals('foo')); | 2545 unittest.expect(o.type, unittest.equals('foo')); |
2418 unittest.expect(o.unit, unittest.equals('foo')); | 2546 unittest.expect(o.unit, unittest.equals('foo')); |
2419 unittest.expect(o.value, unittest.equals('foo')); | 2547 unittest.expect(o.value, unittest.equals('foo')); |
2420 } | 2548 } |
2421 buildCounterProductCustomAttribute--; | 2549 buildCounterProductCustomAttribute--; |
2422 } | 2550 } |
2423 | 2551 |
2424 buildUnnamed589() { | 2552 buildUnnamed610() { |
2425 var o = new core.List<api.ProductCustomAttribute>(); | 2553 var o = new core.List<api.ProductCustomAttribute>(); |
2426 o.add(buildProductCustomAttribute()); | 2554 o.add(buildProductCustomAttribute()); |
2427 o.add(buildProductCustomAttribute()); | 2555 o.add(buildProductCustomAttribute()); |
2428 return o; | 2556 return o; |
2429 } | 2557 } |
2430 | 2558 |
2431 checkUnnamed589(core.List<api.ProductCustomAttribute> o) { | 2559 checkUnnamed610(core.List<api.ProductCustomAttribute> o) { |
2432 unittest.expect(o, unittest.hasLength(2)); | 2560 unittest.expect(o, unittest.hasLength(2)); |
2433 checkProductCustomAttribute(o[0]); | 2561 checkProductCustomAttribute(o[0]); |
2434 checkProductCustomAttribute(o[1]); | 2562 checkProductCustomAttribute(o[1]); |
2435 } | 2563 } |
2436 | 2564 |
2437 core.int buildCounterProductCustomGroup = 0; | 2565 core.int buildCounterProductCustomGroup = 0; |
2438 buildProductCustomGroup() { | 2566 buildProductCustomGroup() { |
2439 var o = new api.ProductCustomGroup(); | 2567 var o = new api.ProductCustomGroup(); |
2440 buildCounterProductCustomGroup++; | 2568 buildCounterProductCustomGroup++; |
2441 if (buildCounterProductCustomGroup < 3) { | 2569 if (buildCounterProductCustomGroup < 3) { |
2442 o.attributes = buildUnnamed589(); | 2570 o.attributes = buildUnnamed610(); |
2443 o.name = "foo"; | 2571 o.name = "foo"; |
2444 } | 2572 } |
2445 buildCounterProductCustomGroup--; | 2573 buildCounterProductCustomGroup--; |
2446 return o; | 2574 return o; |
2447 } | 2575 } |
2448 | 2576 |
2449 checkProductCustomGroup(api.ProductCustomGroup o) { | 2577 checkProductCustomGroup(api.ProductCustomGroup o) { |
2450 buildCounterProductCustomGroup++; | 2578 buildCounterProductCustomGroup++; |
2451 if (buildCounterProductCustomGroup < 3) { | 2579 if (buildCounterProductCustomGroup < 3) { |
2452 checkUnnamed589(o.attributes); | 2580 checkUnnamed610(o.attributes); |
2453 unittest.expect(o.name, unittest.equals('foo')); | 2581 unittest.expect(o.name, unittest.equals('foo')); |
2454 } | 2582 } |
2455 buildCounterProductCustomGroup--; | 2583 buildCounterProductCustomGroup--; |
2456 } | 2584 } |
2457 | 2585 |
2458 core.int buildCounterProductDestination = 0; | 2586 core.int buildCounterProductDestination = 0; |
2459 buildProductDestination() { | 2587 buildProductDestination() { |
2460 var o = new api.ProductDestination(); | 2588 var o = new api.ProductDestination(); |
2461 buildCounterProductDestination++; | 2589 buildCounterProductDestination++; |
2462 if (buildCounterProductDestination < 3) { | 2590 if (buildCounterProductDestination < 3) { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2563 | 2691 |
2564 checkProductShippingWeight(api.ProductShippingWeight o) { | 2692 checkProductShippingWeight(api.ProductShippingWeight o) { |
2565 buildCounterProductShippingWeight++; | 2693 buildCounterProductShippingWeight++; |
2566 if (buildCounterProductShippingWeight < 3) { | 2694 if (buildCounterProductShippingWeight < 3) { |
2567 unittest.expect(o.unit, unittest.equals('foo')); | 2695 unittest.expect(o.unit, unittest.equals('foo')); |
2568 unittest.expect(o.value, unittest.equals(42.0)); | 2696 unittest.expect(o.value, unittest.equals(42.0)); |
2569 } | 2697 } |
2570 buildCounterProductShippingWeight--; | 2698 buildCounterProductShippingWeight--; |
2571 } | 2699 } |
2572 | 2700 |
2573 buildUnnamed590() { | 2701 buildUnnamed611() { |
2574 var o = new core.List<api.ProductStatusDataQualityIssue>(); | 2702 var o = new core.List<api.ProductStatusDataQualityIssue>(); |
2575 o.add(buildProductStatusDataQualityIssue()); | 2703 o.add(buildProductStatusDataQualityIssue()); |
2576 o.add(buildProductStatusDataQualityIssue()); | 2704 o.add(buildProductStatusDataQualityIssue()); |
2577 return o; | 2705 return o; |
2578 } | 2706 } |
2579 | 2707 |
2580 checkUnnamed590(core.List<api.ProductStatusDataQualityIssue> o) { | 2708 checkUnnamed611(core.List<api.ProductStatusDataQualityIssue> o) { |
2581 unittest.expect(o, unittest.hasLength(2)); | 2709 unittest.expect(o, unittest.hasLength(2)); |
2582 checkProductStatusDataQualityIssue(o[0]); | 2710 checkProductStatusDataQualityIssue(o[0]); |
2583 checkProductStatusDataQualityIssue(o[1]); | 2711 checkProductStatusDataQualityIssue(o[1]); |
2584 } | 2712 } |
2585 | 2713 |
2586 buildUnnamed591() { | 2714 buildUnnamed612() { |
2587 var o = new core.List<api.ProductStatusDestinationStatus>(); | 2715 var o = new core.List<api.ProductStatusDestinationStatus>(); |
2588 o.add(buildProductStatusDestinationStatus()); | 2716 o.add(buildProductStatusDestinationStatus()); |
2589 o.add(buildProductStatusDestinationStatus()); | 2717 o.add(buildProductStatusDestinationStatus()); |
2590 return o; | 2718 return o; |
2591 } | 2719 } |
2592 | 2720 |
2593 checkUnnamed591(core.List<api.ProductStatusDestinationStatus> o) { | 2721 checkUnnamed612(core.List<api.ProductStatusDestinationStatus> o) { |
2594 unittest.expect(o, unittest.hasLength(2)); | 2722 unittest.expect(o, unittest.hasLength(2)); |
2595 checkProductStatusDestinationStatus(o[0]); | 2723 checkProductStatusDestinationStatus(o[0]); |
2596 checkProductStatusDestinationStatus(o[1]); | 2724 checkProductStatusDestinationStatus(o[1]); |
2597 } | 2725 } |
2598 | 2726 |
2599 core.int buildCounterProductStatus = 0; | 2727 core.int buildCounterProductStatus = 0; |
2600 buildProductStatus() { | 2728 buildProductStatus() { |
2601 var o = new api.ProductStatus(); | 2729 var o = new api.ProductStatus(); |
2602 buildCounterProductStatus++; | 2730 buildCounterProductStatus++; |
2603 if (buildCounterProductStatus < 3) { | 2731 if (buildCounterProductStatus < 3) { |
2604 o.creationDate = "foo"; | 2732 o.creationDate = "foo"; |
2605 o.dataQualityIssues = buildUnnamed590(); | 2733 o.dataQualityIssues = buildUnnamed611(); |
2606 o.destinationStatuses = buildUnnamed591(); | 2734 o.destinationStatuses = buildUnnamed612(); |
2607 o.googleExpirationDate = "foo"; | 2735 o.googleExpirationDate = "foo"; |
2608 o.kind = "foo"; | 2736 o.kind = "foo"; |
2609 o.lastUpdateDate = "foo"; | 2737 o.lastUpdateDate = "foo"; |
2610 o.link = "foo"; | 2738 o.link = "foo"; |
2611 o.productId = "foo"; | 2739 o.productId = "foo"; |
2612 o.title = "foo"; | 2740 o.title = "foo"; |
2613 } | 2741 } |
2614 buildCounterProductStatus--; | 2742 buildCounterProductStatus--; |
2615 return o; | 2743 return o; |
2616 } | 2744 } |
2617 | 2745 |
2618 checkProductStatus(api.ProductStatus o) { | 2746 checkProductStatus(api.ProductStatus o) { |
2619 buildCounterProductStatus++; | 2747 buildCounterProductStatus++; |
2620 if (buildCounterProductStatus < 3) { | 2748 if (buildCounterProductStatus < 3) { |
2621 unittest.expect(o.creationDate, unittest.equals('foo')); | 2749 unittest.expect(o.creationDate, unittest.equals('foo')); |
2622 checkUnnamed590(o.dataQualityIssues); | 2750 checkUnnamed611(o.dataQualityIssues); |
2623 checkUnnamed591(o.destinationStatuses); | 2751 checkUnnamed612(o.destinationStatuses); |
2624 unittest.expect(o.googleExpirationDate, unittest.equals('foo')); | 2752 unittest.expect(o.googleExpirationDate, unittest.equals('foo')); |
2625 unittest.expect(o.kind, unittest.equals('foo')); | 2753 unittest.expect(o.kind, unittest.equals('foo')); |
2626 unittest.expect(o.lastUpdateDate, unittest.equals('foo')); | 2754 unittest.expect(o.lastUpdateDate, unittest.equals('foo')); |
2627 unittest.expect(o.link, unittest.equals('foo')); | 2755 unittest.expect(o.link, unittest.equals('foo')); |
2628 unittest.expect(o.productId, unittest.equals('foo')); | 2756 unittest.expect(o.productId, unittest.equals('foo')); |
2629 unittest.expect(o.title, unittest.equals('foo')); | 2757 unittest.expect(o.title, unittest.equals('foo')); |
2630 } | 2758 } |
2631 buildCounterProductStatus--; | 2759 buildCounterProductStatus--; |
2632 } | 2760 } |
2633 | 2761 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2751 | 2879 |
2752 checkProductUnitPricingMeasure(api.ProductUnitPricingMeasure o) { | 2880 checkProductUnitPricingMeasure(api.ProductUnitPricingMeasure o) { |
2753 buildCounterProductUnitPricingMeasure++; | 2881 buildCounterProductUnitPricingMeasure++; |
2754 if (buildCounterProductUnitPricingMeasure < 3) { | 2882 if (buildCounterProductUnitPricingMeasure < 3) { |
2755 unittest.expect(o.unit, unittest.equals('foo')); | 2883 unittest.expect(o.unit, unittest.equals('foo')); |
2756 unittest.expect(o.value, unittest.equals(42.0)); | 2884 unittest.expect(o.value, unittest.equals(42.0)); |
2757 } | 2885 } |
2758 buildCounterProductUnitPricingMeasure--; | 2886 buildCounterProductUnitPricingMeasure--; |
2759 } | 2887 } |
2760 | 2888 |
2761 buildUnnamed592() { | 2889 buildUnnamed613() { |
2762 var o = new core.List<api.ProductsCustomBatchRequestEntry>(); | 2890 var o = new core.List<api.ProductsCustomBatchRequestEntry>(); |
2763 o.add(buildProductsCustomBatchRequestEntry()); | 2891 o.add(buildProductsCustomBatchRequestEntry()); |
2764 o.add(buildProductsCustomBatchRequestEntry()); | 2892 o.add(buildProductsCustomBatchRequestEntry()); |
2765 return o; | 2893 return o; |
2766 } | 2894 } |
2767 | 2895 |
2768 checkUnnamed592(core.List<api.ProductsCustomBatchRequestEntry> o) { | 2896 checkUnnamed613(core.List<api.ProductsCustomBatchRequestEntry> o) { |
2769 unittest.expect(o, unittest.hasLength(2)); | 2897 unittest.expect(o, unittest.hasLength(2)); |
2770 checkProductsCustomBatchRequestEntry(o[0]); | 2898 checkProductsCustomBatchRequestEntry(o[0]); |
2771 checkProductsCustomBatchRequestEntry(o[1]); | 2899 checkProductsCustomBatchRequestEntry(o[1]); |
2772 } | 2900 } |
2773 | 2901 |
2774 core.int buildCounterProductsCustomBatchRequest = 0; | 2902 core.int buildCounterProductsCustomBatchRequest = 0; |
2775 buildProductsCustomBatchRequest() { | 2903 buildProductsCustomBatchRequest() { |
2776 var o = new api.ProductsCustomBatchRequest(); | 2904 var o = new api.ProductsCustomBatchRequest(); |
2777 buildCounterProductsCustomBatchRequest++; | 2905 buildCounterProductsCustomBatchRequest++; |
2778 if (buildCounterProductsCustomBatchRequest < 3) { | 2906 if (buildCounterProductsCustomBatchRequest < 3) { |
2779 o.entries = buildUnnamed592(); | 2907 o.entries = buildUnnamed613(); |
2780 } | 2908 } |
2781 buildCounterProductsCustomBatchRequest--; | 2909 buildCounterProductsCustomBatchRequest--; |
2782 return o; | 2910 return o; |
2783 } | 2911 } |
2784 | 2912 |
2785 checkProductsCustomBatchRequest(api.ProductsCustomBatchRequest o) { | 2913 checkProductsCustomBatchRequest(api.ProductsCustomBatchRequest o) { |
2786 buildCounterProductsCustomBatchRequest++; | 2914 buildCounterProductsCustomBatchRequest++; |
2787 if (buildCounterProductsCustomBatchRequest < 3) { | 2915 if (buildCounterProductsCustomBatchRequest < 3) { |
2788 checkUnnamed592(o.entries); | 2916 checkUnnamed613(o.entries); |
2789 } | 2917 } |
2790 buildCounterProductsCustomBatchRequest--; | 2918 buildCounterProductsCustomBatchRequest--; |
2791 } | 2919 } |
2792 | 2920 |
2793 core.int buildCounterProductsCustomBatchRequestEntry = 0; | 2921 core.int buildCounterProductsCustomBatchRequestEntry = 0; |
2794 buildProductsCustomBatchRequestEntry() { | 2922 buildProductsCustomBatchRequestEntry() { |
2795 var o = new api.ProductsCustomBatchRequestEntry(); | 2923 var o = new api.ProductsCustomBatchRequestEntry(); |
2796 buildCounterProductsCustomBatchRequestEntry++; | 2924 buildCounterProductsCustomBatchRequestEntry++; |
2797 if (buildCounterProductsCustomBatchRequestEntry < 3) { | 2925 if (buildCounterProductsCustomBatchRequestEntry < 3) { |
2798 o.batchId = 42; | 2926 o.batchId = 42; |
(...skipping 11 matching lines...) Expand all Loading... |
2810 if (buildCounterProductsCustomBatchRequestEntry < 3) { | 2938 if (buildCounterProductsCustomBatchRequestEntry < 3) { |
2811 unittest.expect(o.batchId, unittest.equals(42)); | 2939 unittest.expect(o.batchId, unittest.equals(42)); |
2812 unittest.expect(o.merchantId, unittest.equals('foo')); | 2940 unittest.expect(o.merchantId, unittest.equals('foo')); |
2813 unittest.expect(o.method, unittest.equals('foo')); | 2941 unittest.expect(o.method, unittest.equals('foo')); |
2814 checkProduct(o.product); | 2942 checkProduct(o.product); |
2815 unittest.expect(o.productId, unittest.equals('foo')); | 2943 unittest.expect(o.productId, unittest.equals('foo')); |
2816 } | 2944 } |
2817 buildCounterProductsCustomBatchRequestEntry--; | 2945 buildCounterProductsCustomBatchRequestEntry--; |
2818 } | 2946 } |
2819 | 2947 |
2820 buildUnnamed593() { | 2948 buildUnnamed614() { |
2821 var o = new core.List<api.ProductsCustomBatchResponseEntry>(); | 2949 var o = new core.List<api.ProductsCustomBatchResponseEntry>(); |
2822 o.add(buildProductsCustomBatchResponseEntry()); | 2950 o.add(buildProductsCustomBatchResponseEntry()); |
2823 o.add(buildProductsCustomBatchResponseEntry()); | 2951 o.add(buildProductsCustomBatchResponseEntry()); |
2824 return o; | 2952 return o; |
2825 } | 2953 } |
2826 | 2954 |
2827 checkUnnamed593(core.List<api.ProductsCustomBatchResponseEntry> o) { | 2955 checkUnnamed614(core.List<api.ProductsCustomBatchResponseEntry> o) { |
2828 unittest.expect(o, unittest.hasLength(2)); | 2956 unittest.expect(o, unittest.hasLength(2)); |
2829 checkProductsCustomBatchResponseEntry(o[0]); | 2957 checkProductsCustomBatchResponseEntry(o[0]); |
2830 checkProductsCustomBatchResponseEntry(o[1]); | 2958 checkProductsCustomBatchResponseEntry(o[1]); |
2831 } | 2959 } |
2832 | 2960 |
2833 core.int buildCounterProductsCustomBatchResponse = 0; | 2961 core.int buildCounterProductsCustomBatchResponse = 0; |
2834 buildProductsCustomBatchResponse() { | 2962 buildProductsCustomBatchResponse() { |
2835 var o = new api.ProductsCustomBatchResponse(); | 2963 var o = new api.ProductsCustomBatchResponse(); |
2836 buildCounterProductsCustomBatchResponse++; | 2964 buildCounterProductsCustomBatchResponse++; |
2837 if (buildCounterProductsCustomBatchResponse < 3) { | 2965 if (buildCounterProductsCustomBatchResponse < 3) { |
2838 o.entries = buildUnnamed593(); | 2966 o.entries = buildUnnamed614(); |
2839 o.kind = "foo"; | 2967 o.kind = "foo"; |
2840 } | 2968 } |
2841 buildCounterProductsCustomBatchResponse--; | 2969 buildCounterProductsCustomBatchResponse--; |
2842 return o; | 2970 return o; |
2843 } | 2971 } |
2844 | 2972 |
2845 checkProductsCustomBatchResponse(api.ProductsCustomBatchResponse o) { | 2973 checkProductsCustomBatchResponse(api.ProductsCustomBatchResponse o) { |
2846 buildCounterProductsCustomBatchResponse++; | 2974 buildCounterProductsCustomBatchResponse++; |
2847 if (buildCounterProductsCustomBatchResponse < 3) { | 2975 if (buildCounterProductsCustomBatchResponse < 3) { |
2848 checkUnnamed593(o.entries); | 2976 checkUnnamed614(o.entries); |
2849 unittest.expect(o.kind, unittest.equals('foo')); | 2977 unittest.expect(o.kind, unittest.equals('foo')); |
2850 } | 2978 } |
2851 buildCounterProductsCustomBatchResponse--; | 2979 buildCounterProductsCustomBatchResponse--; |
2852 } | 2980 } |
2853 | 2981 |
2854 core.int buildCounterProductsCustomBatchResponseEntry = 0; | 2982 core.int buildCounterProductsCustomBatchResponseEntry = 0; |
2855 buildProductsCustomBatchResponseEntry() { | 2983 buildProductsCustomBatchResponseEntry() { |
2856 var o = new api.ProductsCustomBatchResponseEntry(); | 2984 var o = new api.ProductsCustomBatchResponseEntry(); |
2857 buildCounterProductsCustomBatchResponseEntry++; | 2985 buildCounterProductsCustomBatchResponseEntry++; |
2858 if (buildCounterProductsCustomBatchResponseEntry < 3) { | 2986 if (buildCounterProductsCustomBatchResponseEntry < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
2869 buildCounterProductsCustomBatchResponseEntry++; | 2997 buildCounterProductsCustomBatchResponseEntry++; |
2870 if (buildCounterProductsCustomBatchResponseEntry < 3) { | 2998 if (buildCounterProductsCustomBatchResponseEntry < 3) { |
2871 unittest.expect(o.batchId, unittest.equals(42)); | 2999 unittest.expect(o.batchId, unittest.equals(42)); |
2872 checkErrors(o.errors); | 3000 checkErrors(o.errors); |
2873 unittest.expect(o.kind, unittest.equals('foo')); | 3001 unittest.expect(o.kind, unittest.equals('foo')); |
2874 checkProduct(o.product); | 3002 checkProduct(o.product); |
2875 } | 3003 } |
2876 buildCounterProductsCustomBatchResponseEntry--; | 3004 buildCounterProductsCustomBatchResponseEntry--; |
2877 } | 3005 } |
2878 | 3006 |
2879 buildUnnamed594() { | 3007 buildUnnamed615() { |
2880 var o = new core.List<api.Product>(); | 3008 var o = new core.List<api.Product>(); |
2881 o.add(buildProduct()); | 3009 o.add(buildProduct()); |
2882 o.add(buildProduct()); | 3010 o.add(buildProduct()); |
2883 return o; | 3011 return o; |
2884 } | 3012 } |
2885 | 3013 |
2886 checkUnnamed594(core.List<api.Product> o) { | 3014 checkUnnamed615(core.List<api.Product> o) { |
2887 unittest.expect(o, unittest.hasLength(2)); | 3015 unittest.expect(o, unittest.hasLength(2)); |
2888 checkProduct(o[0]); | 3016 checkProduct(o[0]); |
2889 checkProduct(o[1]); | 3017 checkProduct(o[1]); |
2890 } | 3018 } |
2891 | 3019 |
2892 core.int buildCounterProductsListResponse = 0; | 3020 core.int buildCounterProductsListResponse = 0; |
2893 buildProductsListResponse() { | 3021 buildProductsListResponse() { |
2894 var o = new api.ProductsListResponse(); | 3022 var o = new api.ProductsListResponse(); |
2895 buildCounterProductsListResponse++; | 3023 buildCounterProductsListResponse++; |
2896 if (buildCounterProductsListResponse < 3) { | 3024 if (buildCounterProductsListResponse < 3) { |
2897 o.kind = "foo"; | 3025 o.kind = "foo"; |
2898 o.nextPageToken = "foo"; | 3026 o.nextPageToken = "foo"; |
2899 o.resources = buildUnnamed594(); | 3027 o.resources = buildUnnamed615(); |
2900 } | 3028 } |
2901 buildCounterProductsListResponse--; | 3029 buildCounterProductsListResponse--; |
2902 return o; | 3030 return o; |
2903 } | 3031 } |
2904 | 3032 |
2905 checkProductsListResponse(api.ProductsListResponse o) { | 3033 checkProductsListResponse(api.ProductsListResponse o) { |
2906 buildCounterProductsListResponse++; | 3034 buildCounterProductsListResponse++; |
2907 if (buildCounterProductsListResponse < 3) { | 3035 if (buildCounterProductsListResponse < 3) { |
2908 unittest.expect(o.kind, unittest.equals('foo')); | 3036 unittest.expect(o.kind, unittest.equals('foo')); |
2909 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3037 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2910 checkUnnamed594(o.resources); | 3038 checkUnnamed615(o.resources); |
2911 } | 3039 } |
2912 buildCounterProductsListResponse--; | 3040 buildCounterProductsListResponse--; |
2913 } | 3041 } |
2914 | 3042 |
2915 buildUnnamed595() { | 3043 buildUnnamed616() { |
2916 var o = new core.List<api.ProductstatusesCustomBatchRequestEntry>(); | 3044 var o = new core.List<api.ProductstatusesCustomBatchRequestEntry>(); |
2917 o.add(buildProductstatusesCustomBatchRequestEntry()); | 3045 o.add(buildProductstatusesCustomBatchRequestEntry()); |
2918 o.add(buildProductstatusesCustomBatchRequestEntry()); | 3046 o.add(buildProductstatusesCustomBatchRequestEntry()); |
2919 return o; | 3047 return o; |
2920 } | 3048 } |
2921 | 3049 |
2922 checkUnnamed595(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { | 3050 checkUnnamed616(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { |
2923 unittest.expect(o, unittest.hasLength(2)); | 3051 unittest.expect(o, unittest.hasLength(2)); |
2924 checkProductstatusesCustomBatchRequestEntry(o[0]); | 3052 checkProductstatusesCustomBatchRequestEntry(o[0]); |
2925 checkProductstatusesCustomBatchRequestEntry(o[1]); | 3053 checkProductstatusesCustomBatchRequestEntry(o[1]); |
2926 } | 3054 } |
2927 | 3055 |
2928 core.int buildCounterProductstatusesCustomBatchRequest = 0; | 3056 core.int buildCounterProductstatusesCustomBatchRequest = 0; |
2929 buildProductstatusesCustomBatchRequest() { | 3057 buildProductstatusesCustomBatchRequest() { |
2930 var o = new api.ProductstatusesCustomBatchRequest(); | 3058 var o = new api.ProductstatusesCustomBatchRequest(); |
2931 buildCounterProductstatusesCustomBatchRequest++; | 3059 buildCounterProductstatusesCustomBatchRequest++; |
2932 if (buildCounterProductstatusesCustomBatchRequest < 3) { | 3060 if (buildCounterProductstatusesCustomBatchRequest < 3) { |
2933 o.entries = buildUnnamed595(); | 3061 o.entries = buildUnnamed616(); |
2934 } | 3062 } |
2935 buildCounterProductstatusesCustomBatchRequest--; | 3063 buildCounterProductstatusesCustomBatchRequest--; |
2936 return o; | 3064 return o; |
2937 } | 3065 } |
2938 | 3066 |
2939 checkProductstatusesCustomBatchRequest(api.ProductstatusesCustomBatchRequest o)
{ | 3067 checkProductstatusesCustomBatchRequest(api.ProductstatusesCustomBatchRequest o)
{ |
2940 buildCounterProductstatusesCustomBatchRequest++; | 3068 buildCounterProductstatusesCustomBatchRequest++; |
2941 if (buildCounterProductstatusesCustomBatchRequest < 3) { | 3069 if (buildCounterProductstatusesCustomBatchRequest < 3) { |
2942 checkUnnamed595(o.entries); | 3070 checkUnnamed616(o.entries); |
2943 } | 3071 } |
2944 buildCounterProductstatusesCustomBatchRequest--; | 3072 buildCounterProductstatusesCustomBatchRequest--; |
2945 } | 3073 } |
2946 | 3074 |
2947 core.int buildCounterProductstatusesCustomBatchRequestEntry = 0; | 3075 core.int buildCounterProductstatusesCustomBatchRequestEntry = 0; |
2948 buildProductstatusesCustomBatchRequestEntry() { | 3076 buildProductstatusesCustomBatchRequestEntry() { |
2949 var o = new api.ProductstatusesCustomBatchRequestEntry(); | 3077 var o = new api.ProductstatusesCustomBatchRequestEntry(); |
2950 buildCounterProductstatusesCustomBatchRequestEntry++; | 3078 buildCounterProductstatusesCustomBatchRequestEntry++; |
2951 if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { | 3079 if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { |
2952 o.batchId = 42; | 3080 o.batchId = 42; |
2953 o.merchantId = "foo"; | 3081 o.merchantId = "foo"; |
2954 o.method = "foo"; | 3082 o.method = "foo"; |
2955 o.productId = "foo"; | 3083 o.productId = "foo"; |
2956 } | 3084 } |
2957 buildCounterProductstatusesCustomBatchRequestEntry--; | 3085 buildCounterProductstatusesCustomBatchRequestEntry--; |
2958 return o; | 3086 return o; |
2959 } | 3087 } |
2960 | 3088 |
2961 checkProductstatusesCustomBatchRequestEntry(api.ProductstatusesCustomBatchReques
tEntry o) { | 3089 checkProductstatusesCustomBatchRequestEntry(api.ProductstatusesCustomBatchReques
tEntry o) { |
2962 buildCounterProductstatusesCustomBatchRequestEntry++; | 3090 buildCounterProductstatusesCustomBatchRequestEntry++; |
2963 if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { | 3091 if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { |
2964 unittest.expect(o.batchId, unittest.equals(42)); | 3092 unittest.expect(o.batchId, unittest.equals(42)); |
2965 unittest.expect(o.merchantId, unittest.equals('foo')); | 3093 unittest.expect(o.merchantId, unittest.equals('foo')); |
2966 unittest.expect(o.method, unittest.equals('foo')); | 3094 unittest.expect(o.method, unittest.equals('foo')); |
2967 unittest.expect(o.productId, unittest.equals('foo')); | 3095 unittest.expect(o.productId, unittest.equals('foo')); |
2968 } | 3096 } |
2969 buildCounterProductstatusesCustomBatchRequestEntry--; | 3097 buildCounterProductstatusesCustomBatchRequestEntry--; |
2970 } | 3098 } |
2971 | 3099 |
2972 buildUnnamed596() { | 3100 buildUnnamed617() { |
2973 var o = new core.List<api.ProductstatusesCustomBatchResponseEntry>(); | 3101 var o = new core.List<api.ProductstatusesCustomBatchResponseEntry>(); |
2974 o.add(buildProductstatusesCustomBatchResponseEntry()); | 3102 o.add(buildProductstatusesCustomBatchResponseEntry()); |
2975 o.add(buildProductstatusesCustomBatchResponseEntry()); | 3103 o.add(buildProductstatusesCustomBatchResponseEntry()); |
2976 return o; | 3104 return o; |
2977 } | 3105 } |
2978 | 3106 |
2979 checkUnnamed596(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { | 3107 checkUnnamed617(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { |
2980 unittest.expect(o, unittest.hasLength(2)); | 3108 unittest.expect(o, unittest.hasLength(2)); |
2981 checkProductstatusesCustomBatchResponseEntry(o[0]); | 3109 checkProductstatusesCustomBatchResponseEntry(o[0]); |
2982 checkProductstatusesCustomBatchResponseEntry(o[1]); | 3110 checkProductstatusesCustomBatchResponseEntry(o[1]); |
2983 } | 3111 } |
2984 | 3112 |
2985 core.int buildCounterProductstatusesCustomBatchResponse = 0; | 3113 core.int buildCounterProductstatusesCustomBatchResponse = 0; |
2986 buildProductstatusesCustomBatchResponse() { | 3114 buildProductstatusesCustomBatchResponse() { |
2987 var o = new api.ProductstatusesCustomBatchResponse(); | 3115 var o = new api.ProductstatusesCustomBatchResponse(); |
2988 buildCounterProductstatusesCustomBatchResponse++; | 3116 buildCounterProductstatusesCustomBatchResponse++; |
2989 if (buildCounterProductstatusesCustomBatchResponse < 3) { | 3117 if (buildCounterProductstatusesCustomBatchResponse < 3) { |
2990 o.entries = buildUnnamed596(); | 3118 o.entries = buildUnnamed617(); |
2991 o.kind = "foo"; | 3119 o.kind = "foo"; |
2992 } | 3120 } |
2993 buildCounterProductstatusesCustomBatchResponse--; | 3121 buildCounterProductstatusesCustomBatchResponse--; |
2994 return o; | 3122 return o; |
2995 } | 3123 } |
2996 | 3124 |
2997 checkProductstatusesCustomBatchResponse(api.ProductstatusesCustomBatchResponse o
) { | 3125 checkProductstatusesCustomBatchResponse(api.ProductstatusesCustomBatchResponse o
) { |
2998 buildCounterProductstatusesCustomBatchResponse++; | 3126 buildCounterProductstatusesCustomBatchResponse++; |
2999 if (buildCounterProductstatusesCustomBatchResponse < 3) { | 3127 if (buildCounterProductstatusesCustomBatchResponse < 3) { |
3000 checkUnnamed596(o.entries); | 3128 checkUnnamed617(o.entries); |
3001 unittest.expect(o.kind, unittest.equals('foo')); | 3129 unittest.expect(o.kind, unittest.equals('foo')); |
3002 } | 3130 } |
3003 buildCounterProductstatusesCustomBatchResponse--; | 3131 buildCounterProductstatusesCustomBatchResponse--; |
3004 } | 3132 } |
3005 | 3133 |
3006 core.int buildCounterProductstatusesCustomBatchResponseEntry = 0; | 3134 core.int buildCounterProductstatusesCustomBatchResponseEntry = 0; |
3007 buildProductstatusesCustomBatchResponseEntry() { | 3135 buildProductstatusesCustomBatchResponseEntry() { |
3008 var o = new api.ProductstatusesCustomBatchResponseEntry(); | 3136 var o = new api.ProductstatusesCustomBatchResponseEntry(); |
3009 buildCounterProductstatusesCustomBatchResponseEntry++; | 3137 buildCounterProductstatusesCustomBatchResponseEntry++; |
3010 if (buildCounterProductstatusesCustomBatchResponseEntry < 3) { | 3138 if (buildCounterProductstatusesCustomBatchResponseEntry < 3) { |
(...skipping 10 matching lines...) Expand all Loading... |
3021 buildCounterProductstatusesCustomBatchResponseEntry++; | 3149 buildCounterProductstatusesCustomBatchResponseEntry++; |
3022 if (buildCounterProductstatusesCustomBatchResponseEntry < 3) { | 3150 if (buildCounterProductstatusesCustomBatchResponseEntry < 3) { |
3023 unittest.expect(o.batchId, unittest.equals(42)); | 3151 unittest.expect(o.batchId, unittest.equals(42)); |
3024 checkErrors(o.errors); | 3152 checkErrors(o.errors); |
3025 unittest.expect(o.kind, unittest.equals('foo')); | 3153 unittest.expect(o.kind, unittest.equals('foo')); |
3026 checkProductStatus(o.productStatus); | 3154 checkProductStatus(o.productStatus); |
3027 } | 3155 } |
3028 buildCounterProductstatusesCustomBatchResponseEntry--; | 3156 buildCounterProductstatusesCustomBatchResponseEntry--; |
3029 } | 3157 } |
3030 | 3158 |
3031 buildUnnamed597() { | 3159 buildUnnamed618() { |
3032 var o = new core.List<api.ProductStatus>(); | 3160 var o = new core.List<api.ProductStatus>(); |
3033 o.add(buildProductStatus()); | 3161 o.add(buildProductStatus()); |
3034 o.add(buildProductStatus()); | 3162 o.add(buildProductStatus()); |
3035 return o; | 3163 return o; |
3036 } | 3164 } |
3037 | 3165 |
3038 checkUnnamed597(core.List<api.ProductStatus> o) { | 3166 checkUnnamed618(core.List<api.ProductStatus> o) { |
3039 unittest.expect(o, unittest.hasLength(2)); | 3167 unittest.expect(o, unittest.hasLength(2)); |
3040 checkProductStatus(o[0]); | 3168 checkProductStatus(o[0]); |
3041 checkProductStatus(o[1]); | 3169 checkProductStatus(o[1]); |
3042 } | 3170 } |
3043 | 3171 |
3044 core.int buildCounterProductstatusesListResponse = 0; | 3172 core.int buildCounterProductstatusesListResponse = 0; |
3045 buildProductstatusesListResponse() { | 3173 buildProductstatusesListResponse() { |
3046 var o = new api.ProductstatusesListResponse(); | 3174 var o = new api.ProductstatusesListResponse(); |
3047 buildCounterProductstatusesListResponse++; | 3175 buildCounterProductstatusesListResponse++; |
3048 if (buildCounterProductstatusesListResponse < 3) { | 3176 if (buildCounterProductstatusesListResponse < 3) { |
3049 o.kind = "foo"; | 3177 o.kind = "foo"; |
3050 o.nextPageToken = "foo"; | 3178 o.nextPageToken = "foo"; |
3051 o.resources = buildUnnamed597(); | 3179 o.resources = buildUnnamed618(); |
3052 } | 3180 } |
3053 buildCounterProductstatusesListResponse--; | 3181 buildCounterProductstatusesListResponse--; |
3054 return o; | 3182 return o; |
3055 } | 3183 } |
3056 | 3184 |
3057 checkProductstatusesListResponse(api.ProductstatusesListResponse o) { | 3185 checkProductstatusesListResponse(api.ProductstatusesListResponse o) { |
3058 buildCounterProductstatusesListResponse++; | 3186 buildCounterProductstatusesListResponse++; |
3059 if (buildCounterProductstatusesListResponse < 3) { | 3187 if (buildCounterProductstatusesListResponse < 3) { |
3060 unittest.expect(o.kind, unittest.equals('foo')); | 3188 unittest.expect(o.kind, unittest.equals('foo')); |
3061 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 3189 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
3062 checkUnnamed597(o.resources); | 3190 checkUnnamed618(o.resources); |
3063 } | 3191 } |
3064 buildCounterProductstatusesListResponse--; | 3192 buildCounterProductstatusesListResponse--; |
3065 } | 3193 } |
3066 | 3194 |
3067 core.int buildCounterWeight = 0; | 3195 core.int buildCounterWeight = 0; |
3068 buildWeight() { | 3196 buildWeight() { |
3069 var o = new api.Weight(); | 3197 var o = new api.Weight(); |
3070 buildCounterWeight++; | 3198 buildCounterWeight++; |
3071 if (buildCounterWeight < 3) { | 3199 if (buildCounterWeight < 3) { |
3072 o.unit = "foo"; | 3200 o.unit = "foo"; |
(...skipping 25 matching lines...) Expand all Loading... |
3098 | 3226 |
3099 unittest.group("obj-schema-AccountAdwordsLink", () { | 3227 unittest.group("obj-schema-AccountAdwordsLink", () { |
3100 unittest.test("to-json--from-json", () { | 3228 unittest.test("to-json--from-json", () { |
3101 var o = buildAccountAdwordsLink(); | 3229 var o = buildAccountAdwordsLink(); |
3102 var od = new api.AccountAdwordsLink.fromJson(o.toJson()); | 3230 var od = new api.AccountAdwordsLink.fromJson(o.toJson()); |
3103 checkAccountAdwordsLink(od); | 3231 checkAccountAdwordsLink(od); |
3104 }); | 3232 }); |
3105 }); | 3233 }); |
3106 | 3234 |
3107 | 3235 |
| 3236 unittest.group("obj-schema-AccountIdentifier", () { |
| 3237 unittest.test("to-json--from-json", () { |
| 3238 var o = buildAccountIdentifier(); |
| 3239 var od = new api.AccountIdentifier.fromJson(o.toJson()); |
| 3240 checkAccountIdentifier(od); |
| 3241 }); |
| 3242 }); |
| 3243 |
| 3244 |
3108 unittest.group("obj-schema-AccountShipping", () { | 3245 unittest.group("obj-schema-AccountShipping", () { |
3109 unittest.test("to-json--from-json", () { | 3246 unittest.test("to-json--from-json", () { |
3110 var o = buildAccountShipping(); | 3247 var o = buildAccountShipping(); |
3111 var od = new api.AccountShipping.fromJson(o.toJson()); | 3248 var od = new api.AccountShipping.fromJson(o.toJson()); |
3112 checkAccountShipping(od); | 3249 checkAccountShipping(od); |
3113 }); | 3250 }); |
3114 }); | 3251 }); |
3115 | 3252 |
3116 | 3253 |
3117 unittest.group("obj-schema-AccountShippingCarrierRate", () { | 3254 unittest.group("obj-schema-AccountShippingCarrierRate", () { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3242 | 3379 |
3243 unittest.group("obj-schema-AccountUser", () { | 3380 unittest.group("obj-schema-AccountUser", () { |
3244 unittest.test("to-json--from-json", () { | 3381 unittest.test("to-json--from-json", () { |
3245 var o = buildAccountUser(); | 3382 var o = buildAccountUser(); |
3246 var od = new api.AccountUser.fromJson(o.toJson()); | 3383 var od = new api.AccountUser.fromJson(o.toJson()); |
3247 checkAccountUser(od); | 3384 checkAccountUser(od); |
3248 }); | 3385 }); |
3249 }); | 3386 }); |
3250 | 3387 |
3251 | 3388 |
| 3389 unittest.group("obj-schema-AccountsAuthInfoResponse", () { |
| 3390 unittest.test("to-json--from-json", () { |
| 3391 var o = buildAccountsAuthInfoResponse(); |
| 3392 var od = new api.AccountsAuthInfoResponse.fromJson(o.toJson()); |
| 3393 checkAccountsAuthInfoResponse(od); |
| 3394 }); |
| 3395 }); |
| 3396 |
| 3397 |
3252 unittest.group("obj-schema-AccountsCustomBatchRequest", () { | 3398 unittest.group("obj-schema-AccountsCustomBatchRequest", () { |
3253 unittest.test("to-json--from-json", () { | 3399 unittest.test("to-json--from-json", () { |
3254 var o = buildAccountsCustomBatchRequest(); | 3400 var o = buildAccountsCustomBatchRequest(); |
3255 var od = new api.AccountsCustomBatchRequest.fromJson(o.toJson()); | 3401 var od = new api.AccountsCustomBatchRequest.fromJson(o.toJson()); |
3256 checkAccountsCustomBatchRequest(od); | 3402 checkAccountsCustomBatchRequest(od); |
3257 }); | 3403 }); |
3258 }); | 3404 }); |
3259 | 3405 |
3260 | 3406 |
3261 unittest.group("obj-schema-AccountsCustomBatchRequestEntry", () { | 3407 unittest.group("obj-schema-AccountsCustomBatchRequestEntry", () { |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3674 | 3820 |
3675 unittest.group("obj-schema-Product", () { | 3821 unittest.group("obj-schema-Product", () { |
3676 unittest.test("to-json--from-json", () { | 3822 unittest.test("to-json--from-json", () { |
3677 var o = buildProduct(); | 3823 var o = buildProduct(); |
3678 var od = new api.Product.fromJson(o.toJson()); | 3824 var od = new api.Product.fromJson(o.toJson()); |
3679 checkProduct(od); | 3825 checkProduct(od); |
3680 }); | 3826 }); |
3681 }); | 3827 }); |
3682 | 3828 |
3683 | 3829 |
| 3830 unittest.group("obj-schema-ProductAspect", () { |
| 3831 unittest.test("to-json--from-json", () { |
| 3832 var o = buildProductAspect(); |
| 3833 var od = new api.ProductAspect.fromJson(o.toJson()); |
| 3834 checkProductAspect(od); |
| 3835 }); |
| 3836 }); |
| 3837 |
| 3838 |
3684 unittest.group("obj-schema-ProductCustomAttribute", () { | 3839 unittest.group("obj-schema-ProductCustomAttribute", () { |
3685 unittest.test("to-json--from-json", () { | 3840 unittest.test("to-json--from-json", () { |
3686 var o = buildProductCustomAttribute(); | 3841 var o = buildProductCustomAttribute(); |
3687 var od = new api.ProductCustomAttribute.fromJson(o.toJson()); | 3842 var od = new api.ProductCustomAttribute.fromJson(o.toJson()); |
3688 checkProductCustomAttribute(od); | 3843 checkProductCustomAttribute(od); |
3689 }); | 3844 }); |
3690 }); | 3845 }); |
3691 | 3846 |
3692 | 3847 |
3693 unittest.group("obj-schema-ProductCustomGroup", () { | 3848 unittest.group("obj-schema-ProductCustomGroup", () { |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3891 unittest.group("obj-schema-Weight", () { | 4046 unittest.group("obj-schema-Weight", () { |
3892 unittest.test("to-json--from-json", () { | 4047 unittest.test("to-json--from-json", () { |
3893 var o = buildWeight(); | 4048 var o = buildWeight(); |
3894 var od = new api.Weight.fromJson(o.toJson()); | 4049 var od = new api.Weight.fromJson(o.toJson()); |
3895 checkWeight(od); | 4050 checkWeight(od); |
3896 }); | 4051 }); |
3897 }); | 4052 }); |
3898 | 4053 |
3899 | 4054 |
3900 unittest.group("resource-AccountsResourceApi", () { | 4055 unittest.group("resource-AccountsResourceApi", () { |
| 4056 unittest.test("method--authinfo", () { |
| 4057 |
| 4058 var mock = new HttpServerMock(); |
| 4059 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; |
| 4060 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4061 var path = (req.url).path; |
| 4062 var pathOffset = 0; |
| 4063 var index; |
| 4064 var subPart; |
| 4065 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4066 pathOffset += 1; |
| 4067 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("content/v2/")); |
| 4068 pathOffset += 11; |
| 4069 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("accounts/authinfo")); |
| 4070 pathOffset += 17; |
| 4071 |
| 4072 var query = (req.url).query; |
| 4073 var queryOffset = 0; |
| 4074 var queryMap = {}; |
| 4075 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4076 parseBool(n) { |
| 4077 if (n == "true") return true; |
| 4078 if (n == "false") return false; |
| 4079 if (n == null) return null; |
| 4080 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4081 } |
| 4082 if (query.length > 0) { |
| 4083 for (var part in query.split("&")) { |
| 4084 var keyvalue = part.split("="); |
| 4085 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4086 } |
| 4087 } |
| 4088 |
| 4089 |
| 4090 var h = { |
| 4091 "content-type" : "application/json; charset=utf-8", |
| 4092 }; |
| 4093 var resp = convert.JSON.encode(buildAccountsAuthInfoResponse()); |
| 4094 return new async.Future.value(stringResponse(200, h, resp)); |
| 4095 }), true); |
| 4096 res.authinfo().then(unittest.expectAsync(((api.AccountsAuthInfoResponse re
sponse) { |
| 4097 checkAccountsAuthInfoResponse(response); |
| 4098 }))); |
| 4099 }); |
| 4100 |
3901 unittest.test("method--custombatch", () { | 4101 unittest.test("method--custombatch", () { |
3902 | 4102 |
3903 var mock = new common_test.HttpServerMock(); | 4103 var mock = new HttpServerMock(); |
3904 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; | 4104 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; |
3905 var arg_request = buildAccountsCustomBatchRequest(); | 4105 var arg_request = buildAccountsCustomBatchRequest(); |
3906 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4106 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3907 var obj = new api.AccountsCustomBatchRequest.fromJson(json); | 4107 var obj = new api.AccountsCustomBatchRequest.fromJson(json); |
3908 checkAccountsCustomBatchRequest(obj); | 4108 checkAccountsCustomBatchRequest(obj); |
3909 | 4109 |
3910 var path = (req.url).path; | 4110 var path = (req.url).path; |
3911 var pathOffset = 0; | 4111 var pathOffset = 0; |
3912 var index; | 4112 var index; |
3913 var subPart; | 4113 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
3933 var keyvalue = part.split("="); | 4133 var keyvalue = part.split("="); |
3934 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4134 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3935 } | 4135 } |
3936 } | 4136 } |
3937 | 4137 |
3938 | 4138 |
3939 var h = { | 4139 var h = { |
3940 "content-type" : "application/json; charset=utf-8", | 4140 "content-type" : "application/json; charset=utf-8", |
3941 }; | 4141 }; |
3942 var resp = convert.JSON.encode(buildAccountsCustomBatchResponse()); | 4142 var resp = convert.JSON.encode(buildAccountsCustomBatchResponse()); |
3943 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4143 return new async.Future.value(stringResponse(200, h, resp)); |
3944 }), true); | 4144 }), true); |
3945 res.custombatch(arg_request).then(unittest.expectAsync(((api.AccountsCusto
mBatchResponse response) { | 4145 res.custombatch(arg_request).then(unittest.expectAsync(((api.AccountsCusto
mBatchResponse response) { |
3946 checkAccountsCustomBatchResponse(response); | 4146 checkAccountsCustomBatchResponse(response); |
3947 }))); | 4147 }))); |
3948 }); | 4148 }); |
3949 | 4149 |
3950 unittest.test("method--delete", () { | 4150 unittest.test("method--delete", () { |
3951 | 4151 |
3952 var mock = new common_test.HttpServerMock(); | 4152 var mock = new HttpServerMock(); |
3953 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; | 4153 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; |
3954 var arg_merchantId = "foo"; | 4154 var arg_merchantId = "foo"; |
3955 var arg_accountId = "foo"; | 4155 var arg_accountId = "foo"; |
3956 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4156 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3957 var path = (req.url).path; | 4157 var path = (req.url).path; |
3958 var pathOffset = 0; | 4158 var pathOffset = 0; |
3959 var index; | 4159 var index; |
3960 var subPart; | 4160 var subPart; |
3961 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4161 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3962 pathOffset += 1; | 4162 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
3976 var keyvalue = part.split("="); | 4176 var keyvalue = part.split("="); |
3977 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4177 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
3978 } | 4178 } |
3979 } | 4179 } |
3980 | 4180 |
3981 | 4181 |
3982 var h = { | 4182 var h = { |
3983 "content-type" : "application/json; charset=utf-8", | 4183 "content-type" : "application/json; charset=utf-8", |
3984 }; | 4184 }; |
3985 var resp = ""; | 4185 var resp = ""; |
3986 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4186 return new async.Future.value(stringResponse(200, h, resp)); |
3987 }), true); | 4187 }), true); |
3988 res.delete(arg_merchantId, arg_accountId).then(unittest.expectAsync((_) {}
)); | 4188 res.delete(arg_merchantId, arg_accountId).then(unittest.expectAsync((_) {}
)); |
3989 }); | 4189 }); |
3990 | 4190 |
3991 unittest.test("method--get", () { | 4191 unittest.test("method--get", () { |
3992 | 4192 |
3993 var mock = new common_test.HttpServerMock(); | 4193 var mock = new HttpServerMock(); |
3994 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; | 4194 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; |
3995 var arg_merchantId = "foo"; | 4195 var arg_merchantId = "foo"; |
3996 var arg_accountId = "foo"; | 4196 var arg_accountId = "foo"; |
3997 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4197 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3998 var path = (req.url).path; | 4198 var path = (req.url).path; |
3999 var pathOffset = 0; | 4199 var pathOffset = 0; |
4000 var index; | 4200 var index; |
4001 var subPart; | 4201 var subPart; |
4002 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4202 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4003 pathOffset += 1; | 4203 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
4017 var keyvalue = part.split("="); | 4217 var keyvalue = part.split("="); |
4018 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4218 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4019 } | 4219 } |
4020 } | 4220 } |
4021 | 4221 |
4022 | 4222 |
4023 var h = { | 4223 var h = { |
4024 "content-type" : "application/json; charset=utf-8", | 4224 "content-type" : "application/json; charset=utf-8", |
4025 }; | 4225 }; |
4026 var resp = convert.JSON.encode(buildAccount()); | 4226 var resp = convert.JSON.encode(buildAccount()); |
4027 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4227 return new async.Future.value(stringResponse(200, h, resp)); |
4028 }), true); | 4228 }), true); |
4029 res.get(arg_merchantId, arg_accountId).then(unittest.expectAsync(((api.Acc
ount response) { | 4229 res.get(arg_merchantId, arg_accountId).then(unittest.expectAsync(((api.Acc
ount response) { |
4030 checkAccount(response); | 4230 checkAccount(response); |
4031 }))); | 4231 }))); |
4032 }); | 4232 }); |
4033 | 4233 |
4034 unittest.test("method--insert", () { | 4234 unittest.test("method--insert", () { |
4035 | 4235 |
4036 var mock = new common_test.HttpServerMock(); | 4236 var mock = new HttpServerMock(); |
4037 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; | 4237 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; |
4038 var arg_request = buildAccount(); | 4238 var arg_request = buildAccount(); |
4039 var arg_merchantId = "foo"; | 4239 var arg_merchantId = "foo"; |
4040 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4240 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4041 var obj = new api.Account.fromJson(json); | 4241 var obj = new api.Account.fromJson(json); |
4042 checkAccount(obj); | 4242 checkAccount(obj); |
4043 | 4243 |
4044 var path = (req.url).path; | 4244 var path = (req.url).path; |
4045 var pathOffset = 0; | 4245 var pathOffset = 0; |
4046 var index; | 4246 var index; |
(...skipping 16 matching lines...) Expand all Loading... |
4063 var keyvalue = part.split("="); | 4263 var keyvalue = part.split("="); |
4064 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4264 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4065 } | 4265 } |
4066 } | 4266 } |
4067 | 4267 |
4068 | 4268 |
4069 var h = { | 4269 var h = { |
4070 "content-type" : "application/json; charset=utf-8", | 4270 "content-type" : "application/json; charset=utf-8", |
4071 }; | 4271 }; |
4072 var resp = convert.JSON.encode(buildAccount()); | 4272 var resp = convert.JSON.encode(buildAccount()); |
4073 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4273 return new async.Future.value(stringResponse(200, h, resp)); |
4074 }), true); | 4274 }), true); |
4075 res.insert(arg_request, arg_merchantId).then(unittest.expectAsync(((api.Ac
count response) { | 4275 res.insert(arg_request, arg_merchantId).then(unittest.expectAsync(((api.Ac
count response) { |
4076 checkAccount(response); | 4276 checkAccount(response); |
4077 }))); | 4277 }))); |
4078 }); | 4278 }); |
4079 | 4279 |
4080 unittest.test("method--list", () { | 4280 unittest.test("method--list", () { |
4081 | 4281 |
4082 var mock = new common_test.HttpServerMock(); | 4282 var mock = new HttpServerMock(); |
4083 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; | 4283 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; |
4084 var arg_merchantId = "foo"; | 4284 var arg_merchantId = "foo"; |
4085 var arg_maxResults = 42; | 4285 var arg_maxResults = 42; |
4086 var arg_pageToken = "foo"; | 4286 var arg_pageToken = "foo"; |
4087 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4287 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4088 var path = (req.url).path; | 4288 var path = (req.url).path; |
4089 var pathOffset = 0; | 4289 var pathOffset = 0; |
4090 var index; | 4290 var index; |
4091 var subPart; | 4291 var subPart; |
4092 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4292 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 16 matching lines...) Expand all Loading... |
4109 } | 4309 } |
4110 } | 4310 } |
4111 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4311 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
4112 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4312 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4113 | 4313 |
4114 | 4314 |
4115 var h = { | 4315 var h = { |
4116 "content-type" : "application/json; charset=utf-8", | 4316 "content-type" : "application/json; charset=utf-8", |
4117 }; | 4317 }; |
4118 var resp = convert.JSON.encode(buildAccountsListResponse()); | 4318 var resp = convert.JSON.encode(buildAccountsListResponse()); |
4119 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4319 return new async.Future.value(stringResponse(200, h, resp)); |
4120 }), true); | 4320 }), true); |
4121 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.AccountsListResponse response) { | 4321 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.AccountsListResponse response) { |
4122 checkAccountsListResponse(response); | 4322 checkAccountsListResponse(response); |
4123 }))); | 4323 }))); |
4124 }); | 4324 }); |
4125 | 4325 |
4126 unittest.test("method--patch", () { | 4326 unittest.test("method--patch", () { |
4127 | 4327 |
4128 var mock = new common_test.HttpServerMock(); | 4328 var mock = new HttpServerMock(); |
4129 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; | 4329 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; |
4130 var arg_request = buildAccount(); | 4330 var arg_request = buildAccount(); |
4131 var arg_merchantId = "foo"; | 4331 var arg_merchantId = "foo"; |
4132 var arg_accountId = "foo"; | 4332 var arg_accountId = "foo"; |
4133 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4333 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4134 var obj = new api.Account.fromJson(json); | 4334 var obj = new api.Account.fromJson(json); |
4135 checkAccount(obj); | 4335 checkAccount(obj); |
4136 | 4336 |
4137 var path = (req.url).path; | 4337 var path = (req.url).path; |
4138 var pathOffset = 0; | 4338 var pathOffset = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
4156 var keyvalue = part.split("="); | 4356 var keyvalue = part.split("="); |
4157 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4357 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4158 } | 4358 } |
4159 } | 4359 } |
4160 | 4360 |
4161 | 4361 |
4162 var h = { | 4362 var h = { |
4163 "content-type" : "application/json; charset=utf-8", | 4363 "content-type" : "application/json; charset=utf-8", |
4164 }; | 4364 }; |
4165 var resp = convert.JSON.encode(buildAccount()); | 4365 var resp = convert.JSON.encode(buildAccount()); |
4166 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4366 return new async.Future.value(stringResponse(200, h, resp)); |
4167 }), true); | 4367 }), true); |
4168 res.patch(arg_request, arg_merchantId, arg_accountId).then(unittest.expect
Async(((api.Account response) { | 4368 res.patch(arg_request, arg_merchantId, arg_accountId).then(unittest.expect
Async(((api.Account response) { |
4169 checkAccount(response); | 4369 checkAccount(response); |
4170 }))); | 4370 }))); |
4171 }); | 4371 }); |
4172 | 4372 |
4173 unittest.test("method--update", () { | 4373 unittest.test("method--update", () { |
4174 | 4374 |
4175 var mock = new common_test.HttpServerMock(); | 4375 var mock = new HttpServerMock(); |
4176 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; | 4376 api.AccountsResourceApi res = new api.ContentApi(mock).accounts; |
4177 var arg_request = buildAccount(); | 4377 var arg_request = buildAccount(); |
4178 var arg_merchantId = "foo"; | 4378 var arg_merchantId = "foo"; |
4179 var arg_accountId = "foo"; | 4379 var arg_accountId = "foo"; |
4180 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4380 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4181 var obj = new api.Account.fromJson(json); | 4381 var obj = new api.Account.fromJson(json); |
4182 checkAccount(obj); | 4382 checkAccount(obj); |
4183 | 4383 |
4184 var path = (req.url).path; | 4384 var path = (req.url).path; |
4185 var pathOffset = 0; | 4385 var pathOffset = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
4203 var keyvalue = part.split("="); | 4403 var keyvalue = part.split("="); |
4204 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4404 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4205 } | 4405 } |
4206 } | 4406 } |
4207 | 4407 |
4208 | 4408 |
4209 var h = { | 4409 var h = { |
4210 "content-type" : "application/json; charset=utf-8", | 4410 "content-type" : "application/json; charset=utf-8", |
4211 }; | 4411 }; |
4212 var resp = convert.JSON.encode(buildAccount()); | 4412 var resp = convert.JSON.encode(buildAccount()); |
4213 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4413 return new async.Future.value(stringResponse(200, h, resp)); |
4214 }), true); | 4414 }), true); |
4215 res.update(arg_request, arg_merchantId, arg_accountId).then(unittest.expec
tAsync(((api.Account response) { | 4415 res.update(arg_request, arg_merchantId, arg_accountId).then(unittest.expec
tAsync(((api.Account response) { |
4216 checkAccount(response); | 4416 checkAccount(response); |
4217 }))); | 4417 }))); |
4218 }); | 4418 }); |
4219 | 4419 |
4220 }); | 4420 }); |
4221 | 4421 |
4222 | 4422 |
4223 unittest.group("resource-AccountshippingResourceApi", () { | 4423 unittest.group("resource-AccountshippingResourceApi", () { |
4224 unittest.test("method--custombatch", () { | 4424 unittest.test("method--custombatch", () { |
4225 | 4425 |
4226 var mock = new common_test.HttpServerMock(); | 4426 var mock = new HttpServerMock(); |
4227 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; | 4427 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; |
4228 var arg_request = buildAccountshippingCustomBatchRequest(); | 4428 var arg_request = buildAccountshippingCustomBatchRequest(); |
4229 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4429 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4230 var obj = new api.AccountshippingCustomBatchRequest.fromJson(json); | 4430 var obj = new api.AccountshippingCustomBatchRequest.fromJson(json); |
4231 checkAccountshippingCustomBatchRequest(obj); | 4431 checkAccountshippingCustomBatchRequest(obj); |
4232 | 4432 |
4233 var path = (req.url).path; | 4433 var path = (req.url).path; |
4234 var pathOffset = 0; | 4434 var pathOffset = 0; |
4235 var index; | 4435 var index; |
4236 var subPart; | 4436 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
4256 var keyvalue = part.split("="); | 4456 var keyvalue = part.split("="); |
4257 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4457 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4258 } | 4458 } |
4259 } | 4459 } |
4260 | 4460 |
4261 | 4461 |
4262 var h = { | 4462 var h = { |
4263 "content-type" : "application/json; charset=utf-8", | 4463 "content-type" : "application/json; charset=utf-8", |
4264 }; | 4464 }; |
4265 var resp = convert.JSON.encode(buildAccountshippingCustomBatchResponse()
); | 4465 var resp = convert.JSON.encode(buildAccountshippingCustomBatchResponse()
); |
4266 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4466 return new async.Future.value(stringResponse(200, h, resp)); |
4267 }), true); | 4467 }), true); |
4268 res.custombatch(arg_request).then(unittest.expectAsync(((api.Accountshippi
ngCustomBatchResponse response) { | 4468 res.custombatch(arg_request).then(unittest.expectAsync(((api.Accountshippi
ngCustomBatchResponse response) { |
4269 checkAccountshippingCustomBatchResponse(response); | 4469 checkAccountshippingCustomBatchResponse(response); |
4270 }))); | 4470 }))); |
4271 }); | 4471 }); |
4272 | 4472 |
4273 unittest.test("method--get", () { | 4473 unittest.test("method--get", () { |
4274 | 4474 |
4275 var mock = new common_test.HttpServerMock(); | 4475 var mock = new HttpServerMock(); |
4276 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; | 4476 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; |
4277 var arg_merchantId = "foo"; | 4477 var arg_merchantId = "foo"; |
4278 var arg_accountId = "foo"; | 4478 var arg_accountId = "foo"; |
4279 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4479 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4280 var path = (req.url).path; | 4480 var path = (req.url).path; |
4281 var pathOffset = 0; | 4481 var pathOffset = 0; |
4282 var index; | 4482 var index; |
4283 var subPart; | 4483 var subPart; |
4284 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4484 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4285 pathOffset += 1; | 4485 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
4299 var keyvalue = part.split("="); | 4499 var keyvalue = part.split("="); |
4300 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4500 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4301 } | 4501 } |
4302 } | 4502 } |
4303 | 4503 |
4304 | 4504 |
4305 var h = { | 4505 var h = { |
4306 "content-type" : "application/json; charset=utf-8", | 4506 "content-type" : "application/json; charset=utf-8", |
4307 }; | 4507 }; |
4308 var resp = convert.JSON.encode(buildAccountShipping()); | 4508 var resp = convert.JSON.encode(buildAccountShipping()); |
4309 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4509 return new async.Future.value(stringResponse(200, h, resp)); |
4310 }), true); | 4510 }), true); |
4311 res.get(arg_merchantId, arg_accountId).then(unittest.expectAsync(((api.Acc
ountShipping response) { | 4511 res.get(arg_merchantId, arg_accountId).then(unittest.expectAsync(((api.Acc
ountShipping response) { |
4312 checkAccountShipping(response); | 4512 checkAccountShipping(response); |
4313 }))); | 4513 }))); |
4314 }); | 4514 }); |
4315 | 4515 |
4316 unittest.test("method--list", () { | 4516 unittest.test("method--list", () { |
4317 | 4517 |
4318 var mock = new common_test.HttpServerMock(); | 4518 var mock = new HttpServerMock(); |
4319 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; | 4519 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; |
4320 var arg_merchantId = "foo"; | 4520 var arg_merchantId = "foo"; |
4321 var arg_maxResults = 42; | 4521 var arg_maxResults = 42; |
4322 var arg_pageToken = "foo"; | 4522 var arg_pageToken = "foo"; |
4323 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4523 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4324 var path = (req.url).path; | 4524 var path = (req.url).path; |
4325 var pathOffset = 0; | 4525 var pathOffset = 0; |
4326 var index; | 4526 var index; |
4327 var subPart; | 4527 var subPart; |
4328 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4528 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 16 matching lines...) Expand all Loading... |
4345 } | 4545 } |
4346 } | 4546 } |
4347 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4547 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
4348 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4548 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4349 | 4549 |
4350 | 4550 |
4351 var h = { | 4551 var h = { |
4352 "content-type" : "application/json; charset=utf-8", | 4552 "content-type" : "application/json; charset=utf-8", |
4353 }; | 4553 }; |
4354 var resp = convert.JSON.encode(buildAccountshippingListResponse()); | 4554 var resp = convert.JSON.encode(buildAccountshippingListResponse()); |
4355 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4555 return new async.Future.value(stringResponse(200, h, resp)); |
4356 }), true); | 4556 }), true); |
4357 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.AccountshippingListResponse response) { | 4557 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.AccountshippingListResponse response) { |
4358 checkAccountshippingListResponse(response); | 4558 checkAccountshippingListResponse(response); |
4359 }))); | 4559 }))); |
4360 }); | 4560 }); |
4361 | 4561 |
4362 unittest.test("method--patch", () { | 4562 unittest.test("method--patch", () { |
4363 | 4563 |
4364 var mock = new common_test.HttpServerMock(); | 4564 var mock = new HttpServerMock(); |
4365 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; | 4565 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; |
4366 var arg_request = buildAccountShipping(); | 4566 var arg_request = buildAccountShipping(); |
4367 var arg_merchantId = "foo"; | 4567 var arg_merchantId = "foo"; |
4368 var arg_accountId = "foo"; | 4568 var arg_accountId = "foo"; |
4369 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4569 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4370 var obj = new api.AccountShipping.fromJson(json); | 4570 var obj = new api.AccountShipping.fromJson(json); |
4371 checkAccountShipping(obj); | 4571 checkAccountShipping(obj); |
4372 | 4572 |
4373 var path = (req.url).path; | 4573 var path = (req.url).path; |
4374 var pathOffset = 0; | 4574 var pathOffset = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
4392 var keyvalue = part.split("="); | 4592 var keyvalue = part.split("="); |
4393 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4593 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4394 } | 4594 } |
4395 } | 4595 } |
4396 | 4596 |
4397 | 4597 |
4398 var h = { | 4598 var h = { |
4399 "content-type" : "application/json; charset=utf-8", | 4599 "content-type" : "application/json; charset=utf-8", |
4400 }; | 4600 }; |
4401 var resp = convert.JSON.encode(buildAccountShipping()); | 4601 var resp = convert.JSON.encode(buildAccountShipping()); |
4402 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4602 return new async.Future.value(stringResponse(200, h, resp)); |
4403 }), true); | 4603 }), true); |
4404 res.patch(arg_request, arg_merchantId, arg_accountId).then(unittest.expect
Async(((api.AccountShipping response) { | 4604 res.patch(arg_request, arg_merchantId, arg_accountId).then(unittest.expect
Async(((api.AccountShipping response) { |
4405 checkAccountShipping(response); | 4605 checkAccountShipping(response); |
4406 }))); | 4606 }))); |
4407 }); | 4607 }); |
4408 | 4608 |
4409 unittest.test("method--update", () { | 4609 unittest.test("method--update", () { |
4410 | 4610 |
4411 var mock = new common_test.HttpServerMock(); | 4611 var mock = new HttpServerMock(); |
4412 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; | 4612 api.AccountshippingResourceApi res = new api.ContentApi(mock).accountshipp
ing; |
4413 var arg_request = buildAccountShipping(); | 4613 var arg_request = buildAccountShipping(); |
4414 var arg_merchantId = "foo"; | 4614 var arg_merchantId = "foo"; |
4415 var arg_accountId = "foo"; | 4615 var arg_accountId = "foo"; |
4416 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4616 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4417 var obj = new api.AccountShipping.fromJson(json); | 4617 var obj = new api.AccountShipping.fromJson(json); |
4418 checkAccountShipping(obj); | 4618 checkAccountShipping(obj); |
4419 | 4619 |
4420 var path = (req.url).path; | 4620 var path = (req.url).path; |
4421 var pathOffset = 0; | 4621 var pathOffset = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
4439 var keyvalue = part.split("="); | 4639 var keyvalue = part.split("="); |
4440 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4640 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4441 } | 4641 } |
4442 } | 4642 } |
4443 | 4643 |
4444 | 4644 |
4445 var h = { | 4645 var h = { |
4446 "content-type" : "application/json; charset=utf-8", | 4646 "content-type" : "application/json; charset=utf-8", |
4447 }; | 4647 }; |
4448 var resp = convert.JSON.encode(buildAccountShipping()); | 4648 var resp = convert.JSON.encode(buildAccountShipping()); |
4449 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4649 return new async.Future.value(stringResponse(200, h, resp)); |
4450 }), true); | 4650 }), true); |
4451 res.update(arg_request, arg_merchantId, arg_accountId).then(unittest.expec
tAsync(((api.AccountShipping response) { | 4651 res.update(arg_request, arg_merchantId, arg_accountId).then(unittest.expec
tAsync(((api.AccountShipping response) { |
4452 checkAccountShipping(response); | 4652 checkAccountShipping(response); |
4453 }))); | 4653 }))); |
4454 }); | 4654 }); |
4455 | 4655 |
4456 }); | 4656 }); |
4457 | 4657 |
4458 | 4658 |
4459 unittest.group("resource-AccountstatusesResourceApi", () { | 4659 unittest.group("resource-AccountstatusesResourceApi", () { |
4460 unittest.test("method--custombatch", () { | 4660 unittest.test("method--custombatch", () { |
4461 | 4661 |
4462 var mock = new common_test.HttpServerMock(); | 4662 var mock = new HttpServerMock(); |
4463 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu
ses; | 4663 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu
ses; |
4464 var arg_request = buildAccountstatusesCustomBatchRequest(); | 4664 var arg_request = buildAccountstatusesCustomBatchRequest(); |
4465 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4665 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4466 var obj = new api.AccountstatusesCustomBatchRequest.fromJson(json); | 4666 var obj = new api.AccountstatusesCustomBatchRequest.fromJson(json); |
4467 checkAccountstatusesCustomBatchRequest(obj); | 4667 checkAccountstatusesCustomBatchRequest(obj); |
4468 | 4668 |
4469 var path = (req.url).path; | 4669 var path = (req.url).path; |
4470 var pathOffset = 0; | 4670 var pathOffset = 0; |
4471 var index; | 4671 var index; |
4472 var subPart; | 4672 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
4492 var keyvalue = part.split("="); | 4692 var keyvalue = part.split("="); |
4493 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4693 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4494 } | 4694 } |
4495 } | 4695 } |
4496 | 4696 |
4497 | 4697 |
4498 var h = { | 4698 var h = { |
4499 "content-type" : "application/json; charset=utf-8", | 4699 "content-type" : "application/json; charset=utf-8", |
4500 }; | 4700 }; |
4501 var resp = convert.JSON.encode(buildAccountstatusesCustomBatchResponse()
); | 4701 var resp = convert.JSON.encode(buildAccountstatusesCustomBatchResponse()
); |
4502 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4702 return new async.Future.value(stringResponse(200, h, resp)); |
4503 }), true); | 4703 }), true); |
4504 res.custombatch(arg_request).then(unittest.expectAsync(((api.Accountstatus
esCustomBatchResponse response) { | 4704 res.custombatch(arg_request).then(unittest.expectAsync(((api.Accountstatus
esCustomBatchResponse response) { |
4505 checkAccountstatusesCustomBatchResponse(response); | 4705 checkAccountstatusesCustomBatchResponse(response); |
4506 }))); | 4706 }))); |
4507 }); | 4707 }); |
4508 | 4708 |
4509 unittest.test("method--get", () { | 4709 unittest.test("method--get", () { |
4510 | 4710 |
4511 var mock = new common_test.HttpServerMock(); | 4711 var mock = new HttpServerMock(); |
4512 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu
ses; | 4712 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu
ses; |
4513 var arg_merchantId = "foo"; | 4713 var arg_merchantId = "foo"; |
4514 var arg_accountId = "foo"; | 4714 var arg_accountId = "foo"; |
4515 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4715 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4516 var path = (req.url).path; | 4716 var path = (req.url).path; |
4517 var pathOffset = 0; | 4717 var pathOffset = 0; |
4518 var index; | 4718 var index; |
4519 var subPart; | 4719 var subPart; |
4520 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4720 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4521 pathOffset += 1; | 4721 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
4535 var keyvalue = part.split("="); | 4735 var keyvalue = part.split("="); |
4536 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4736 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4537 } | 4737 } |
4538 } | 4738 } |
4539 | 4739 |
4540 | 4740 |
4541 var h = { | 4741 var h = { |
4542 "content-type" : "application/json; charset=utf-8", | 4742 "content-type" : "application/json; charset=utf-8", |
4543 }; | 4743 }; |
4544 var resp = convert.JSON.encode(buildAccountStatus()); | 4744 var resp = convert.JSON.encode(buildAccountStatus()); |
4545 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4745 return new async.Future.value(stringResponse(200, h, resp)); |
4546 }), true); | 4746 }), true); |
4547 res.get(arg_merchantId, arg_accountId).then(unittest.expectAsync(((api.Acc
ountStatus response) { | 4747 res.get(arg_merchantId, arg_accountId).then(unittest.expectAsync(((api.Acc
ountStatus response) { |
4548 checkAccountStatus(response); | 4748 checkAccountStatus(response); |
4549 }))); | 4749 }))); |
4550 }); | 4750 }); |
4551 | 4751 |
4552 unittest.test("method--list", () { | 4752 unittest.test("method--list", () { |
4553 | 4753 |
4554 var mock = new common_test.HttpServerMock(); | 4754 var mock = new HttpServerMock(); |
4555 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu
ses; | 4755 api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatu
ses; |
4556 var arg_merchantId = "foo"; | 4756 var arg_merchantId = "foo"; |
4557 var arg_maxResults = 42; | 4757 var arg_maxResults = 42; |
4558 var arg_pageToken = "foo"; | 4758 var arg_pageToken = "foo"; |
4559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4759 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4560 var path = (req.url).path; | 4760 var path = (req.url).path; |
4561 var pathOffset = 0; | 4761 var pathOffset = 0; |
4562 var index; | 4762 var index; |
4563 var subPart; | 4763 var subPart; |
4564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4764 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 16 matching lines...) Expand all Loading... |
4581 } | 4781 } |
4582 } | 4782 } |
4583 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4783 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
4584 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4784 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4585 | 4785 |
4586 | 4786 |
4587 var h = { | 4787 var h = { |
4588 "content-type" : "application/json; charset=utf-8", | 4788 "content-type" : "application/json; charset=utf-8", |
4589 }; | 4789 }; |
4590 var resp = convert.JSON.encode(buildAccountstatusesListResponse()); | 4790 var resp = convert.JSON.encode(buildAccountstatusesListResponse()); |
4591 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4791 return new async.Future.value(stringResponse(200, h, resp)); |
4592 }), true); | 4792 }), true); |
4593 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.AccountstatusesListResponse response) { | 4793 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.AccountstatusesListResponse response) { |
4594 checkAccountstatusesListResponse(response); | 4794 checkAccountstatusesListResponse(response); |
4595 }))); | 4795 }))); |
4596 }); | 4796 }); |
4597 | 4797 |
4598 }); | 4798 }); |
4599 | 4799 |
4600 | 4800 |
4601 unittest.group("resource-AccounttaxResourceApi", () { | 4801 unittest.group("resource-AccounttaxResourceApi", () { |
4602 unittest.test("method--custombatch", () { | 4802 unittest.test("method--custombatch", () { |
4603 | 4803 |
4604 var mock = new common_test.HttpServerMock(); | 4804 var mock = new HttpServerMock(); |
4605 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; | 4805 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; |
4606 var arg_request = buildAccounttaxCustomBatchRequest(); | 4806 var arg_request = buildAccounttaxCustomBatchRequest(); |
4607 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4807 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4608 var obj = new api.AccounttaxCustomBatchRequest.fromJson(json); | 4808 var obj = new api.AccounttaxCustomBatchRequest.fromJson(json); |
4609 checkAccounttaxCustomBatchRequest(obj); | 4809 checkAccounttaxCustomBatchRequest(obj); |
4610 | 4810 |
4611 var path = (req.url).path; | 4811 var path = (req.url).path; |
4612 var pathOffset = 0; | 4812 var pathOffset = 0; |
4613 var index; | 4813 var index; |
4614 var subPart; | 4814 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
4634 var keyvalue = part.split("="); | 4834 var keyvalue = part.split("="); |
4635 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4835 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4636 } | 4836 } |
4637 } | 4837 } |
4638 | 4838 |
4639 | 4839 |
4640 var h = { | 4840 var h = { |
4641 "content-type" : "application/json; charset=utf-8", | 4841 "content-type" : "application/json; charset=utf-8", |
4642 }; | 4842 }; |
4643 var resp = convert.JSON.encode(buildAccounttaxCustomBatchResponse()); | 4843 var resp = convert.JSON.encode(buildAccounttaxCustomBatchResponse()); |
4644 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4844 return new async.Future.value(stringResponse(200, h, resp)); |
4645 }), true); | 4845 }), true); |
4646 res.custombatch(arg_request).then(unittest.expectAsync(((api.AccounttaxCus
tomBatchResponse response) { | 4846 res.custombatch(arg_request).then(unittest.expectAsync(((api.AccounttaxCus
tomBatchResponse response) { |
4647 checkAccounttaxCustomBatchResponse(response); | 4847 checkAccounttaxCustomBatchResponse(response); |
4648 }))); | 4848 }))); |
4649 }); | 4849 }); |
4650 | 4850 |
4651 unittest.test("method--get", () { | 4851 unittest.test("method--get", () { |
4652 | 4852 |
4653 var mock = new common_test.HttpServerMock(); | 4853 var mock = new HttpServerMock(); |
4654 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; | 4854 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; |
4655 var arg_merchantId = "foo"; | 4855 var arg_merchantId = "foo"; |
4656 var arg_accountId = "foo"; | 4856 var arg_accountId = "foo"; |
4657 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4857 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4658 var path = (req.url).path; | 4858 var path = (req.url).path; |
4659 var pathOffset = 0; | 4859 var pathOffset = 0; |
4660 var index; | 4860 var index; |
4661 var subPart; | 4861 var subPart; |
4662 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4862 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4663 pathOffset += 1; | 4863 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
4677 var keyvalue = part.split("="); | 4877 var keyvalue = part.split("="); |
4678 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4878 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4679 } | 4879 } |
4680 } | 4880 } |
4681 | 4881 |
4682 | 4882 |
4683 var h = { | 4883 var h = { |
4684 "content-type" : "application/json; charset=utf-8", | 4884 "content-type" : "application/json; charset=utf-8", |
4685 }; | 4885 }; |
4686 var resp = convert.JSON.encode(buildAccountTax()); | 4886 var resp = convert.JSON.encode(buildAccountTax()); |
4687 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4887 return new async.Future.value(stringResponse(200, h, resp)); |
4688 }), true); | 4888 }), true); |
4689 res.get(arg_merchantId, arg_accountId).then(unittest.expectAsync(((api.Acc
ountTax response) { | 4889 res.get(arg_merchantId, arg_accountId).then(unittest.expectAsync(((api.Acc
ountTax response) { |
4690 checkAccountTax(response); | 4890 checkAccountTax(response); |
4691 }))); | 4891 }))); |
4692 }); | 4892 }); |
4693 | 4893 |
4694 unittest.test("method--list", () { | 4894 unittest.test("method--list", () { |
4695 | 4895 |
4696 var mock = new common_test.HttpServerMock(); | 4896 var mock = new HttpServerMock(); |
4697 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; | 4897 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; |
4698 var arg_merchantId = "foo"; | 4898 var arg_merchantId = "foo"; |
4699 var arg_maxResults = 42; | 4899 var arg_maxResults = 42; |
4700 var arg_pageToken = "foo"; | 4900 var arg_pageToken = "foo"; |
4701 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4901 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4702 var path = (req.url).path; | 4902 var path = (req.url).path; |
4703 var pathOffset = 0; | 4903 var pathOffset = 0; |
4704 var index; | 4904 var index; |
4705 var subPart; | 4905 var subPart; |
4706 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4906 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 16 matching lines...) Expand all Loading... |
4723 } | 4923 } |
4724 } | 4924 } |
4725 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 4925 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
4726 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4926 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4727 | 4927 |
4728 | 4928 |
4729 var h = { | 4929 var h = { |
4730 "content-type" : "application/json; charset=utf-8", | 4930 "content-type" : "application/json; charset=utf-8", |
4731 }; | 4931 }; |
4732 var resp = convert.JSON.encode(buildAccounttaxListResponse()); | 4932 var resp = convert.JSON.encode(buildAccounttaxListResponse()); |
4733 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4933 return new async.Future.value(stringResponse(200, h, resp)); |
4734 }), true); | 4934 }), true); |
4735 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.AccounttaxListResponse response) { | 4935 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.AccounttaxListResponse response) { |
4736 checkAccounttaxListResponse(response); | 4936 checkAccounttaxListResponse(response); |
4737 }))); | 4937 }))); |
4738 }); | 4938 }); |
4739 | 4939 |
4740 unittest.test("method--patch", () { | 4940 unittest.test("method--patch", () { |
4741 | 4941 |
4742 var mock = new common_test.HttpServerMock(); | 4942 var mock = new HttpServerMock(); |
4743 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; | 4943 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; |
4744 var arg_request = buildAccountTax(); | 4944 var arg_request = buildAccountTax(); |
4745 var arg_merchantId = "foo"; | 4945 var arg_merchantId = "foo"; |
4746 var arg_accountId = "foo"; | 4946 var arg_accountId = "foo"; |
4747 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4947 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4748 var obj = new api.AccountTax.fromJson(json); | 4948 var obj = new api.AccountTax.fromJson(json); |
4749 checkAccountTax(obj); | 4949 checkAccountTax(obj); |
4750 | 4950 |
4751 var path = (req.url).path; | 4951 var path = (req.url).path; |
4752 var pathOffset = 0; | 4952 var pathOffset = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
4770 var keyvalue = part.split("="); | 4970 var keyvalue = part.split("="); |
4771 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4971 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4772 } | 4972 } |
4773 } | 4973 } |
4774 | 4974 |
4775 | 4975 |
4776 var h = { | 4976 var h = { |
4777 "content-type" : "application/json; charset=utf-8", | 4977 "content-type" : "application/json; charset=utf-8", |
4778 }; | 4978 }; |
4779 var resp = convert.JSON.encode(buildAccountTax()); | 4979 var resp = convert.JSON.encode(buildAccountTax()); |
4780 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4980 return new async.Future.value(stringResponse(200, h, resp)); |
4781 }), true); | 4981 }), true); |
4782 res.patch(arg_request, arg_merchantId, arg_accountId).then(unittest.expect
Async(((api.AccountTax response) { | 4982 res.patch(arg_request, arg_merchantId, arg_accountId).then(unittest.expect
Async(((api.AccountTax response) { |
4783 checkAccountTax(response); | 4983 checkAccountTax(response); |
4784 }))); | 4984 }))); |
4785 }); | 4985 }); |
4786 | 4986 |
4787 unittest.test("method--update", () { | 4987 unittest.test("method--update", () { |
4788 | 4988 |
4789 var mock = new common_test.HttpServerMock(); | 4989 var mock = new HttpServerMock(); |
4790 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; | 4990 api.AccounttaxResourceApi res = new api.ContentApi(mock).accounttax; |
4791 var arg_request = buildAccountTax(); | 4991 var arg_request = buildAccountTax(); |
4792 var arg_merchantId = "foo"; | 4992 var arg_merchantId = "foo"; |
4793 var arg_accountId = "foo"; | 4993 var arg_accountId = "foo"; |
4794 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4994 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4795 var obj = new api.AccountTax.fromJson(json); | 4995 var obj = new api.AccountTax.fromJson(json); |
4796 checkAccountTax(obj); | 4996 checkAccountTax(obj); |
4797 | 4997 |
4798 var path = (req.url).path; | 4998 var path = (req.url).path; |
4799 var pathOffset = 0; | 4999 var pathOffset = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
4817 var keyvalue = part.split("="); | 5017 var keyvalue = part.split("="); |
4818 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5018 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4819 } | 5019 } |
4820 } | 5020 } |
4821 | 5021 |
4822 | 5022 |
4823 var h = { | 5023 var h = { |
4824 "content-type" : "application/json; charset=utf-8", | 5024 "content-type" : "application/json; charset=utf-8", |
4825 }; | 5025 }; |
4826 var resp = convert.JSON.encode(buildAccountTax()); | 5026 var resp = convert.JSON.encode(buildAccountTax()); |
4827 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5027 return new async.Future.value(stringResponse(200, h, resp)); |
4828 }), true); | 5028 }), true); |
4829 res.update(arg_request, arg_merchantId, arg_accountId).then(unittest.expec
tAsync(((api.AccountTax response) { | 5029 res.update(arg_request, arg_merchantId, arg_accountId).then(unittest.expec
tAsync(((api.AccountTax response) { |
4830 checkAccountTax(response); | 5030 checkAccountTax(response); |
4831 }))); | 5031 }))); |
4832 }); | 5032 }); |
4833 | 5033 |
4834 }); | 5034 }); |
4835 | 5035 |
4836 | 5036 |
4837 unittest.group("resource-DatafeedsResourceApi", () { | 5037 unittest.group("resource-DatafeedsResourceApi", () { |
4838 unittest.test("method--custombatch", () { | 5038 unittest.test("method--custombatch", () { |
4839 | 5039 |
4840 var mock = new common_test.HttpServerMock(); | 5040 var mock = new HttpServerMock(); |
4841 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; | 5041 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; |
4842 var arg_request = buildDatafeedsCustomBatchRequest(); | 5042 var arg_request = buildDatafeedsCustomBatchRequest(); |
4843 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5043 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4844 var obj = new api.DatafeedsCustomBatchRequest.fromJson(json); | 5044 var obj = new api.DatafeedsCustomBatchRequest.fromJson(json); |
4845 checkDatafeedsCustomBatchRequest(obj); | 5045 checkDatafeedsCustomBatchRequest(obj); |
4846 | 5046 |
4847 var path = (req.url).path; | 5047 var path = (req.url).path; |
4848 var pathOffset = 0; | 5048 var pathOffset = 0; |
4849 var index; | 5049 var index; |
4850 var subPart; | 5050 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
4870 var keyvalue = part.split("="); | 5070 var keyvalue = part.split("="); |
4871 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5071 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4872 } | 5072 } |
4873 } | 5073 } |
4874 | 5074 |
4875 | 5075 |
4876 var h = { | 5076 var h = { |
4877 "content-type" : "application/json; charset=utf-8", | 5077 "content-type" : "application/json; charset=utf-8", |
4878 }; | 5078 }; |
4879 var resp = convert.JSON.encode(buildDatafeedsCustomBatchResponse()); | 5079 var resp = convert.JSON.encode(buildDatafeedsCustomBatchResponse()); |
4880 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5080 return new async.Future.value(stringResponse(200, h, resp)); |
4881 }), true); | 5081 }), true); |
4882 res.custombatch(arg_request).then(unittest.expectAsync(((api.DatafeedsCust
omBatchResponse response) { | 5082 res.custombatch(arg_request).then(unittest.expectAsync(((api.DatafeedsCust
omBatchResponse response) { |
4883 checkDatafeedsCustomBatchResponse(response); | 5083 checkDatafeedsCustomBatchResponse(response); |
4884 }))); | 5084 }))); |
4885 }); | 5085 }); |
4886 | 5086 |
4887 unittest.test("method--delete", () { | 5087 unittest.test("method--delete", () { |
4888 | 5088 |
4889 var mock = new common_test.HttpServerMock(); | 5089 var mock = new HttpServerMock(); |
4890 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; | 5090 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; |
4891 var arg_merchantId = "foo"; | 5091 var arg_merchantId = "foo"; |
4892 var arg_datafeedId = "foo"; | 5092 var arg_datafeedId = "foo"; |
4893 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5093 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4894 var path = (req.url).path; | 5094 var path = (req.url).path; |
4895 var pathOffset = 0; | 5095 var pathOffset = 0; |
4896 var index; | 5096 var index; |
4897 var subPart; | 5097 var subPart; |
4898 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5098 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4899 pathOffset += 1; | 5099 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
4913 var keyvalue = part.split("="); | 5113 var keyvalue = part.split("="); |
4914 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5114 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4915 } | 5115 } |
4916 } | 5116 } |
4917 | 5117 |
4918 | 5118 |
4919 var h = { | 5119 var h = { |
4920 "content-type" : "application/json; charset=utf-8", | 5120 "content-type" : "application/json; charset=utf-8", |
4921 }; | 5121 }; |
4922 var resp = ""; | 5122 var resp = ""; |
4923 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5123 return new async.Future.value(stringResponse(200, h, resp)); |
4924 }), true); | 5124 }), true); |
4925 res.delete(arg_merchantId, arg_datafeedId).then(unittest.expectAsync((_) {
})); | 5125 res.delete(arg_merchantId, arg_datafeedId).then(unittest.expectAsync((_) {
})); |
4926 }); | 5126 }); |
4927 | 5127 |
4928 unittest.test("method--get", () { | 5128 unittest.test("method--get", () { |
4929 | 5129 |
4930 var mock = new common_test.HttpServerMock(); | 5130 var mock = new HttpServerMock(); |
4931 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; | 5131 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; |
4932 var arg_merchantId = "foo"; | 5132 var arg_merchantId = "foo"; |
4933 var arg_datafeedId = "foo"; | 5133 var arg_datafeedId = "foo"; |
4934 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5134 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4935 var path = (req.url).path; | 5135 var path = (req.url).path; |
4936 var pathOffset = 0; | 5136 var pathOffset = 0; |
4937 var index; | 5137 var index; |
4938 var subPart; | 5138 var subPart; |
4939 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5139 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4940 pathOffset += 1; | 5140 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
4954 var keyvalue = part.split("="); | 5154 var keyvalue = part.split("="); |
4955 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5155 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4956 } | 5156 } |
4957 } | 5157 } |
4958 | 5158 |
4959 | 5159 |
4960 var h = { | 5160 var h = { |
4961 "content-type" : "application/json; charset=utf-8", | 5161 "content-type" : "application/json; charset=utf-8", |
4962 }; | 5162 }; |
4963 var resp = convert.JSON.encode(buildDatafeed()); | 5163 var resp = convert.JSON.encode(buildDatafeed()); |
4964 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5164 return new async.Future.value(stringResponse(200, h, resp)); |
4965 }), true); | 5165 }), true); |
4966 res.get(arg_merchantId, arg_datafeedId).then(unittest.expectAsync(((api.Da
tafeed response) { | 5166 res.get(arg_merchantId, arg_datafeedId).then(unittest.expectAsync(((api.Da
tafeed response) { |
4967 checkDatafeed(response); | 5167 checkDatafeed(response); |
4968 }))); | 5168 }))); |
4969 }); | 5169 }); |
4970 | 5170 |
4971 unittest.test("method--insert", () { | 5171 unittest.test("method--insert", () { |
4972 | 5172 |
4973 var mock = new common_test.HttpServerMock(); | 5173 var mock = new HttpServerMock(); |
4974 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; | 5174 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; |
4975 var arg_request = buildDatafeed(); | 5175 var arg_request = buildDatafeed(); |
4976 var arg_merchantId = "foo"; | 5176 var arg_merchantId = "foo"; |
4977 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5177 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4978 var obj = new api.Datafeed.fromJson(json); | 5178 var obj = new api.Datafeed.fromJson(json); |
4979 checkDatafeed(obj); | 5179 checkDatafeed(obj); |
4980 | 5180 |
4981 var path = (req.url).path; | 5181 var path = (req.url).path; |
4982 var pathOffset = 0; | 5182 var pathOffset = 0; |
4983 var index; | 5183 var index; |
(...skipping 16 matching lines...) Expand all Loading... |
5000 var keyvalue = part.split("="); | 5200 var keyvalue = part.split("="); |
5001 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5201 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5002 } | 5202 } |
5003 } | 5203 } |
5004 | 5204 |
5005 | 5205 |
5006 var h = { | 5206 var h = { |
5007 "content-type" : "application/json; charset=utf-8", | 5207 "content-type" : "application/json; charset=utf-8", |
5008 }; | 5208 }; |
5009 var resp = convert.JSON.encode(buildDatafeed()); | 5209 var resp = convert.JSON.encode(buildDatafeed()); |
5010 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5210 return new async.Future.value(stringResponse(200, h, resp)); |
5011 }), true); | 5211 }), true); |
5012 res.insert(arg_request, arg_merchantId).then(unittest.expectAsync(((api.Da
tafeed response) { | 5212 res.insert(arg_request, arg_merchantId).then(unittest.expectAsync(((api.Da
tafeed response) { |
5013 checkDatafeed(response); | 5213 checkDatafeed(response); |
5014 }))); | 5214 }))); |
5015 }); | 5215 }); |
5016 | 5216 |
5017 unittest.test("method--list", () { | 5217 unittest.test("method--list", () { |
5018 | 5218 |
5019 var mock = new common_test.HttpServerMock(); | 5219 var mock = new HttpServerMock(); |
5020 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; | 5220 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; |
5021 var arg_merchantId = "foo"; | 5221 var arg_merchantId = "foo"; |
5022 var arg_maxResults = 42; | 5222 var arg_maxResults = 42; |
5023 var arg_pageToken = "foo"; | 5223 var arg_pageToken = "foo"; |
5024 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5224 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5025 var path = (req.url).path; | 5225 var path = (req.url).path; |
5026 var pathOffset = 0; | 5226 var pathOffset = 0; |
5027 var index; | 5227 var index; |
5028 var subPart; | 5228 var subPart; |
5029 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5229 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 16 matching lines...) Expand all Loading... |
5046 } | 5246 } |
5047 } | 5247 } |
5048 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5248 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
5049 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5249 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5050 | 5250 |
5051 | 5251 |
5052 var h = { | 5252 var h = { |
5053 "content-type" : "application/json; charset=utf-8", | 5253 "content-type" : "application/json; charset=utf-8", |
5054 }; | 5254 }; |
5055 var resp = convert.JSON.encode(buildDatafeedsListResponse()); | 5255 var resp = convert.JSON.encode(buildDatafeedsListResponse()); |
5056 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5256 return new async.Future.value(stringResponse(200, h, resp)); |
5057 }), true); | 5257 }), true); |
5058 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.DatafeedsListResponse response) { | 5258 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.DatafeedsListResponse response) { |
5059 checkDatafeedsListResponse(response); | 5259 checkDatafeedsListResponse(response); |
5060 }))); | 5260 }))); |
5061 }); | 5261 }); |
5062 | 5262 |
5063 unittest.test("method--patch", () { | 5263 unittest.test("method--patch", () { |
5064 | 5264 |
5065 var mock = new common_test.HttpServerMock(); | 5265 var mock = new HttpServerMock(); |
5066 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; | 5266 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; |
5067 var arg_request = buildDatafeed(); | 5267 var arg_request = buildDatafeed(); |
5068 var arg_merchantId = "foo"; | 5268 var arg_merchantId = "foo"; |
5069 var arg_datafeedId = "foo"; | 5269 var arg_datafeedId = "foo"; |
5070 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5270 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5071 var obj = new api.Datafeed.fromJson(json); | 5271 var obj = new api.Datafeed.fromJson(json); |
5072 checkDatafeed(obj); | 5272 checkDatafeed(obj); |
5073 | 5273 |
5074 var path = (req.url).path; | 5274 var path = (req.url).path; |
5075 var pathOffset = 0; | 5275 var pathOffset = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
5093 var keyvalue = part.split("="); | 5293 var keyvalue = part.split("="); |
5094 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5294 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5095 } | 5295 } |
5096 } | 5296 } |
5097 | 5297 |
5098 | 5298 |
5099 var h = { | 5299 var h = { |
5100 "content-type" : "application/json; charset=utf-8", | 5300 "content-type" : "application/json; charset=utf-8", |
5101 }; | 5301 }; |
5102 var resp = convert.JSON.encode(buildDatafeed()); | 5302 var resp = convert.JSON.encode(buildDatafeed()); |
5103 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5303 return new async.Future.value(stringResponse(200, h, resp)); |
5104 }), true); | 5304 }), true); |
5105 res.patch(arg_request, arg_merchantId, arg_datafeedId).then(unittest.expec
tAsync(((api.Datafeed response) { | 5305 res.patch(arg_request, arg_merchantId, arg_datafeedId).then(unittest.expec
tAsync(((api.Datafeed response) { |
5106 checkDatafeed(response); | 5306 checkDatafeed(response); |
5107 }))); | 5307 }))); |
5108 }); | 5308 }); |
5109 | 5309 |
5110 unittest.test("method--update", () { | 5310 unittest.test("method--update", () { |
5111 | 5311 |
5112 var mock = new common_test.HttpServerMock(); | 5312 var mock = new HttpServerMock(); |
5113 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; | 5313 api.DatafeedsResourceApi res = new api.ContentApi(mock).datafeeds; |
5114 var arg_request = buildDatafeed(); | 5314 var arg_request = buildDatafeed(); |
5115 var arg_merchantId = "foo"; | 5315 var arg_merchantId = "foo"; |
5116 var arg_datafeedId = "foo"; | 5316 var arg_datafeedId = "foo"; |
5117 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5118 var obj = new api.Datafeed.fromJson(json); | 5318 var obj = new api.Datafeed.fromJson(json); |
5119 checkDatafeed(obj); | 5319 checkDatafeed(obj); |
5120 | 5320 |
5121 var path = (req.url).path; | 5321 var path = (req.url).path; |
5122 var pathOffset = 0; | 5322 var pathOffset = 0; |
(...skipping 17 matching lines...) Expand all Loading... |
5140 var keyvalue = part.split("="); | 5340 var keyvalue = part.split("="); |
5141 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5341 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5142 } | 5342 } |
5143 } | 5343 } |
5144 | 5344 |
5145 | 5345 |
5146 var h = { | 5346 var h = { |
5147 "content-type" : "application/json; charset=utf-8", | 5347 "content-type" : "application/json; charset=utf-8", |
5148 }; | 5348 }; |
5149 var resp = convert.JSON.encode(buildDatafeed()); | 5349 var resp = convert.JSON.encode(buildDatafeed()); |
5150 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5350 return new async.Future.value(stringResponse(200, h, resp)); |
5151 }), true); | 5351 }), true); |
5152 res.update(arg_request, arg_merchantId, arg_datafeedId).then(unittest.expe
ctAsync(((api.Datafeed response) { | 5352 res.update(arg_request, arg_merchantId, arg_datafeedId).then(unittest.expe
ctAsync(((api.Datafeed response) { |
5153 checkDatafeed(response); | 5353 checkDatafeed(response); |
5154 }))); | 5354 }))); |
5155 }); | 5355 }); |
5156 | 5356 |
5157 }); | 5357 }); |
5158 | 5358 |
5159 | 5359 |
5160 unittest.group("resource-DatafeedstatusesResourceApi", () { | 5360 unittest.group("resource-DatafeedstatusesResourceApi", () { |
5161 unittest.test("method--custombatch", () { | 5361 unittest.test("method--custombatch", () { |
5162 | 5362 |
5163 var mock = new common_test.HttpServerMock(); | 5363 var mock = new HttpServerMock(); |
5164 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta
tuses; | 5364 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta
tuses; |
5165 var arg_request = buildDatafeedstatusesCustomBatchRequest(); | 5365 var arg_request = buildDatafeedstatusesCustomBatchRequest(); |
5166 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5366 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5167 var obj = new api.DatafeedstatusesCustomBatchRequest.fromJson(json); | 5367 var obj = new api.DatafeedstatusesCustomBatchRequest.fromJson(json); |
5168 checkDatafeedstatusesCustomBatchRequest(obj); | 5368 checkDatafeedstatusesCustomBatchRequest(obj); |
5169 | 5369 |
5170 var path = (req.url).path; | 5370 var path = (req.url).path; |
5171 var pathOffset = 0; | 5371 var pathOffset = 0; |
5172 var index; | 5372 var index; |
5173 var subPart; | 5373 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
5193 var keyvalue = part.split("="); | 5393 var keyvalue = part.split("="); |
5194 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5394 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5195 } | 5395 } |
5196 } | 5396 } |
5197 | 5397 |
5198 | 5398 |
5199 var h = { | 5399 var h = { |
5200 "content-type" : "application/json; charset=utf-8", | 5400 "content-type" : "application/json; charset=utf-8", |
5201 }; | 5401 }; |
5202 var resp = convert.JSON.encode(buildDatafeedstatusesCustomBatchResponse(
)); | 5402 var resp = convert.JSON.encode(buildDatafeedstatusesCustomBatchResponse(
)); |
5203 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5403 return new async.Future.value(stringResponse(200, h, resp)); |
5204 }), true); | 5404 }), true); |
5205 res.custombatch(arg_request).then(unittest.expectAsync(((api.Datafeedstatu
sesCustomBatchResponse response) { | 5405 res.custombatch(arg_request).then(unittest.expectAsync(((api.Datafeedstatu
sesCustomBatchResponse response) { |
5206 checkDatafeedstatusesCustomBatchResponse(response); | 5406 checkDatafeedstatusesCustomBatchResponse(response); |
5207 }))); | 5407 }))); |
5208 }); | 5408 }); |
5209 | 5409 |
5210 unittest.test("method--get", () { | 5410 unittest.test("method--get", () { |
5211 | 5411 |
5212 var mock = new common_test.HttpServerMock(); | 5412 var mock = new HttpServerMock(); |
5213 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta
tuses; | 5413 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta
tuses; |
5214 var arg_merchantId = "foo"; | 5414 var arg_merchantId = "foo"; |
5215 var arg_datafeedId = "foo"; | 5415 var arg_datafeedId = "foo"; |
5216 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5416 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5217 var path = (req.url).path; | 5417 var path = (req.url).path; |
5218 var pathOffset = 0; | 5418 var pathOffset = 0; |
5219 var index; | 5419 var index; |
5220 var subPart; | 5420 var subPart; |
5221 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5222 pathOffset += 1; | 5422 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
5236 var keyvalue = part.split("="); | 5436 var keyvalue = part.split("="); |
5237 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5437 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5238 } | 5438 } |
5239 } | 5439 } |
5240 | 5440 |
5241 | 5441 |
5242 var h = { | 5442 var h = { |
5243 "content-type" : "application/json; charset=utf-8", | 5443 "content-type" : "application/json; charset=utf-8", |
5244 }; | 5444 }; |
5245 var resp = convert.JSON.encode(buildDatafeedStatus()); | 5445 var resp = convert.JSON.encode(buildDatafeedStatus()); |
5246 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5446 return new async.Future.value(stringResponse(200, h, resp)); |
5247 }), true); | 5447 }), true); |
5248 res.get(arg_merchantId, arg_datafeedId).then(unittest.expectAsync(((api.Da
tafeedStatus response) { | 5448 res.get(arg_merchantId, arg_datafeedId).then(unittest.expectAsync(((api.Da
tafeedStatus response) { |
5249 checkDatafeedStatus(response); | 5449 checkDatafeedStatus(response); |
5250 }))); | 5450 }))); |
5251 }); | 5451 }); |
5252 | 5452 |
5253 unittest.test("method--list", () { | 5453 unittest.test("method--list", () { |
5254 | 5454 |
5255 var mock = new common_test.HttpServerMock(); | 5455 var mock = new HttpServerMock(); |
5256 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta
tuses; | 5456 api.DatafeedstatusesResourceApi res = new api.ContentApi(mock).datafeedsta
tuses; |
5257 var arg_merchantId = "foo"; | 5457 var arg_merchantId = "foo"; |
5258 var arg_maxResults = 42; | 5458 var arg_maxResults = 42; |
5259 var arg_pageToken = "foo"; | 5459 var arg_pageToken = "foo"; |
5260 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5460 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5261 var path = (req.url).path; | 5461 var path = (req.url).path; |
5262 var pathOffset = 0; | 5462 var pathOffset = 0; |
5263 var index; | 5463 var index; |
5264 var subPart; | 5464 var subPart; |
5265 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5465 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 16 matching lines...) Expand all Loading... |
5282 } | 5482 } |
5283 } | 5483 } |
5284 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5484 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
5285 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5485 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5286 | 5486 |
5287 | 5487 |
5288 var h = { | 5488 var h = { |
5289 "content-type" : "application/json; charset=utf-8", | 5489 "content-type" : "application/json; charset=utf-8", |
5290 }; | 5490 }; |
5291 var resp = convert.JSON.encode(buildDatafeedstatusesListResponse()); | 5491 var resp = convert.JSON.encode(buildDatafeedstatusesListResponse()); |
5292 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5492 return new async.Future.value(stringResponse(200, h, resp)); |
5293 }), true); | 5493 }), true); |
5294 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.DatafeedstatusesListResponse response) { | 5494 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.DatafeedstatusesListResponse response) { |
5295 checkDatafeedstatusesListResponse(response); | 5495 checkDatafeedstatusesListResponse(response); |
5296 }))); | 5496 }))); |
5297 }); | 5497 }); |
5298 | 5498 |
5299 }); | 5499 }); |
5300 | 5500 |
5301 | 5501 |
5302 unittest.group("resource-InventoryResourceApi", () { | 5502 unittest.group("resource-InventoryResourceApi", () { |
5303 unittest.test("method--custombatch", () { | 5503 unittest.test("method--custombatch", () { |
5304 | 5504 |
5305 var mock = new common_test.HttpServerMock(); | 5505 var mock = new HttpServerMock(); |
5306 api.InventoryResourceApi res = new api.ContentApi(mock).inventory; | 5506 api.InventoryResourceApi res = new api.ContentApi(mock).inventory; |
5307 var arg_request = buildInventoryCustomBatchRequest(); | 5507 var arg_request = buildInventoryCustomBatchRequest(); |
5308 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5508 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5309 var obj = new api.InventoryCustomBatchRequest.fromJson(json); | 5509 var obj = new api.InventoryCustomBatchRequest.fromJson(json); |
5310 checkInventoryCustomBatchRequest(obj); | 5510 checkInventoryCustomBatchRequest(obj); |
5311 | 5511 |
5312 var path = (req.url).path; | 5512 var path = (req.url).path; |
5313 var pathOffset = 0; | 5513 var pathOffset = 0; |
5314 var index; | 5514 var index; |
5315 var subPart; | 5515 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
5335 var keyvalue = part.split("="); | 5535 var keyvalue = part.split("="); |
5336 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5536 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5337 } | 5537 } |
5338 } | 5538 } |
5339 | 5539 |
5340 | 5540 |
5341 var h = { | 5541 var h = { |
5342 "content-type" : "application/json; charset=utf-8", | 5542 "content-type" : "application/json; charset=utf-8", |
5343 }; | 5543 }; |
5344 var resp = convert.JSON.encode(buildInventoryCustomBatchResponse()); | 5544 var resp = convert.JSON.encode(buildInventoryCustomBatchResponse()); |
5345 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5545 return new async.Future.value(stringResponse(200, h, resp)); |
5346 }), true); | 5546 }), true); |
5347 res.custombatch(arg_request).then(unittest.expectAsync(((api.InventoryCust
omBatchResponse response) { | 5547 res.custombatch(arg_request).then(unittest.expectAsync(((api.InventoryCust
omBatchResponse response) { |
5348 checkInventoryCustomBatchResponse(response); | 5548 checkInventoryCustomBatchResponse(response); |
5349 }))); | 5549 }))); |
5350 }); | 5550 }); |
5351 | 5551 |
5352 unittest.test("method--set", () { | 5552 unittest.test("method--set", () { |
5353 | 5553 |
5354 var mock = new common_test.HttpServerMock(); | 5554 var mock = new HttpServerMock(); |
5355 api.InventoryResourceApi res = new api.ContentApi(mock).inventory; | 5555 api.InventoryResourceApi res = new api.ContentApi(mock).inventory; |
5356 var arg_request = buildInventorySetRequest(); | 5556 var arg_request = buildInventorySetRequest(); |
5357 var arg_merchantId = "foo"; | 5557 var arg_merchantId = "foo"; |
5358 var arg_storeCode = "foo"; | 5558 var arg_storeCode = "foo"; |
5359 var arg_productId = "foo"; | 5559 var arg_productId = "foo"; |
5360 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5560 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5361 var obj = new api.InventorySetRequest.fromJson(json); | 5561 var obj = new api.InventorySetRequest.fromJson(json); |
5362 checkInventorySetRequest(obj); | 5562 checkInventorySetRequest(obj); |
5363 | 5563 |
5364 var path = (req.url).path; | 5564 var path = (req.url).path; |
(...skipping 18 matching lines...) Expand all Loading... |
5383 var keyvalue = part.split("="); | 5583 var keyvalue = part.split("="); |
5384 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5584 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5385 } | 5585 } |
5386 } | 5586 } |
5387 | 5587 |
5388 | 5588 |
5389 var h = { | 5589 var h = { |
5390 "content-type" : "application/json; charset=utf-8", | 5590 "content-type" : "application/json; charset=utf-8", |
5391 }; | 5591 }; |
5392 var resp = convert.JSON.encode(buildInventorySetResponse()); | 5592 var resp = convert.JSON.encode(buildInventorySetResponse()); |
5393 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5593 return new async.Future.value(stringResponse(200, h, resp)); |
5394 }), true); | 5594 }), true); |
5395 res.set(arg_request, arg_merchantId, arg_storeCode, arg_productId).then(un
ittest.expectAsync(((api.InventorySetResponse response) { | 5595 res.set(arg_request, arg_merchantId, arg_storeCode, arg_productId).then(un
ittest.expectAsync(((api.InventorySetResponse response) { |
5396 checkInventorySetResponse(response); | 5596 checkInventorySetResponse(response); |
5397 }))); | 5597 }))); |
5398 }); | 5598 }); |
5399 | 5599 |
5400 }); | 5600 }); |
5401 | 5601 |
5402 | 5602 |
5403 unittest.group("resource-ProductsResourceApi", () { | 5603 unittest.group("resource-ProductsResourceApi", () { |
5404 unittest.test("method--custombatch", () { | 5604 unittest.test("method--custombatch", () { |
5405 | 5605 |
5406 var mock = new common_test.HttpServerMock(); | 5606 var mock = new HttpServerMock(); |
5407 api.ProductsResourceApi res = new api.ContentApi(mock).products; | 5607 api.ProductsResourceApi res = new api.ContentApi(mock).products; |
5408 var arg_request = buildProductsCustomBatchRequest(); | 5608 var arg_request = buildProductsCustomBatchRequest(); |
5409 var arg_dryRun = true; | 5609 var arg_dryRun = true; |
5410 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5610 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5411 var obj = new api.ProductsCustomBatchRequest.fromJson(json); | 5611 var obj = new api.ProductsCustomBatchRequest.fromJson(json); |
5412 checkProductsCustomBatchRequest(obj); | 5612 checkProductsCustomBatchRequest(obj); |
5413 | 5613 |
5414 var path = (req.url).path; | 5614 var path = (req.url).path; |
5415 var pathOffset = 0; | 5615 var pathOffset = 0; |
5416 var index; | 5616 var index; |
(...skipping 21 matching lines...) Expand all Loading... |
5438 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5638 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5439 } | 5639 } |
5440 } | 5640 } |
5441 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); | 5641 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); |
5442 | 5642 |
5443 | 5643 |
5444 var h = { | 5644 var h = { |
5445 "content-type" : "application/json; charset=utf-8", | 5645 "content-type" : "application/json; charset=utf-8", |
5446 }; | 5646 }; |
5447 var resp = convert.JSON.encode(buildProductsCustomBatchResponse()); | 5647 var resp = convert.JSON.encode(buildProductsCustomBatchResponse()); |
5448 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5648 return new async.Future.value(stringResponse(200, h, resp)); |
5449 }), true); | 5649 }), true); |
5450 res.custombatch(arg_request, dryRun: arg_dryRun).then(unittest.expectAsync
(((api.ProductsCustomBatchResponse response) { | 5650 res.custombatch(arg_request, dryRun: arg_dryRun).then(unittest.expectAsync
(((api.ProductsCustomBatchResponse response) { |
5451 checkProductsCustomBatchResponse(response); | 5651 checkProductsCustomBatchResponse(response); |
5452 }))); | 5652 }))); |
5453 }); | 5653 }); |
5454 | 5654 |
5455 unittest.test("method--delete", () { | 5655 unittest.test("method--delete", () { |
5456 | 5656 |
5457 var mock = new common_test.HttpServerMock(); | 5657 var mock = new HttpServerMock(); |
5458 api.ProductsResourceApi res = new api.ContentApi(mock).products; | 5658 api.ProductsResourceApi res = new api.ContentApi(mock).products; |
5459 var arg_merchantId = "foo"; | 5659 var arg_merchantId = "foo"; |
5460 var arg_productId = "foo"; | 5660 var arg_productId = "foo"; |
5461 var arg_dryRun = true; | 5661 var arg_dryRun = true; |
5462 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5662 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5463 var path = (req.url).path; | 5663 var path = (req.url).path; |
5464 var pathOffset = 0; | 5664 var pathOffset = 0; |
5465 var index; | 5665 var index; |
5466 var subPart; | 5666 var subPart; |
5467 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5667 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 15 matching lines...) Expand all Loading... |
5483 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5683 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5484 } | 5684 } |
5485 } | 5685 } |
5486 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); | 5686 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); |
5487 | 5687 |
5488 | 5688 |
5489 var h = { | 5689 var h = { |
5490 "content-type" : "application/json; charset=utf-8", | 5690 "content-type" : "application/json; charset=utf-8", |
5491 }; | 5691 }; |
5492 var resp = ""; | 5692 var resp = ""; |
5493 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5693 return new async.Future.value(stringResponse(200, h, resp)); |
5494 }), true); | 5694 }), true); |
5495 res.delete(arg_merchantId, arg_productId, dryRun: arg_dryRun).then(unittes
t.expectAsync((_) {})); | 5695 res.delete(arg_merchantId, arg_productId, dryRun: arg_dryRun).then(unittes
t.expectAsync((_) {})); |
5496 }); | 5696 }); |
5497 | 5697 |
5498 unittest.test("method--get", () { | 5698 unittest.test("method--get", () { |
5499 | 5699 |
5500 var mock = new common_test.HttpServerMock(); | 5700 var mock = new HttpServerMock(); |
5501 api.ProductsResourceApi res = new api.ContentApi(mock).products; | 5701 api.ProductsResourceApi res = new api.ContentApi(mock).products; |
5502 var arg_merchantId = "foo"; | 5702 var arg_merchantId = "foo"; |
5503 var arg_productId = "foo"; | 5703 var arg_productId = "foo"; |
5504 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5704 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5505 var path = (req.url).path; | 5705 var path = (req.url).path; |
5506 var pathOffset = 0; | 5706 var pathOffset = 0; |
5507 var index; | 5707 var index; |
5508 var subPart; | 5708 var subPart; |
5509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5709 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5510 pathOffset += 1; | 5710 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
5524 var keyvalue = part.split("="); | 5724 var keyvalue = part.split("="); |
5525 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5725 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5526 } | 5726 } |
5527 } | 5727 } |
5528 | 5728 |
5529 | 5729 |
5530 var h = { | 5730 var h = { |
5531 "content-type" : "application/json; charset=utf-8", | 5731 "content-type" : "application/json; charset=utf-8", |
5532 }; | 5732 }; |
5533 var resp = convert.JSON.encode(buildProduct()); | 5733 var resp = convert.JSON.encode(buildProduct()); |
5534 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5734 return new async.Future.value(stringResponse(200, h, resp)); |
5535 }), true); | 5735 }), true); |
5536 res.get(arg_merchantId, arg_productId).then(unittest.expectAsync(((api.Pro
duct response) { | 5736 res.get(arg_merchantId, arg_productId).then(unittest.expectAsync(((api.Pro
duct response) { |
5537 checkProduct(response); | 5737 checkProduct(response); |
5538 }))); | 5738 }))); |
5539 }); | 5739 }); |
5540 | 5740 |
5541 unittest.test("method--insert", () { | 5741 unittest.test("method--insert", () { |
5542 | 5742 |
5543 var mock = new common_test.HttpServerMock(); | 5743 var mock = new HttpServerMock(); |
5544 api.ProductsResourceApi res = new api.ContentApi(mock).products; | 5744 api.ProductsResourceApi res = new api.ContentApi(mock).products; |
5545 var arg_request = buildProduct(); | 5745 var arg_request = buildProduct(); |
5546 var arg_merchantId = "foo"; | 5746 var arg_merchantId = "foo"; |
5547 var arg_dryRun = true; | 5747 var arg_dryRun = true; |
5548 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5748 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5549 var obj = new api.Product.fromJson(json); | 5749 var obj = new api.Product.fromJson(json); |
5550 checkProduct(obj); | 5750 checkProduct(obj); |
5551 | 5751 |
5552 var path = (req.url).path; | 5752 var path = (req.url).path; |
5553 var pathOffset = 0; | 5753 var pathOffset = 0; |
(...skipping 18 matching lines...) Expand all Loading... |
5572 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5772 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5573 } | 5773 } |
5574 } | 5774 } |
5575 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); | 5775 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); |
5576 | 5776 |
5577 | 5777 |
5578 var h = { | 5778 var h = { |
5579 "content-type" : "application/json; charset=utf-8", | 5779 "content-type" : "application/json; charset=utf-8", |
5580 }; | 5780 }; |
5581 var resp = convert.JSON.encode(buildProduct()); | 5781 var resp = convert.JSON.encode(buildProduct()); |
5582 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5782 return new async.Future.value(stringResponse(200, h, resp)); |
5583 }), true); | 5783 }), true); |
5584 res.insert(arg_request, arg_merchantId, dryRun: arg_dryRun).then(unittest.
expectAsync(((api.Product response) { | 5784 res.insert(arg_request, arg_merchantId, dryRun: arg_dryRun).then(unittest.
expectAsync(((api.Product response) { |
5585 checkProduct(response); | 5785 checkProduct(response); |
5586 }))); | 5786 }))); |
5587 }); | 5787 }); |
5588 | 5788 |
5589 unittest.test("method--list", () { | 5789 unittest.test("method--list", () { |
5590 | 5790 |
5591 var mock = new common_test.HttpServerMock(); | 5791 var mock = new HttpServerMock(); |
5592 api.ProductsResourceApi res = new api.ContentApi(mock).products; | 5792 api.ProductsResourceApi res = new api.ContentApi(mock).products; |
5593 var arg_merchantId = "foo"; | 5793 var arg_merchantId = "foo"; |
5594 var arg_maxResults = 42; | 5794 var arg_maxResults = 42; |
5595 var arg_pageToken = "foo"; | 5795 var arg_pageToken = "foo"; |
5596 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5796 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5597 var path = (req.url).path; | 5797 var path = (req.url).path; |
5598 var pathOffset = 0; | 5798 var pathOffset = 0; |
5599 var index; | 5799 var index; |
5600 var subPart; | 5800 var subPart; |
5601 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5801 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 16 matching lines...) Expand all Loading... |
5618 } | 5818 } |
5619 } | 5819 } |
5620 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5820 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
5621 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5821 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5622 | 5822 |
5623 | 5823 |
5624 var h = { | 5824 var h = { |
5625 "content-type" : "application/json; charset=utf-8", | 5825 "content-type" : "application/json; charset=utf-8", |
5626 }; | 5826 }; |
5627 var resp = convert.JSON.encode(buildProductsListResponse()); | 5827 var resp = convert.JSON.encode(buildProductsListResponse()); |
5628 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5828 return new async.Future.value(stringResponse(200, h, resp)); |
5629 }), true); | 5829 }), true); |
5630 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.ProductsListResponse response) { | 5830 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.ProductsListResponse response) { |
5631 checkProductsListResponse(response); | 5831 checkProductsListResponse(response); |
5632 }))); | 5832 }))); |
5633 }); | 5833 }); |
5634 | 5834 |
5635 }); | 5835 }); |
5636 | 5836 |
5637 | 5837 |
5638 unittest.group("resource-ProductstatusesResourceApi", () { | 5838 unittest.group("resource-ProductstatusesResourceApi", () { |
5639 unittest.test("method--custombatch", () { | 5839 unittest.test("method--custombatch", () { |
5640 | 5840 |
5641 var mock = new common_test.HttpServerMock(); | 5841 var mock = new HttpServerMock(); |
5642 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu
ses; | 5842 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu
ses; |
5643 var arg_request = buildProductstatusesCustomBatchRequest(); | 5843 var arg_request = buildProductstatusesCustomBatchRequest(); |
5644 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5844 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5645 var obj = new api.ProductstatusesCustomBatchRequest.fromJson(json); | 5845 var obj = new api.ProductstatusesCustomBatchRequest.fromJson(json); |
5646 checkProductstatusesCustomBatchRequest(obj); | 5846 checkProductstatusesCustomBatchRequest(obj); |
5647 | 5847 |
5648 var path = (req.url).path; | 5848 var path = (req.url).path; |
5649 var pathOffset = 0; | 5849 var pathOffset = 0; |
5650 var index; | 5850 var index; |
5651 var subPart; | 5851 var subPart; |
(...skipping 19 matching lines...) Expand all Loading... |
5671 var keyvalue = part.split("="); | 5871 var keyvalue = part.split("="); |
5672 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5872 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5673 } | 5873 } |
5674 } | 5874 } |
5675 | 5875 |
5676 | 5876 |
5677 var h = { | 5877 var h = { |
5678 "content-type" : "application/json; charset=utf-8", | 5878 "content-type" : "application/json; charset=utf-8", |
5679 }; | 5879 }; |
5680 var resp = convert.JSON.encode(buildProductstatusesCustomBatchResponse()
); | 5880 var resp = convert.JSON.encode(buildProductstatusesCustomBatchResponse()
); |
5681 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5881 return new async.Future.value(stringResponse(200, h, resp)); |
5682 }), true); | 5882 }), true); |
5683 res.custombatch(arg_request).then(unittest.expectAsync(((api.Productstatus
esCustomBatchResponse response) { | 5883 res.custombatch(arg_request).then(unittest.expectAsync(((api.Productstatus
esCustomBatchResponse response) { |
5684 checkProductstatusesCustomBatchResponse(response); | 5884 checkProductstatusesCustomBatchResponse(response); |
5685 }))); | 5885 }))); |
5686 }); | 5886 }); |
5687 | 5887 |
5688 unittest.test("method--get", () { | 5888 unittest.test("method--get", () { |
5689 | 5889 |
5690 var mock = new common_test.HttpServerMock(); | 5890 var mock = new HttpServerMock(); |
5691 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu
ses; | 5891 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu
ses; |
5692 var arg_merchantId = "foo"; | 5892 var arg_merchantId = "foo"; |
5693 var arg_productId = "foo"; | 5893 var arg_productId = "foo"; |
5694 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5894 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5695 var path = (req.url).path; | 5895 var path = (req.url).path; |
5696 var pathOffset = 0; | 5896 var pathOffset = 0; |
5697 var index; | 5897 var index; |
5698 var subPart; | 5898 var subPart; |
5699 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5899 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5700 pathOffset += 1; | 5900 pathOffset += 1; |
(...skipping 13 matching lines...) Expand all Loading... |
5714 var keyvalue = part.split("="); | 5914 var keyvalue = part.split("="); |
5715 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5915 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5716 } | 5916 } |
5717 } | 5917 } |
5718 | 5918 |
5719 | 5919 |
5720 var h = { | 5920 var h = { |
5721 "content-type" : "application/json; charset=utf-8", | 5921 "content-type" : "application/json; charset=utf-8", |
5722 }; | 5922 }; |
5723 var resp = convert.JSON.encode(buildProductStatus()); | 5923 var resp = convert.JSON.encode(buildProductStatus()); |
5724 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5924 return new async.Future.value(stringResponse(200, h, resp)); |
5725 }), true); | 5925 }), true); |
5726 res.get(arg_merchantId, arg_productId).then(unittest.expectAsync(((api.Pro
ductStatus response) { | 5926 res.get(arg_merchantId, arg_productId).then(unittest.expectAsync(((api.Pro
ductStatus response) { |
5727 checkProductStatus(response); | 5927 checkProductStatus(response); |
5728 }))); | 5928 }))); |
5729 }); | 5929 }); |
5730 | 5930 |
5731 unittest.test("method--list", () { | 5931 unittest.test("method--list", () { |
5732 | 5932 |
5733 var mock = new common_test.HttpServerMock(); | 5933 var mock = new HttpServerMock(); |
5734 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu
ses; | 5934 api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatu
ses; |
5735 var arg_merchantId = "foo"; | 5935 var arg_merchantId = "foo"; |
5736 var arg_maxResults = 42; | 5936 var arg_maxResults = 42; |
5737 var arg_pageToken = "foo"; | 5937 var arg_pageToken = "foo"; |
5738 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5938 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5739 var path = (req.url).path; | 5939 var path = (req.url).path; |
5740 var pathOffset = 0; | 5940 var pathOffset = 0; |
5741 var index; | 5941 var index; |
5742 var subPart; | 5942 var subPart; |
5743 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5943 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
(...skipping 16 matching lines...) Expand all Loading... |
5760 } | 5960 } |
5761 } | 5961 } |
5762 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 5962 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
5763 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5963 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5764 | 5964 |
5765 | 5965 |
5766 var h = { | 5966 var h = { |
5767 "content-type" : "application/json; charset=utf-8", | 5967 "content-type" : "application/json; charset=utf-8", |
5768 }; | 5968 }; |
5769 var resp = convert.JSON.encode(buildProductstatusesListResponse()); | 5969 var resp = convert.JSON.encode(buildProductstatusesListResponse()); |
5770 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5970 return new async.Future.value(stringResponse(200, h, resp)); |
5771 }), true); | 5971 }), true); |
5772 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.ProductstatusesListResponse response) { | 5972 res.list(arg_merchantId, maxResults: arg_maxResults, pageToken: arg_pageTo
ken).then(unittest.expectAsync(((api.ProductstatusesListResponse response) { |
5773 checkProductstatusesListResponse(response); | 5973 checkProductstatusesListResponse(response); |
5774 }))); | 5974 }))); |
5775 }); | 5975 }); |
5776 | 5976 |
5777 }); | 5977 }); |
5778 | 5978 |
5779 | 5979 |
5780 } | 5980 } |
5781 | 5981 |
OLD | NEW |