| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 | 93 |
| 94 checkLicenseAssignmentInsert(api.LicenseAssignmentInsert o) { | 94 checkLicenseAssignmentInsert(api.LicenseAssignmentInsert o) { |
| 95 buildCounterLicenseAssignmentInsert++; | 95 buildCounterLicenseAssignmentInsert++; |
| 96 if (buildCounterLicenseAssignmentInsert < 3) { | 96 if (buildCounterLicenseAssignmentInsert < 3) { |
| 97 unittest.expect(o.userId, unittest.equals('foo')); | 97 unittest.expect(o.userId, unittest.equals('foo')); |
| 98 } | 98 } |
| 99 buildCounterLicenseAssignmentInsert--; | 99 buildCounterLicenseAssignmentInsert--; |
| 100 } | 100 } |
| 101 | 101 |
| 102 buildUnnamed1904() { | 102 buildUnnamed1998() { |
| 103 var o = new core.List<api.LicenseAssignment>(); | 103 var o = new core.List<api.LicenseAssignment>(); |
| 104 o.add(buildLicenseAssignment()); | 104 o.add(buildLicenseAssignment()); |
| 105 o.add(buildLicenseAssignment()); | 105 o.add(buildLicenseAssignment()); |
| 106 return o; | 106 return o; |
| 107 } | 107 } |
| 108 | 108 |
| 109 checkUnnamed1904(core.List<api.LicenseAssignment> o) { | 109 checkUnnamed1998(core.List<api.LicenseAssignment> o) { |
| 110 unittest.expect(o, unittest.hasLength(2)); | 110 unittest.expect(o, unittest.hasLength(2)); |
| 111 checkLicenseAssignment(o[0]); | 111 checkLicenseAssignment(o[0]); |
| 112 checkLicenseAssignment(o[1]); | 112 checkLicenseAssignment(o[1]); |
| 113 } | 113 } |
| 114 | 114 |
| 115 core.int buildCounterLicenseAssignmentList = 0; | 115 core.int buildCounterLicenseAssignmentList = 0; |
| 116 buildLicenseAssignmentList() { | 116 buildLicenseAssignmentList() { |
| 117 var o = new api.LicenseAssignmentList(); | 117 var o = new api.LicenseAssignmentList(); |
| 118 buildCounterLicenseAssignmentList++; | 118 buildCounterLicenseAssignmentList++; |
| 119 if (buildCounterLicenseAssignmentList < 3) { | 119 if (buildCounterLicenseAssignmentList < 3) { |
| 120 o.etag = "foo"; | 120 o.etag = "foo"; |
| 121 o.items = buildUnnamed1904(); | 121 o.items = buildUnnamed1998(); |
| 122 o.kind = "foo"; | 122 o.kind = "foo"; |
| 123 o.nextPageToken = "foo"; | 123 o.nextPageToken = "foo"; |
| 124 } | 124 } |
| 125 buildCounterLicenseAssignmentList--; | 125 buildCounterLicenseAssignmentList--; |
| 126 return o; | 126 return o; |
| 127 } | 127 } |
| 128 | 128 |
| 129 checkLicenseAssignmentList(api.LicenseAssignmentList o) { | 129 checkLicenseAssignmentList(api.LicenseAssignmentList o) { |
| 130 buildCounterLicenseAssignmentList++; | 130 buildCounterLicenseAssignmentList++; |
| 131 if (buildCounterLicenseAssignmentList < 3) { | 131 if (buildCounterLicenseAssignmentList < 3) { |
| 132 unittest.expect(o.etag, unittest.equals('foo')); | 132 unittest.expect(o.etag, unittest.equals('foo')); |
| 133 checkUnnamed1904(o.items); | 133 checkUnnamed1998(o.items); |
| 134 unittest.expect(o.kind, unittest.equals('foo')); | 134 unittest.expect(o.kind, unittest.equals('foo')); |
| 135 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 135 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 136 } | 136 } |
| 137 buildCounterLicenseAssignmentList--; | 137 buildCounterLicenseAssignmentList--; |
| 138 } | 138 } |
| 139 | 139 |
| 140 | 140 |
| 141 main() { | 141 main() { |
| 142 unittest.group("obj-schema-LicenseAssignment", () { | 142 unittest.group("obj-schema-LicenseAssignment", () { |
| 143 unittest.test("to-json--from-json", () { | 143 unittest.test("to-json--from-json", () { |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 res.update(arg_request, arg_productId, arg_skuId, arg_userId).then(unittes
t.expectAsync(((api.LicenseAssignment response) { | 491 res.update(arg_request, arg_productId, arg_skuId, arg_userId).then(unittes
t.expectAsync(((api.LicenseAssignment response) { |
| 492 checkLicenseAssignment(response); | 492 checkLicenseAssignment(response); |
| 493 }))); | 493 }))); |
| 494 }); | 494 }); |
| 495 | 495 |
| 496 }); | 496 }); |
| 497 | 497 |
| 498 | 498 |
| 499 } | 499 } |
| 500 | 500 |
| OLD | NEW |