OLD | NEW |
1 library googleapis.reseller.v1.test; | 1 library googleapis.reseller.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 checkSeats(o.seats); | 279 checkSeats(o.seats); |
280 unittest.expect(o.skuId, unittest.equals('foo')); | 280 unittest.expect(o.skuId, unittest.equals('foo')); |
281 unittest.expect(o.status, unittest.equals('foo')); | 281 unittest.expect(o.status, unittest.equals('foo')); |
282 unittest.expect(o.subscriptionId, unittest.equals('foo')); | 282 unittest.expect(o.subscriptionId, unittest.equals('foo')); |
283 checkSubscriptionTransferInfo(o.transferInfo); | 283 checkSubscriptionTransferInfo(o.transferInfo); |
284 checkSubscriptionTrialSettings(o.trialSettings); | 284 checkSubscriptionTrialSettings(o.trialSettings); |
285 } | 285 } |
286 buildCounterSubscription--; | 286 buildCounterSubscription--; |
287 } | 287 } |
288 | 288 |
289 buildUnnamed1052() { | 289 buildUnnamed1049() { |
290 var o = new core.List<api.Subscription>(); | 290 var o = new core.List<api.Subscription>(); |
291 o.add(buildSubscription()); | 291 o.add(buildSubscription()); |
292 o.add(buildSubscription()); | 292 o.add(buildSubscription()); |
293 return o; | 293 return o; |
294 } | 294 } |
295 | 295 |
296 checkUnnamed1052(core.List<api.Subscription> o) { | 296 checkUnnamed1049(core.List<api.Subscription> o) { |
297 unittest.expect(o, unittest.hasLength(2)); | 297 unittest.expect(o, unittest.hasLength(2)); |
298 checkSubscription(o[0]); | 298 checkSubscription(o[0]); |
299 checkSubscription(o[1]); | 299 checkSubscription(o[1]); |
300 } | 300 } |
301 | 301 |
302 core.int buildCounterSubscriptions = 0; | 302 core.int buildCounterSubscriptions = 0; |
303 buildSubscriptions() { | 303 buildSubscriptions() { |
304 var o = new api.Subscriptions(); | 304 var o = new api.Subscriptions(); |
305 buildCounterSubscriptions++; | 305 buildCounterSubscriptions++; |
306 if (buildCounterSubscriptions < 3) { | 306 if (buildCounterSubscriptions < 3) { |
307 o.kind = "foo"; | 307 o.kind = "foo"; |
308 o.nextPageToken = "foo"; | 308 o.nextPageToken = "foo"; |
309 o.subscriptions = buildUnnamed1052(); | 309 o.subscriptions = buildUnnamed1049(); |
310 } | 310 } |
311 buildCounterSubscriptions--; | 311 buildCounterSubscriptions--; |
312 return o; | 312 return o; |
313 } | 313 } |
314 | 314 |
315 checkSubscriptions(api.Subscriptions o) { | 315 checkSubscriptions(api.Subscriptions o) { |
316 buildCounterSubscriptions++; | 316 buildCounterSubscriptions++; |
317 if (buildCounterSubscriptions < 3) { | 317 if (buildCounterSubscriptions < 3) { |
318 unittest.expect(o.kind, unittest.equals('foo')); | 318 unittest.expect(o.kind, unittest.equals('foo')); |
319 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 319 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
320 checkUnnamed1052(o.subscriptions); | 320 checkUnnamed1049(o.subscriptions); |
321 } | 321 } |
322 buildCounterSubscriptions--; | 322 buildCounterSubscriptions--; |
323 } | 323 } |
324 | 324 |
325 | 325 |
326 main() { | 326 main() { |
327 unittest.group("obj-schema-Address", () { | 327 unittest.group("obj-schema-Address", () { |
328 unittest.test("to-json--from-json", () { | 328 unittest.test("to-json--from-json", () { |
329 var o = buildAddress(); | 329 var o = buildAddress(); |
330 var od = new api.Address.fromJson(o.toJson()); | 330 var od = new api.Address.fromJson(o.toJson()); |
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(
((api.Subscription response) { | 1238 res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(
((api.Subscription response) { |
1239 checkSubscription(response); | 1239 checkSubscription(response); |
1240 }))); | 1240 }))); |
1241 }); | 1241 }); |
1242 | 1242 |
1243 }); | 1243 }); |
1244 | 1244 |
1245 | 1245 |
1246 } | 1246 } |
1247 | 1247 |
OLD | NEW |