| OLD | NEW |
| 1 library googleapis.licensing.v1.test; | 1 library googleapis.licensing.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 } | 57 } |
| 58 | 58 |
| 59 checkLicenseAssignmentInsert(api.LicenseAssignmentInsert o) { | 59 checkLicenseAssignmentInsert(api.LicenseAssignmentInsert o) { |
| 60 buildCounterLicenseAssignmentInsert++; | 60 buildCounterLicenseAssignmentInsert++; |
| 61 if (buildCounterLicenseAssignmentInsert < 3) { | 61 if (buildCounterLicenseAssignmentInsert < 3) { |
| 62 unittest.expect(o.userId, unittest.equals('foo')); | 62 unittest.expect(o.userId, unittest.equals('foo')); |
| 63 } | 63 } |
| 64 buildCounterLicenseAssignmentInsert--; | 64 buildCounterLicenseAssignmentInsert--; |
| 65 } | 65 } |
| 66 | 66 |
| 67 buildUnnamed313() { | 67 buildUnnamed872() { |
| 68 var o = new core.List<api.LicenseAssignment>(); | 68 var o = new core.List<api.LicenseAssignment>(); |
| 69 o.add(buildLicenseAssignment()); | 69 o.add(buildLicenseAssignment()); |
| 70 o.add(buildLicenseAssignment()); | 70 o.add(buildLicenseAssignment()); |
| 71 return o; | 71 return o; |
| 72 } | 72 } |
| 73 | 73 |
| 74 checkUnnamed313(core.List<api.LicenseAssignment> o) { | 74 checkUnnamed872(core.List<api.LicenseAssignment> o) { |
| 75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
| 76 checkLicenseAssignment(o[0]); | 76 checkLicenseAssignment(o[0]); |
| 77 checkLicenseAssignment(o[1]); | 77 checkLicenseAssignment(o[1]); |
| 78 } | 78 } |
| 79 | 79 |
| 80 core.int buildCounterLicenseAssignmentList = 0; | 80 core.int buildCounterLicenseAssignmentList = 0; |
| 81 buildLicenseAssignmentList() { | 81 buildLicenseAssignmentList() { |
| 82 var o = new api.LicenseAssignmentList(); | 82 var o = new api.LicenseAssignmentList(); |
| 83 buildCounterLicenseAssignmentList++; | 83 buildCounterLicenseAssignmentList++; |
| 84 if (buildCounterLicenseAssignmentList < 3) { | 84 if (buildCounterLicenseAssignmentList < 3) { |
| 85 o.etag = "foo"; | 85 o.etag = "foo"; |
| 86 o.items = buildUnnamed313(); | 86 o.items = buildUnnamed872(); |
| 87 o.kind = "foo"; | 87 o.kind = "foo"; |
| 88 o.nextPageToken = "foo"; | 88 o.nextPageToken = "foo"; |
| 89 } | 89 } |
| 90 buildCounterLicenseAssignmentList--; | 90 buildCounterLicenseAssignmentList--; |
| 91 return o; | 91 return o; |
| 92 } | 92 } |
| 93 | 93 |
| 94 checkLicenseAssignmentList(api.LicenseAssignmentList o) { | 94 checkLicenseAssignmentList(api.LicenseAssignmentList o) { |
| 95 buildCounterLicenseAssignmentList++; | 95 buildCounterLicenseAssignmentList++; |
| 96 if (buildCounterLicenseAssignmentList < 3) { | 96 if (buildCounterLicenseAssignmentList < 3) { |
| 97 unittest.expect(o.etag, unittest.equals('foo')); | 97 unittest.expect(o.etag, unittest.equals('foo')); |
| 98 checkUnnamed313(o.items); | 98 checkUnnamed872(o.items); |
| 99 unittest.expect(o.kind, unittest.equals('foo')); | 99 unittest.expect(o.kind, unittest.equals('foo')); |
| 100 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 100 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 101 } | 101 } |
| 102 buildCounterLicenseAssignmentList--; | 102 buildCounterLicenseAssignmentList--; |
| 103 } | 103 } |
| 104 | 104 |
| 105 | 105 |
| 106 main() { | 106 main() { |
| 107 unittest.group("obj-schema-LicenseAssignment", () { | 107 unittest.group("obj-schema-LicenseAssignment", () { |
| 108 unittest.test("to-json--from-json", () { | 108 unittest.test("to-json--from-json", () { |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 res.update(arg_request, arg_productId, arg_skuId, arg_userId).then(unittes
t.expectAsync(((api.LicenseAssignment response) { | 456 res.update(arg_request, arg_productId, arg_skuId, arg_userId).then(unittes
t.expectAsync(((api.LicenseAssignment response) { |
| 457 checkLicenseAssignment(response); | 457 checkLicenseAssignment(response); |
| 458 }))); | 458 }))); |
| 459 }); | 459 }); |
| 460 | 460 |
| 461 }); | 461 }); |
| 462 | 462 |
| 463 | 463 |
| 464 } | 464 } |
| 465 | 465 |
| OLD | NEW |