| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 } | 52 } |
| 53 | 53 |
| 54 core.int buildCounterLicenseAssignment = 0; | 54 core.int buildCounterLicenseAssignment = 0; |
| 55 buildLicenseAssignment() { | 55 buildLicenseAssignment() { |
| 56 var o = new api.LicenseAssignment(); | 56 var o = new api.LicenseAssignment(); |
| 57 buildCounterLicenseAssignment++; | 57 buildCounterLicenseAssignment++; |
| 58 if (buildCounterLicenseAssignment < 3) { | 58 if (buildCounterLicenseAssignment < 3) { |
| 59 o.etags = "foo"; | 59 o.etags = "foo"; |
| 60 o.kind = "foo"; | 60 o.kind = "foo"; |
| 61 o.productId = "foo"; | 61 o.productId = "foo"; |
| 62 o.productName = "foo"; |
| 62 o.selfLink = "foo"; | 63 o.selfLink = "foo"; |
| 63 o.skuId = "foo"; | 64 o.skuId = "foo"; |
| 65 o.skuName = "foo"; |
| 64 o.userId = "foo"; | 66 o.userId = "foo"; |
| 65 } | 67 } |
| 66 buildCounterLicenseAssignment--; | 68 buildCounterLicenseAssignment--; |
| 67 return o; | 69 return o; |
| 68 } | 70 } |
| 69 | 71 |
| 70 checkLicenseAssignment(api.LicenseAssignment o) { | 72 checkLicenseAssignment(api.LicenseAssignment o) { |
| 71 buildCounterLicenseAssignment++; | 73 buildCounterLicenseAssignment++; |
| 72 if (buildCounterLicenseAssignment < 3) { | 74 if (buildCounterLicenseAssignment < 3) { |
| 73 unittest.expect(o.etags, unittest.equals('foo')); | 75 unittest.expect(o.etags, unittest.equals('foo')); |
| 74 unittest.expect(o.kind, unittest.equals('foo')); | 76 unittest.expect(o.kind, unittest.equals('foo')); |
| 75 unittest.expect(o.productId, unittest.equals('foo')); | 77 unittest.expect(o.productId, unittest.equals('foo')); |
| 78 unittest.expect(o.productName, unittest.equals('foo')); |
| 76 unittest.expect(o.selfLink, unittest.equals('foo')); | 79 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 77 unittest.expect(o.skuId, unittest.equals('foo')); | 80 unittest.expect(o.skuId, unittest.equals('foo')); |
| 81 unittest.expect(o.skuName, unittest.equals('foo')); |
| 78 unittest.expect(o.userId, unittest.equals('foo')); | 82 unittest.expect(o.userId, unittest.equals('foo')); |
| 79 } | 83 } |
| 80 buildCounterLicenseAssignment--; | 84 buildCounterLicenseAssignment--; |
| 81 } | 85 } |
| 82 | 86 |
| 83 core.int buildCounterLicenseAssignmentInsert = 0; | 87 core.int buildCounterLicenseAssignmentInsert = 0; |
| 84 buildLicenseAssignmentInsert() { | 88 buildLicenseAssignmentInsert() { |
| 85 var o = new api.LicenseAssignmentInsert(); | 89 var o = new api.LicenseAssignmentInsert(); |
| 86 buildCounterLicenseAssignmentInsert++; | 90 buildCounterLicenseAssignmentInsert++; |
| 87 if (buildCounterLicenseAssignmentInsert < 3) { | 91 if (buildCounterLicenseAssignmentInsert < 3) { |
| 88 o.userId = "foo"; | 92 o.userId = "foo"; |
| 89 } | 93 } |
| 90 buildCounterLicenseAssignmentInsert--; | 94 buildCounterLicenseAssignmentInsert--; |
| 91 return o; | 95 return o; |
| 92 } | 96 } |
| 93 | 97 |
| 94 checkLicenseAssignmentInsert(api.LicenseAssignmentInsert o) { | 98 checkLicenseAssignmentInsert(api.LicenseAssignmentInsert o) { |
| 95 buildCounterLicenseAssignmentInsert++; | 99 buildCounterLicenseAssignmentInsert++; |
| 96 if (buildCounterLicenseAssignmentInsert < 3) { | 100 if (buildCounterLicenseAssignmentInsert < 3) { |
| 97 unittest.expect(o.userId, unittest.equals('foo')); | 101 unittest.expect(o.userId, unittest.equals('foo')); |
| 98 } | 102 } |
| 99 buildCounterLicenseAssignmentInsert--; | 103 buildCounterLicenseAssignmentInsert--; |
| 100 } | 104 } |
| 101 | 105 |
| 102 buildUnnamed1768() { | 106 buildUnnamed1872() { |
| 103 var o = new core.List<api.LicenseAssignment>(); | 107 var o = new core.List<api.LicenseAssignment>(); |
| 104 o.add(buildLicenseAssignment()); | 108 o.add(buildLicenseAssignment()); |
| 105 o.add(buildLicenseAssignment()); | 109 o.add(buildLicenseAssignment()); |
| 106 return o; | 110 return o; |
| 107 } | 111 } |
| 108 | 112 |
| 109 checkUnnamed1768(core.List<api.LicenseAssignment> o) { | 113 checkUnnamed1872(core.List<api.LicenseAssignment> o) { |
| 110 unittest.expect(o, unittest.hasLength(2)); | 114 unittest.expect(o, unittest.hasLength(2)); |
| 111 checkLicenseAssignment(o[0]); | 115 checkLicenseAssignment(o[0]); |
| 112 checkLicenseAssignment(o[1]); | 116 checkLicenseAssignment(o[1]); |
| 113 } | 117 } |
| 114 | 118 |
| 115 core.int buildCounterLicenseAssignmentList = 0; | 119 core.int buildCounterLicenseAssignmentList = 0; |
| 116 buildLicenseAssignmentList() { | 120 buildLicenseAssignmentList() { |
| 117 var o = new api.LicenseAssignmentList(); | 121 var o = new api.LicenseAssignmentList(); |
| 118 buildCounterLicenseAssignmentList++; | 122 buildCounterLicenseAssignmentList++; |
| 119 if (buildCounterLicenseAssignmentList < 3) { | 123 if (buildCounterLicenseAssignmentList < 3) { |
| 120 o.etag = "foo"; | 124 o.etag = "foo"; |
| 121 o.items = buildUnnamed1768(); | 125 o.items = buildUnnamed1872(); |
| 122 o.kind = "foo"; | 126 o.kind = "foo"; |
| 123 o.nextPageToken = "foo"; | 127 o.nextPageToken = "foo"; |
| 124 } | 128 } |
| 125 buildCounterLicenseAssignmentList--; | 129 buildCounterLicenseAssignmentList--; |
| 126 return o; | 130 return o; |
| 127 } | 131 } |
| 128 | 132 |
| 129 checkLicenseAssignmentList(api.LicenseAssignmentList o) { | 133 checkLicenseAssignmentList(api.LicenseAssignmentList o) { |
| 130 buildCounterLicenseAssignmentList++; | 134 buildCounterLicenseAssignmentList++; |
| 131 if (buildCounterLicenseAssignmentList < 3) { | 135 if (buildCounterLicenseAssignmentList < 3) { |
| 132 unittest.expect(o.etag, unittest.equals('foo')); | 136 unittest.expect(o.etag, unittest.equals('foo')); |
| 133 checkUnnamed1768(o.items); | 137 checkUnnamed1872(o.items); |
| 134 unittest.expect(o.kind, unittest.equals('foo')); | 138 unittest.expect(o.kind, unittest.equals('foo')); |
| 135 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 139 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 136 } | 140 } |
| 137 buildCounterLicenseAssignmentList--; | 141 buildCounterLicenseAssignmentList--; |
| 138 } | 142 } |
| 139 | 143 |
| 140 | 144 |
| 141 main() { | 145 main() { |
| 142 unittest.group("obj-schema-LicenseAssignment", () { | 146 unittest.group("obj-schema-LicenseAssignment", () { |
| 143 unittest.test("to-json--from-json", () { | 147 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) { | 495 res.update(arg_request, arg_productId, arg_skuId, arg_userId).then(unittes
t.expectAsync(((api.LicenseAssignment response) { |
| 492 checkLicenseAssignment(response); | 496 checkLicenseAssignment(response); |
| 493 }))); | 497 }))); |
| 494 }); | 498 }); |
| 495 | 499 |
| 496 }); | 500 }); |
| 497 | 501 |
| 498 | 502 |
| 499 } | 503 } |
| 500 | 504 |
| OLD | NEW |