| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 checkSubscriptionPlan(api.SubscriptionPlan o) { | 227 checkSubscriptionPlan(api.SubscriptionPlan o) { |
| 228 buildCounterSubscriptionPlan++; | 228 buildCounterSubscriptionPlan++; |
| 229 if (buildCounterSubscriptionPlan < 3) { | 229 if (buildCounterSubscriptionPlan < 3) { |
| 230 checkSubscriptionPlanCommitmentInterval(o.commitmentInterval); | 230 checkSubscriptionPlanCommitmentInterval(o.commitmentInterval); |
| 231 unittest.expect(o.isCommitmentPlan, unittest.isTrue); | 231 unittest.expect(o.isCommitmentPlan, unittest.isTrue); |
| 232 unittest.expect(o.planName, unittest.equals('foo')); | 232 unittest.expect(o.planName, unittest.equals('foo')); |
| 233 } | 233 } |
| 234 buildCounterSubscriptionPlan--; | 234 buildCounterSubscriptionPlan--; |
| 235 } | 235 } |
| 236 | 236 |
| 237 buildUnnamed1349() { | 237 buildUnnamed2079() { |
| 238 var o = new core.List<core.String>(); | 238 var o = new core.List<core.String>(); |
| 239 o.add("foo"); | 239 o.add("foo"); |
| 240 o.add("foo"); | 240 o.add("foo"); |
| 241 return o; | 241 return o; |
| 242 } | 242 } |
| 243 | 243 |
| 244 checkUnnamed1349(core.List<core.String> o) { | 244 checkUnnamed2079(core.List<core.String> o) { |
| 245 unittest.expect(o, unittest.hasLength(2)); | 245 unittest.expect(o, unittest.hasLength(2)); |
| 246 unittest.expect(o[0], unittest.equals('foo')); | 246 unittest.expect(o[0], unittest.equals('foo')); |
| 247 unittest.expect(o[1], unittest.equals('foo')); | 247 unittest.expect(o[1], unittest.equals('foo')); |
| 248 } | 248 } |
| 249 | 249 |
| 250 core.int buildCounterSubscriptionTransferInfo = 0; | 250 core.int buildCounterSubscriptionTransferInfo = 0; |
| 251 buildSubscriptionTransferInfo() { | 251 buildSubscriptionTransferInfo() { |
| 252 var o = new api.SubscriptionTransferInfo(); | 252 var o = new api.SubscriptionTransferInfo(); |
| 253 buildCounterSubscriptionTransferInfo++; | 253 buildCounterSubscriptionTransferInfo++; |
| 254 if (buildCounterSubscriptionTransferInfo < 3) { | 254 if (buildCounterSubscriptionTransferInfo < 3) { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 o.customerId = "foo"; | 299 o.customerId = "foo"; |
| 300 o.kind = "foo"; | 300 o.kind = "foo"; |
| 301 o.plan = buildSubscriptionPlan(); | 301 o.plan = buildSubscriptionPlan(); |
| 302 o.purchaseOrderId = "foo"; | 302 o.purchaseOrderId = "foo"; |
| 303 o.renewalSettings = buildRenewalSettings(); | 303 o.renewalSettings = buildRenewalSettings(); |
| 304 o.resourceUiUrl = "foo"; | 304 o.resourceUiUrl = "foo"; |
| 305 o.seats = buildSeats(); | 305 o.seats = buildSeats(); |
| 306 o.skuId = "foo"; | 306 o.skuId = "foo"; |
| 307 o.status = "foo"; | 307 o.status = "foo"; |
| 308 o.subscriptionId = "foo"; | 308 o.subscriptionId = "foo"; |
| 309 o.suspensionReasons = buildUnnamed1349(); | 309 o.suspensionReasons = buildUnnamed2079(); |
| 310 o.transferInfo = buildSubscriptionTransferInfo(); | 310 o.transferInfo = buildSubscriptionTransferInfo(); |
| 311 o.trialSettings = buildSubscriptionTrialSettings(); | 311 o.trialSettings = buildSubscriptionTrialSettings(); |
| 312 } | 312 } |
| 313 buildCounterSubscription--; | 313 buildCounterSubscription--; |
| 314 return o; | 314 return o; |
| 315 } | 315 } |
| 316 | 316 |
| 317 checkSubscription(api.Subscription o) { | 317 checkSubscription(api.Subscription o) { |
| 318 buildCounterSubscription++; | 318 buildCounterSubscription++; |
| 319 if (buildCounterSubscription < 3) { | 319 if (buildCounterSubscription < 3) { |
| 320 unittest.expect(o.billingMethod, unittest.equals('foo')); | 320 unittest.expect(o.billingMethod, unittest.equals('foo')); |
| 321 unittest.expect(o.creationTime, unittest.equals('foo')); | 321 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 322 unittest.expect(o.customerId, unittest.equals('foo')); | 322 unittest.expect(o.customerId, unittest.equals('foo')); |
| 323 unittest.expect(o.kind, unittest.equals('foo')); | 323 unittest.expect(o.kind, unittest.equals('foo')); |
| 324 checkSubscriptionPlan(o.plan); | 324 checkSubscriptionPlan(o.plan); |
| 325 unittest.expect(o.purchaseOrderId, unittest.equals('foo')); | 325 unittest.expect(o.purchaseOrderId, unittest.equals('foo')); |
| 326 checkRenewalSettings(o.renewalSettings); | 326 checkRenewalSettings(o.renewalSettings); |
| 327 unittest.expect(o.resourceUiUrl, unittest.equals('foo')); | 327 unittest.expect(o.resourceUiUrl, unittest.equals('foo')); |
| 328 checkSeats(o.seats); | 328 checkSeats(o.seats); |
| 329 unittest.expect(o.skuId, unittest.equals('foo')); | 329 unittest.expect(o.skuId, unittest.equals('foo')); |
| 330 unittest.expect(o.status, unittest.equals('foo')); | 330 unittest.expect(o.status, unittest.equals('foo')); |
| 331 unittest.expect(o.subscriptionId, unittest.equals('foo')); | 331 unittest.expect(o.subscriptionId, unittest.equals('foo')); |
| 332 checkUnnamed1349(o.suspensionReasons); | 332 checkUnnamed2079(o.suspensionReasons); |
| 333 checkSubscriptionTransferInfo(o.transferInfo); | 333 checkSubscriptionTransferInfo(o.transferInfo); |
| 334 checkSubscriptionTrialSettings(o.trialSettings); | 334 checkSubscriptionTrialSettings(o.trialSettings); |
| 335 } | 335 } |
| 336 buildCounterSubscription--; | 336 buildCounterSubscription--; |
| 337 } | 337 } |
| 338 | 338 |
| 339 buildUnnamed1350() { | 339 buildUnnamed2080() { |
| 340 var o = new core.List<api.Subscription>(); | 340 var o = new core.List<api.Subscription>(); |
| 341 o.add(buildSubscription()); | 341 o.add(buildSubscription()); |
| 342 o.add(buildSubscription()); | 342 o.add(buildSubscription()); |
| 343 return o; | 343 return o; |
| 344 } | 344 } |
| 345 | 345 |
| 346 checkUnnamed1350(core.List<api.Subscription> o) { | 346 checkUnnamed2080(core.List<api.Subscription> o) { |
| 347 unittest.expect(o, unittest.hasLength(2)); | 347 unittest.expect(o, unittest.hasLength(2)); |
| 348 checkSubscription(o[0]); | 348 checkSubscription(o[0]); |
| 349 checkSubscription(o[1]); | 349 checkSubscription(o[1]); |
| 350 } | 350 } |
| 351 | 351 |
| 352 core.int buildCounterSubscriptions = 0; | 352 core.int buildCounterSubscriptions = 0; |
| 353 buildSubscriptions() { | 353 buildSubscriptions() { |
| 354 var o = new api.Subscriptions(); | 354 var o = new api.Subscriptions(); |
| 355 buildCounterSubscriptions++; | 355 buildCounterSubscriptions++; |
| 356 if (buildCounterSubscriptions < 3) { | 356 if (buildCounterSubscriptions < 3) { |
| 357 o.kind = "foo"; | 357 o.kind = "foo"; |
| 358 o.nextPageToken = "foo"; | 358 o.nextPageToken = "foo"; |
| 359 o.subscriptions = buildUnnamed1350(); | 359 o.subscriptions = buildUnnamed2080(); |
| 360 } | 360 } |
| 361 buildCounterSubscriptions--; | 361 buildCounterSubscriptions--; |
| 362 return o; | 362 return o; |
| 363 } | 363 } |
| 364 | 364 |
| 365 checkSubscriptions(api.Subscriptions o) { | 365 checkSubscriptions(api.Subscriptions o) { |
| 366 buildCounterSubscriptions++; | 366 buildCounterSubscriptions++; |
| 367 if (buildCounterSubscriptions < 3) { | 367 if (buildCounterSubscriptions < 3) { |
| 368 unittest.expect(o.kind, unittest.equals('foo')); | 368 unittest.expect(o.kind, unittest.equals('foo')); |
| 369 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 369 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 370 checkUnnamed1350(o.subscriptions); | 370 checkUnnamed2080(o.subscriptions); |
| 371 } | 371 } |
| 372 buildCounterSubscriptions--; | 372 buildCounterSubscriptions--; |
| 373 } | 373 } |
| 374 | 374 |
| 375 | 375 |
| 376 main() { | 376 main() { |
| 377 unittest.group("obj-schema-Address", () { | 377 unittest.group("obj-schema-Address", () { |
| 378 unittest.test("to-json--from-json", () { | 378 unittest.test("to-json--from-json", () { |
| 379 var o = buildAddress(); | 379 var o = buildAddress(); |
| 380 var od = new api.Address.fromJson(o.toJson()); | 380 var od = new api.Address.fromJson(o.toJson()); |
| (...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(
((api.Subscription response) { | 1288 res.suspend(arg_customerId, arg_subscriptionId).then(unittest.expectAsync(
((api.Subscription response) { |
| 1289 checkSubscription(response); | 1289 checkSubscription(response); |
| 1290 }))); | 1290 }))); |
| 1291 }); | 1291 }); |
| 1292 | 1292 |
| 1293 }); | 1293 }); |
| 1294 | 1294 |
| 1295 | 1295 |
| 1296 } | 1296 } |
| 1297 | 1297 |
| OLD | NEW |