| OLD | NEW |
| 1 library googleapis.coordinate.v1.test; | 1 library googleapis.coordinate.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 checkCustomField(api.CustomField o) { | 67 checkCustomField(api.CustomField o) { |
| 68 buildCounterCustomField++; | 68 buildCounterCustomField++; |
| 69 if (buildCounterCustomField < 3) { | 69 if (buildCounterCustomField < 3) { |
| 70 unittest.expect(o.customFieldId, unittest.equals('foo')); | 70 unittest.expect(o.customFieldId, unittest.equals('foo')); |
| 71 unittest.expect(o.kind, unittest.equals('foo')); | 71 unittest.expect(o.kind, unittest.equals('foo')); |
| 72 unittest.expect(o.value, unittest.equals('foo')); | 72 unittest.expect(o.value, unittest.equals('foo')); |
| 73 } | 73 } |
| 74 buildCounterCustomField--; | 74 buildCounterCustomField--; |
| 75 } | 75 } |
| 76 | 76 |
| 77 buildUnnamed740() { | 77 buildUnnamed714() { |
| 78 var o = new core.List<api.EnumItemDef>(); | 78 var o = new core.List<api.EnumItemDef>(); |
| 79 o.add(buildEnumItemDef()); | 79 o.add(buildEnumItemDef()); |
| 80 o.add(buildEnumItemDef()); | 80 o.add(buildEnumItemDef()); |
| 81 return o; | 81 return o; |
| 82 } | 82 } |
| 83 | 83 |
| 84 checkUnnamed740(core.List<api.EnumItemDef> o) { | 84 checkUnnamed714(core.List<api.EnumItemDef> o) { |
| 85 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
| 86 checkEnumItemDef(o[0]); | 86 checkEnumItemDef(o[0]); |
| 87 checkEnumItemDef(o[1]); | 87 checkEnumItemDef(o[1]); |
| 88 } | 88 } |
| 89 | 89 |
| 90 core.int buildCounterCustomFieldDef = 0; | 90 core.int buildCounterCustomFieldDef = 0; |
| 91 buildCustomFieldDef() { | 91 buildCustomFieldDef() { |
| 92 var o = new api.CustomFieldDef(); | 92 var o = new api.CustomFieldDef(); |
| 93 buildCounterCustomFieldDef++; | 93 buildCounterCustomFieldDef++; |
| 94 if (buildCounterCustomFieldDef < 3) { | 94 if (buildCounterCustomFieldDef < 3) { |
| 95 o.enabled = true; | 95 o.enabled = true; |
| 96 o.enumitems = buildUnnamed740(); | 96 o.enumitems = buildUnnamed714(); |
| 97 o.id = "foo"; | 97 o.id = "foo"; |
| 98 o.kind = "foo"; | 98 o.kind = "foo"; |
| 99 o.name = "foo"; | 99 o.name = "foo"; |
| 100 o.requiredForCheckout = true; | 100 o.requiredForCheckout = true; |
| 101 o.type = "foo"; | 101 o.type = "foo"; |
| 102 } | 102 } |
| 103 buildCounterCustomFieldDef--; | 103 buildCounterCustomFieldDef--; |
| 104 return o; | 104 return o; |
| 105 } | 105 } |
| 106 | 106 |
| 107 checkCustomFieldDef(api.CustomFieldDef o) { | 107 checkCustomFieldDef(api.CustomFieldDef o) { |
| 108 buildCounterCustomFieldDef++; | 108 buildCounterCustomFieldDef++; |
| 109 if (buildCounterCustomFieldDef < 3) { | 109 if (buildCounterCustomFieldDef < 3) { |
| 110 unittest.expect(o.enabled, unittest.isTrue); | 110 unittest.expect(o.enabled, unittest.isTrue); |
| 111 checkUnnamed740(o.enumitems); | 111 checkUnnamed714(o.enumitems); |
| 112 unittest.expect(o.id, unittest.equals('foo')); | 112 unittest.expect(o.id, unittest.equals('foo')); |
| 113 unittest.expect(o.kind, unittest.equals('foo')); | 113 unittest.expect(o.kind, unittest.equals('foo')); |
| 114 unittest.expect(o.name, unittest.equals('foo')); | 114 unittest.expect(o.name, unittest.equals('foo')); |
| 115 unittest.expect(o.requiredForCheckout, unittest.isTrue); | 115 unittest.expect(o.requiredForCheckout, unittest.isTrue); |
| 116 unittest.expect(o.type, unittest.equals('foo')); | 116 unittest.expect(o.type, unittest.equals('foo')); |
| 117 } | 117 } |
| 118 buildCounterCustomFieldDef--; | 118 buildCounterCustomFieldDef--; |
| 119 } | 119 } |
| 120 | 120 |
| 121 buildUnnamed741() { | 121 buildUnnamed715() { |
| 122 var o = new core.List<api.CustomFieldDef>(); | 122 var o = new core.List<api.CustomFieldDef>(); |
| 123 o.add(buildCustomFieldDef()); | 123 o.add(buildCustomFieldDef()); |
| 124 o.add(buildCustomFieldDef()); | 124 o.add(buildCustomFieldDef()); |
| 125 return o; | 125 return o; |
| 126 } | 126 } |
| 127 | 127 |
| 128 checkUnnamed741(core.List<api.CustomFieldDef> o) { | 128 checkUnnamed715(core.List<api.CustomFieldDef> o) { |
| 129 unittest.expect(o, unittest.hasLength(2)); | 129 unittest.expect(o, unittest.hasLength(2)); |
| 130 checkCustomFieldDef(o[0]); | 130 checkCustomFieldDef(o[0]); |
| 131 checkCustomFieldDef(o[1]); | 131 checkCustomFieldDef(o[1]); |
| 132 } | 132 } |
| 133 | 133 |
| 134 core.int buildCounterCustomFieldDefListResponse = 0; | 134 core.int buildCounterCustomFieldDefListResponse = 0; |
| 135 buildCustomFieldDefListResponse() { | 135 buildCustomFieldDefListResponse() { |
| 136 var o = new api.CustomFieldDefListResponse(); | 136 var o = new api.CustomFieldDefListResponse(); |
| 137 buildCounterCustomFieldDefListResponse++; | 137 buildCounterCustomFieldDefListResponse++; |
| 138 if (buildCounterCustomFieldDefListResponse < 3) { | 138 if (buildCounterCustomFieldDefListResponse < 3) { |
| 139 o.items = buildUnnamed741(); | 139 o.items = buildUnnamed715(); |
| 140 o.kind = "foo"; | 140 o.kind = "foo"; |
| 141 } | 141 } |
| 142 buildCounterCustomFieldDefListResponse--; | 142 buildCounterCustomFieldDefListResponse--; |
| 143 return o; | 143 return o; |
| 144 } | 144 } |
| 145 | 145 |
| 146 checkCustomFieldDefListResponse(api.CustomFieldDefListResponse o) { | 146 checkCustomFieldDefListResponse(api.CustomFieldDefListResponse o) { |
| 147 buildCounterCustomFieldDefListResponse++; | 147 buildCounterCustomFieldDefListResponse++; |
| 148 if (buildCounterCustomFieldDefListResponse < 3) { | 148 if (buildCounterCustomFieldDefListResponse < 3) { |
| 149 checkUnnamed741(o.items); | 149 checkUnnamed715(o.items); |
| 150 unittest.expect(o.kind, unittest.equals('foo')); | 150 unittest.expect(o.kind, unittest.equals('foo')); |
| 151 } | 151 } |
| 152 buildCounterCustomFieldDefListResponse--; | 152 buildCounterCustomFieldDefListResponse--; |
| 153 } | 153 } |
| 154 | 154 |
| 155 buildUnnamed742() { | 155 buildUnnamed716() { |
| 156 var o = new core.List<api.CustomField>(); | 156 var o = new core.List<api.CustomField>(); |
| 157 o.add(buildCustomField()); | 157 o.add(buildCustomField()); |
| 158 o.add(buildCustomField()); | 158 o.add(buildCustomField()); |
| 159 return o; | 159 return o; |
| 160 } | 160 } |
| 161 | 161 |
| 162 checkUnnamed742(core.List<api.CustomField> o) { | 162 checkUnnamed716(core.List<api.CustomField> o) { |
| 163 unittest.expect(o, unittest.hasLength(2)); | 163 unittest.expect(o, unittest.hasLength(2)); |
| 164 checkCustomField(o[0]); | 164 checkCustomField(o[0]); |
| 165 checkCustomField(o[1]); | 165 checkCustomField(o[1]); |
| 166 } | 166 } |
| 167 | 167 |
| 168 core.int buildCounterCustomFields = 0; | 168 core.int buildCounterCustomFields = 0; |
| 169 buildCustomFields() { | 169 buildCustomFields() { |
| 170 var o = new api.CustomFields(); | 170 var o = new api.CustomFields(); |
| 171 buildCounterCustomFields++; | 171 buildCounterCustomFields++; |
| 172 if (buildCounterCustomFields < 3) { | 172 if (buildCounterCustomFields < 3) { |
| 173 o.customField = buildUnnamed742(); | 173 o.customField = buildUnnamed716(); |
| 174 o.kind = "foo"; | 174 o.kind = "foo"; |
| 175 } | 175 } |
| 176 buildCounterCustomFields--; | 176 buildCounterCustomFields--; |
| 177 return o; | 177 return o; |
| 178 } | 178 } |
| 179 | 179 |
| 180 checkCustomFields(api.CustomFields o) { | 180 checkCustomFields(api.CustomFields o) { |
| 181 buildCounterCustomFields++; | 181 buildCounterCustomFields++; |
| 182 if (buildCounterCustomFields < 3) { | 182 if (buildCounterCustomFields < 3) { |
| 183 checkUnnamed742(o.customField); | 183 checkUnnamed716(o.customField); |
| 184 unittest.expect(o.kind, unittest.equals('foo')); | 184 unittest.expect(o.kind, unittest.equals('foo')); |
| 185 } | 185 } |
| 186 buildCounterCustomFields--; | 186 buildCounterCustomFields--; |
| 187 } | 187 } |
| 188 | 188 |
| 189 core.int buildCounterEnumItemDef = 0; | 189 core.int buildCounterEnumItemDef = 0; |
| 190 buildEnumItemDef() { | 190 buildEnumItemDef() { |
| 191 var o = new api.EnumItemDef(); | 191 var o = new api.EnumItemDef(); |
| 192 buildCounterEnumItemDef++; | 192 buildCounterEnumItemDef++; |
| 193 if (buildCounterEnumItemDef < 3) { | 193 if (buildCounterEnumItemDef < 3) { |
| 194 o.active = true; | 194 o.active = true; |
| 195 o.kind = "foo"; | 195 o.kind = "foo"; |
| 196 o.value = "foo"; | 196 o.value = "foo"; |
| 197 } | 197 } |
| 198 buildCounterEnumItemDef--; | 198 buildCounterEnumItemDef--; |
| 199 return o; | 199 return o; |
| 200 } | 200 } |
| 201 | 201 |
| 202 checkEnumItemDef(api.EnumItemDef o) { | 202 checkEnumItemDef(api.EnumItemDef o) { |
| 203 buildCounterEnumItemDef++; | 203 buildCounterEnumItemDef++; |
| 204 if (buildCounterEnumItemDef < 3) { | 204 if (buildCounterEnumItemDef < 3) { |
| 205 unittest.expect(o.active, unittest.isTrue); | 205 unittest.expect(o.active, unittest.isTrue); |
| 206 unittest.expect(o.kind, unittest.equals('foo')); | 206 unittest.expect(o.kind, unittest.equals('foo')); |
| 207 unittest.expect(o.value, unittest.equals('foo')); | 207 unittest.expect(o.value, unittest.equals('foo')); |
| 208 } | 208 } |
| 209 buildCounterEnumItemDef--; | 209 buildCounterEnumItemDef--; |
| 210 } | 210 } |
| 211 | 211 |
| 212 buildUnnamed743() { | 212 buildUnnamed717() { |
| 213 var o = new core.List<api.JobChange>(); | 213 var o = new core.List<api.JobChange>(); |
| 214 o.add(buildJobChange()); | 214 o.add(buildJobChange()); |
| 215 o.add(buildJobChange()); | 215 o.add(buildJobChange()); |
| 216 return o; | 216 return o; |
| 217 } | 217 } |
| 218 | 218 |
| 219 checkUnnamed743(core.List<api.JobChange> o) { | 219 checkUnnamed717(core.List<api.JobChange> o) { |
| 220 unittest.expect(o, unittest.hasLength(2)); | 220 unittest.expect(o, unittest.hasLength(2)); |
| 221 checkJobChange(o[0]); | 221 checkJobChange(o[0]); |
| 222 checkJobChange(o[1]); | 222 checkJobChange(o[1]); |
| 223 } | 223 } |
| 224 | 224 |
| 225 core.int buildCounterJob = 0; | 225 core.int buildCounterJob = 0; |
| 226 buildJob() { | 226 buildJob() { |
| 227 var o = new api.Job(); | 227 var o = new api.Job(); |
| 228 buildCounterJob++; | 228 buildCounterJob++; |
| 229 if (buildCounterJob < 3) { | 229 if (buildCounterJob < 3) { |
| 230 o.id = "foo"; | 230 o.id = "foo"; |
| 231 o.jobChange = buildUnnamed743(); | 231 o.jobChange = buildUnnamed717(); |
| 232 o.kind = "foo"; | 232 o.kind = "foo"; |
| 233 o.state = buildJobState(); | 233 o.state = buildJobState(); |
| 234 } | 234 } |
| 235 buildCounterJob--; | 235 buildCounterJob--; |
| 236 return o; | 236 return o; |
| 237 } | 237 } |
| 238 | 238 |
| 239 checkJob(api.Job o) { | 239 checkJob(api.Job o) { |
| 240 buildCounterJob++; | 240 buildCounterJob++; |
| 241 if (buildCounterJob < 3) { | 241 if (buildCounterJob < 3) { |
| 242 unittest.expect(o.id, unittest.equals('foo')); | 242 unittest.expect(o.id, unittest.equals('foo')); |
| 243 checkUnnamed743(o.jobChange); | 243 checkUnnamed717(o.jobChange); |
| 244 unittest.expect(o.kind, unittest.equals('foo')); | 244 unittest.expect(o.kind, unittest.equals('foo')); |
| 245 checkJobState(o.state); | 245 checkJobState(o.state); |
| 246 } | 246 } |
| 247 buildCounterJob--; | 247 buildCounterJob--; |
| 248 } | 248 } |
| 249 | 249 |
| 250 core.int buildCounterJobChange = 0; | 250 core.int buildCounterJobChange = 0; |
| 251 buildJobChange() { | 251 buildJobChange() { |
| 252 var o = new api.JobChange(); | 252 var o = new api.JobChange(); |
| 253 buildCounterJobChange++; | 253 buildCounterJobChange++; |
| 254 if (buildCounterJobChange < 3) { | 254 if (buildCounterJobChange < 3) { |
| 255 o.kind = "foo"; | 255 o.kind = "foo"; |
| 256 o.state = buildJobState(); | 256 o.state = buildJobState(); |
| 257 o.timestamp = "foo"; | 257 o.timestamp = "foo"; |
| 258 } | 258 } |
| 259 buildCounterJobChange--; | 259 buildCounterJobChange--; |
| 260 return o; | 260 return o; |
| 261 } | 261 } |
| 262 | 262 |
| 263 checkJobChange(api.JobChange o) { | 263 checkJobChange(api.JobChange o) { |
| 264 buildCounterJobChange++; | 264 buildCounterJobChange++; |
| 265 if (buildCounterJobChange < 3) { | 265 if (buildCounterJobChange < 3) { |
| 266 unittest.expect(o.kind, unittest.equals('foo')); | 266 unittest.expect(o.kind, unittest.equals('foo')); |
| 267 checkJobState(o.state); | 267 checkJobState(o.state); |
| 268 unittest.expect(o.timestamp, unittest.equals('foo')); | 268 unittest.expect(o.timestamp, unittest.equals('foo')); |
| 269 } | 269 } |
| 270 buildCounterJobChange--; | 270 buildCounterJobChange--; |
| 271 } | 271 } |
| 272 | 272 |
| 273 buildUnnamed744() { | 273 buildUnnamed718() { |
| 274 var o = new core.List<api.Job>(); | 274 var o = new core.List<api.Job>(); |
| 275 o.add(buildJob()); | 275 o.add(buildJob()); |
| 276 o.add(buildJob()); | 276 o.add(buildJob()); |
| 277 return o; | 277 return o; |
| 278 } | 278 } |
| 279 | 279 |
| 280 checkUnnamed744(core.List<api.Job> o) { | 280 checkUnnamed718(core.List<api.Job> o) { |
| 281 unittest.expect(o, unittest.hasLength(2)); | 281 unittest.expect(o, unittest.hasLength(2)); |
| 282 checkJob(o[0]); | 282 checkJob(o[0]); |
| 283 checkJob(o[1]); | 283 checkJob(o[1]); |
| 284 } | 284 } |
| 285 | 285 |
| 286 core.int buildCounterJobListResponse = 0; | 286 core.int buildCounterJobListResponse = 0; |
| 287 buildJobListResponse() { | 287 buildJobListResponse() { |
| 288 var o = new api.JobListResponse(); | 288 var o = new api.JobListResponse(); |
| 289 buildCounterJobListResponse++; | 289 buildCounterJobListResponse++; |
| 290 if (buildCounterJobListResponse < 3) { | 290 if (buildCounterJobListResponse < 3) { |
| 291 o.items = buildUnnamed744(); | 291 o.items = buildUnnamed718(); |
| 292 o.kind = "foo"; | 292 o.kind = "foo"; |
| 293 o.nextPageToken = "foo"; | 293 o.nextPageToken = "foo"; |
| 294 } | 294 } |
| 295 buildCounterJobListResponse--; | 295 buildCounterJobListResponse--; |
| 296 return o; | 296 return o; |
| 297 } | 297 } |
| 298 | 298 |
| 299 checkJobListResponse(api.JobListResponse o) { | 299 checkJobListResponse(api.JobListResponse o) { |
| 300 buildCounterJobListResponse++; | 300 buildCounterJobListResponse++; |
| 301 if (buildCounterJobListResponse < 3) { | 301 if (buildCounterJobListResponse < 3) { |
| 302 checkUnnamed744(o.items); | 302 checkUnnamed718(o.items); |
| 303 unittest.expect(o.kind, unittest.equals('foo')); | 303 unittest.expect(o.kind, unittest.equals('foo')); |
| 304 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 304 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 305 } | 305 } |
| 306 buildCounterJobListResponse--; | 306 buildCounterJobListResponse--; |
| 307 } | 307 } |
| 308 | 308 |
| 309 buildUnnamed745() { | 309 buildUnnamed719() { |
| 310 var o = new core.List<core.String>(); | 310 var o = new core.List<core.String>(); |
| 311 o.add("foo"); | 311 o.add("foo"); |
| 312 o.add("foo"); | 312 o.add("foo"); |
| 313 return o; | 313 return o; |
| 314 } | 314 } |
| 315 | 315 |
| 316 checkUnnamed745(core.List<core.String> o) { | 316 checkUnnamed719(core.List<core.String> o) { |
| 317 unittest.expect(o, unittest.hasLength(2)); | 317 unittest.expect(o, unittest.hasLength(2)); |
| 318 unittest.expect(o[0], unittest.equals('foo')); | 318 unittest.expect(o[0], unittest.equals('foo')); |
| 319 unittest.expect(o[1], unittest.equals('foo')); | 319 unittest.expect(o[1], unittest.equals('foo')); |
| 320 } | 320 } |
| 321 | 321 |
| 322 core.int buildCounterJobState = 0; | 322 core.int buildCounterJobState = 0; |
| 323 buildJobState() { | 323 buildJobState() { |
| 324 var o = new api.JobState(); | 324 var o = new api.JobState(); |
| 325 buildCounterJobState++; | 325 buildCounterJobState++; |
| 326 if (buildCounterJobState < 3) { | 326 if (buildCounterJobState < 3) { |
| 327 o.assignee = "foo"; | 327 o.assignee = "foo"; |
| 328 o.customFields = buildCustomFields(); | 328 o.customFields = buildCustomFields(); |
| 329 o.customerName = "foo"; | 329 o.customerName = "foo"; |
| 330 o.customerPhoneNumber = "foo"; | 330 o.customerPhoneNumber = "foo"; |
| 331 o.kind = "foo"; | 331 o.kind = "foo"; |
| 332 o.location = buildLocation(); | 332 o.location = buildLocation(); |
| 333 o.note = buildUnnamed745(); | 333 o.note = buildUnnamed719(); |
| 334 o.progress = "foo"; | 334 o.progress = "foo"; |
| 335 o.title = "foo"; | 335 o.title = "foo"; |
| 336 } | 336 } |
| 337 buildCounterJobState--; | 337 buildCounterJobState--; |
| 338 return o; | 338 return o; |
| 339 } | 339 } |
| 340 | 340 |
| 341 checkJobState(api.JobState o) { | 341 checkJobState(api.JobState o) { |
| 342 buildCounterJobState++; | 342 buildCounterJobState++; |
| 343 if (buildCounterJobState < 3) { | 343 if (buildCounterJobState < 3) { |
| 344 unittest.expect(o.assignee, unittest.equals('foo')); | 344 unittest.expect(o.assignee, unittest.equals('foo')); |
| 345 checkCustomFields(o.customFields); | 345 checkCustomFields(o.customFields); |
| 346 unittest.expect(o.customerName, unittest.equals('foo')); | 346 unittest.expect(o.customerName, unittest.equals('foo')); |
| 347 unittest.expect(o.customerPhoneNumber, unittest.equals('foo')); | 347 unittest.expect(o.customerPhoneNumber, unittest.equals('foo')); |
| 348 unittest.expect(o.kind, unittest.equals('foo')); | 348 unittest.expect(o.kind, unittest.equals('foo')); |
| 349 checkLocation(o.location); | 349 checkLocation(o.location); |
| 350 checkUnnamed745(o.note); | 350 checkUnnamed719(o.note); |
| 351 unittest.expect(o.progress, unittest.equals('foo')); | 351 unittest.expect(o.progress, unittest.equals('foo')); |
| 352 unittest.expect(o.title, unittest.equals('foo')); | 352 unittest.expect(o.title, unittest.equals('foo')); |
| 353 } | 353 } |
| 354 buildCounterJobState--; | 354 buildCounterJobState--; |
| 355 } | 355 } |
| 356 | 356 |
| 357 buildUnnamed746() { | 357 buildUnnamed720() { |
| 358 var o = new core.List<core.String>(); | 358 var o = new core.List<core.String>(); |
| 359 o.add("foo"); | 359 o.add("foo"); |
| 360 o.add("foo"); | 360 o.add("foo"); |
| 361 return o; | 361 return o; |
| 362 } | 362 } |
| 363 | 363 |
| 364 checkUnnamed746(core.List<core.String> o) { | 364 checkUnnamed720(core.List<core.String> o) { |
| 365 unittest.expect(o, unittest.hasLength(2)); | 365 unittest.expect(o, unittest.hasLength(2)); |
| 366 unittest.expect(o[0], unittest.equals('foo')); | 366 unittest.expect(o[0], unittest.equals('foo')); |
| 367 unittest.expect(o[1], unittest.equals('foo')); | 367 unittest.expect(o[1], unittest.equals('foo')); |
| 368 } | 368 } |
| 369 | 369 |
| 370 core.int buildCounterLocation = 0; | 370 core.int buildCounterLocation = 0; |
| 371 buildLocation() { | 371 buildLocation() { |
| 372 var o = new api.Location(); | 372 var o = new api.Location(); |
| 373 buildCounterLocation++; | 373 buildCounterLocation++; |
| 374 if (buildCounterLocation < 3) { | 374 if (buildCounterLocation < 3) { |
| 375 o.addressLine = buildUnnamed746(); | 375 o.addressLine = buildUnnamed720(); |
| 376 o.kind = "foo"; | 376 o.kind = "foo"; |
| 377 o.lat = 42.0; | 377 o.lat = 42.0; |
| 378 o.lng = 42.0; | 378 o.lng = 42.0; |
| 379 } | 379 } |
| 380 buildCounterLocation--; | 380 buildCounterLocation--; |
| 381 return o; | 381 return o; |
| 382 } | 382 } |
| 383 | 383 |
| 384 checkLocation(api.Location o) { | 384 checkLocation(api.Location o) { |
| 385 buildCounterLocation++; | 385 buildCounterLocation++; |
| 386 if (buildCounterLocation < 3) { | 386 if (buildCounterLocation < 3) { |
| 387 checkUnnamed746(o.addressLine); | 387 checkUnnamed720(o.addressLine); |
| 388 unittest.expect(o.kind, unittest.equals('foo')); | 388 unittest.expect(o.kind, unittest.equals('foo')); |
| 389 unittest.expect(o.lat, unittest.equals(42.0)); | 389 unittest.expect(o.lat, unittest.equals(42.0)); |
| 390 unittest.expect(o.lng, unittest.equals(42.0)); | 390 unittest.expect(o.lng, unittest.equals(42.0)); |
| 391 } | 391 } |
| 392 buildCounterLocation--; | 392 buildCounterLocation--; |
| 393 } | 393 } |
| 394 | 394 |
| 395 buildUnnamed747() { | 395 buildUnnamed721() { |
| 396 var o = new core.List<api.LocationRecord>(); | 396 var o = new core.List<api.LocationRecord>(); |
| 397 o.add(buildLocationRecord()); | 397 o.add(buildLocationRecord()); |
| 398 o.add(buildLocationRecord()); | 398 o.add(buildLocationRecord()); |
| 399 return o; | 399 return o; |
| 400 } | 400 } |
| 401 | 401 |
| 402 checkUnnamed747(core.List<api.LocationRecord> o) { | 402 checkUnnamed721(core.List<api.LocationRecord> o) { |
| 403 unittest.expect(o, unittest.hasLength(2)); | 403 unittest.expect(o, unittest.hasLength(2)); |
| 404 checkLocationRecord(o[0]); | 404 checkLocationRecord(o[0]); |
| 405 checkLocationRecord(o[1]); | 405 checkLocationRecord(o[1]); |
| 406 } | 406 } |
| 407 | 407 |
| 408 core.int buildCounterLocationListResponse = 0; | 408 core.int buildCounterLocationListResponse = 0; |
| 409 buildLocationListResponse() { | 409 buildLocationListResponse() { |
| 410 var o = new api.LocationListResponse(); | 410 var o = new api.LocationListResponse(); |
| 411 buildCounterLocationListResponse++; | 411 buildCounterLocationListResponse++; |
| 412 if (buildCounterLocationListResponse < 3) { | 412 if (buildCounterLocationListResponse < 3) { |
| 413 o.items = buildUnnamed747(); | 413 o.items = buildUnnamed721(); |
| 414 o.kind = "foo"; | 414 o.kind = "foo"; |
| 415 o.nextPageToken = "foo"; | 415 o.nextPageToken = "foo"; |
| 416 o.tokenPagination = buildTokenPagination(); | 416 o.tokenPagination = buildTokenPagination(); |
| 417 } | 417 } |
| 418 buildCounterLocationListResponse--; | 418 buildCounterLocationListResponse--; |
| 419 return o; | 419 return o; |
| 420 } | 420 } |
| 421 | 421 |
| 422 checkLocationListResponse(api.LocationListResponse o) { | 422 checkLocationListResponse(api.LocationListResponse o) { |
| 423 buildCounterLocationListResponse++; | 423 buildCounterLocationListResponse++; |
| 424 if (buildCounterLocationListResponse < 3) { | 424 if (buildCounterLocationListResponse < 3) { |
| 425 checkUnnamed747(o.items); | 425 checkUnnamed721(o.items); |
| 426 unittest.expect(o.kind, unittest.equals('foo')); | 426 unittest.expect(o.kind, unittest.equals('foo')); |
| 427 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 427 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 428 checkTokenPagination(o.tokenPagination); | 428 checkTokenPagination(o.tokenPagination); |
| 429 } | 429 } |
| 430 buildCounterLocationListResponse--; | 430 buildCounterLocationListResponse--; |
| 431 } | 431 } |
| 432 | 432 |
| 433 core.int buildCounterLocationRecord = 0; | 433 core.int buildCounterLocationRecord = 0; |
| 434 buildLocationRecord() { | 434 buildLocationRecord() { |
| 435 var o = new api.LocationRecord(); | 435 var o = new api.LocationRecord(); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 checkTeam(api.Team o) { | 500 checkTeam(api.Team o) { |
| 501 buildCounterTeam++; | 501 buildCounterTeam++; |
| 502 if (buildCounterTeam < 3) { | 502 if (buildCounterTeam < 3) { |
| 503 unittest.expect(o.id, unittest.equals('foo')); | 503 unittest.expect(o.id, unittest.equals('foo')); |
| 504 unittest.expect(o.kind, unittest.equals('foo')); | 504 unittest.expect(o.kind, unittest.equals('foo')); |
| 505 unittest.expect(o.name, unittest.equals('foo')); | 505 unittest.expect(o.name, unittest.equals('foo')); |
| 506 } | 506 } |
| 507 buildCounterTeam--; | 507 buildCounterTeam--; |
| 508 } | 508 } |
| 509 | 509 |
| 510 buildUnnamed748() { | 510 buildUnnamed722() { |
| 511 var o = new core.List<api.Team>(); | 511 var o = new core.List<api.Team>(); |
| 512 o.add(buildTeam()); | 512 o.add(buildTeam()); |
| 513 o.add(buildTeam()); | 513 o.add(buildTeam()); |
| 514 return o; | 514 return o; |
| 515 } | 515 } |
| 516 | 516 |
| 517 checkUnnamed748(core.List<api.Team> o) { | 517 checkUnnamed722(core.List<api.Team> o) { |
| 518 unittest.expect(o, unittest.hasLength(2)); | 518 unittest.expect(o, unittest.hasLength(2)); |
| 519 checkTeam(o[0]); | 519 checkTeam(o[0]); |
| 520 checkTeam(o[1]); | 520 checkTeam(o[1]); |
| 521 } | 521 } |
| 522 | 522 |
| 523 core.int buildCounterTeamListResponse = 0; | 523 core.int buildCounterTeamListResponse = 0; |
| 524 buildTeamListResponse() { | 524 buildTeamListResponse() { |
| 525 var o = new api.TeamListResponse(); | 525 var o = new api.TeamListResponse(); |
| 526 buildCounterTeamListResponse++; | 526 buildCounterTeamListResponse++; |
| 527 if (buildCounterTeamListResponse < 3) { | 527 if (buildCounterTeamListResponse < 3) { |
| 528 o.items = buildUnnamed748(); | 528 o.items = buildUnnamed722(); |
| 529 o.kind = "foo"; | 529 o.kind = "foo"; |
| 530 } | 530 } |
| 531 buildCounterTeamListResponse--; | 531 buildCounterTeamListResponse--; |
| 532 return o; | 532 return o; |
| 533 } | 533 } |
| 534 | 534 |
| 535 checkTeamListResponse(api.TeamListResponse o) { | 535 checkTeamListResponse(api.TeamListResponse o) { |
| 536 buildCounterTeamListResponse++; | 536 buildCounterTeamListResponse++; |
| 537 if (buildCounterTeamListResponse < 3) { | 537 if (buildCounterTeamListResponse < 3) { |
| 538 checkUnnamed748(o.items); | 538 checkUnnamed722(o.items); |
| 539 unittest.expect(o.kind, unittest.equals('foo')); | 539 unittest.expect(o.kind, unittest.equals('foo')); |
| 540 } | 540 } |
| 541 buildCounterTeamListResponse--; | 541 buildCounterTeamListResponse--; |
| 542 } | 542 } |
| 543 | 543 |
| 544 core.int buildCounterTokenPagination = 0; | 544 core.int buildCounterTokenPagination = 0; |
| 545 buildTokenPagination() { | 545 buildTokenPagination() { |
| 546 var o = new api.TokenPagination(); | 546 var o = new api.TokenPagination(); |
| 547 buildCounterTokenPagination++; | 547 buildCounterTokenPagination++; |
| 548 if (buildCounterTokenPagination < 3) { | 548 if (buildCounterTokenPagination < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 578 | 578 |
| 579 checkWorker(api.Worker o) { | 579 checkWorker(api.Worker o) { |
| 580 buildCounterWorker++; | 580 buildCounterWorker++; |
| 581 if (buildCounterWorker < 3) { | 581 if (buildCounterWorker < 3) { |
| 582 unittest.expect(o.id, unittest.equals('foo')); | 582 unittest.expect(o.id, unittest.equals('foo')); |
| 583 unittest.expect(o.kind, unittest.equals('foo')); | 583 unittest.expect(o.kind, unittest.equals('foo')); |
| 584 } | 584 } |
| 585 buildCounterWorker--; | 585 buildCounterWorker--; |
| 586 } | 586 } |
| 587 | 587 |
| 588 buildUnnamed749() { | 588 buildUnnamed723() { |
| 589 var o = new core.List<api.Worker>(); | 589 var o = new core.List<api.Worker>(); |
| 590 o.add(buildWorker()); | 590 o.add(buildWorker()); |
| 591 o.add(buildWorker()); | 591 o.add(buildWorker()); |
| 592 return o; | 592 return o; |
| 593 } | 593 } |
| 594 | 594 |
| 595 checkUnnamed749(core.List<api.Worker> o) { | 595 checkUnnamed723(core.List<api.Worker> o) { |
| 596 unittest.expect(o, unittest.hasLength(2)); | 596 unittest.expect(o, unittest.hasLength(2)); |
| 597 checkWorker(o[0]); | 597 checkWorker(o[0]); |
| 598 checkWorker(o[1]); | 598 checkWorker(o[1]); |
| 599 } | 599 } |
| 600 | 600 |
| 601 core.int buildCounterWorkerListResponse = 0; | 601 core.int buildCounterWorkerListResponse = 0; |
| 602 buildWorkerListResponse() { | 602 buildWorkerListResponse() { |
| 603 var o = new api.WorkerListResponse(); | 603 var o = new api.WorkerListResponse(); |
| 604 buildCounterWorkerListResponse++; | 604 buildCounterWorkerListResponse++; |
| 605 if (buildCounterWorkerListResponse < 3) { | 605 if (buildCounterWorkerListResponse < 3) { |
| 606 o.items = buildUnnamed749(); | 606 o.items = buildUnnamed723(); |
| 607 o.kind = "foo"; | 607 o.kind = "foo"; |
| 608 } | 608 } |
| 609 buildCounterWorkerListResponse--; | 609 buildCounterWorkerListResponse--; |
| 610 return o; | 610 return o; |
| 611 } | 611 } |
| 612 | 612 |
| 613 checkWorkerListResponse(api.WorkerListResponse o) { | 613 checkWorkerListResponse(api.WorkerListResponse o) { |
| 614 buildCounterWorkerListResponse++; | 614 buildCounterWorkerListResponse++; |
| 615 if (buildCounterWorkerListResponse < 3) { | 615 if (buildCounterWorkerListResponse < 3) { |
| 616 checkUnnamed749(o.items); | 616 checkUnnamed723(o.items); |
| 617 unittest.expect(o.kind, unittest.equals('foo')); | 617 unittest.expect(o.kind, unittest.equals('foo')); |
| 618 } | 618 } |
| 619 buildCounterWorkerListResponse--; | 619 buildCounterWorkerListResponse--; |
| 620 } | 620 } |
| 621 | 621 |
| 622 buildUnnamed750() { | 622 buildUnnamed724() { |
| 623 var o = new core.List<core.String>(); | 623 var o = new core.List<core.String>(); |
| 624 o.add("foo"); | 624 o.add("foo"); |
| 625 o.add("foo"); | 625 o.add("foo"); |
| 626 return o; | 626 return o; |
| 627 } | 627 } |
| 628 | 628 |
| 629 checkUnnamed750(core.List<core.String> o) { | 629 checkUnnamed724(core.List<core.String> o) { |
| 630 unittest.expect(o, unittest.hasLength(2)); | 630 unittest.expect(o, unittest.hasLength(2)); |
| 631 unittest.expect(o[0], unittest.equals('foo')); | 631 unittest.expect(o[0], unittest.equals('foo')); |
| 632 unittest.expect(o[1], unittest.equals('foo')); | 632 unittest.expect(o[1], unittest.equals('foo')); |
| 633 } | 633 } |
| 634 | 634 |
| 635 buildUnnamed751() { | 635 buildUnnamed725() { |
| 636 var o = new core.List<core.String>(); | 636 var o = new core.List<core.String>(); |
| 637 o.add("foo"); | 637 o.add("foo"); |
| 638 o.add("foo"); | 638 o.add("foo"); |
| 639 return o; | 639 return o; |
| 640 } | 640 } |
| 641 | 641 |
| 642 checkUnnamed751(core.List<core.String> o) { | 642 checkUnnamed725(core.List<core.String> o) { |
| 643 unittest.expect(o, unittest.hasLength(2)); | 643 unittest.expect(o, unittest.hasLength(2)); |
| 644 unittest.expect(o[0], unittest.equals('foo')); | 644 unittest.expect(o[0], unittest.equals('foo')); |
| 645 unittest.expect(o[1], unittest.equals('foo')); | 645 unittest.expect(o[1], unittest.equals('foo')); |
| 646 } | 646 } |
| 647 | 647 |
| 648 buildUnnamed752() { | 648 buildUnnamed726() { |
| 649 var o = new core.List<core.String>(); | 649 var o = new core.List<core.String>(); |
| 650 o.add("foo"); | 650 o.add("foo"); |
| 651 o.add("foo"); | 651 o.add("foo"); |
| 652 return o; | 652 return o; |
| 653 } | 653 } |
| 654 | 654 |
| 655 checkUnnamed752(core.List<core.String> o) { | 655 checkUnnamed726(core.List<core.String> o) { |
| 656 unittest.expect(o, unittest.hasLength(2)); | 656 unittest.expect(o, unittest.hasLength(2)); |
| 657 unittest.expect(o[0], unittest.equals('foo')); | 657 unittest.expect(o[0], unittest.equals('foo')); |
| 658 unittest.expect(o[1], unittest.equals('foo')); | 658 unittest.expect(o[1], unittest.equals('foo')); |
| 659 } | 659 } |
| 660 | 660 |
| 661 | 661 |
| 662 main() { | 662 main() { |
| 663 unittest.group("obj-schema-CustomField", () { | 663 unittest.group("obj-schema-CustomField", () { |
| 664 unittest.test("to-json--from-json", () { | 664 unittest.test("to-json--from-json", () { |
| 665 var o = buildCustomField(); | 665 var o = buildCustomField(); |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 | 941 |
| 942 var mock = new HttpServerMock(); | 942 var mock = new HttpServerMock(); |
| 943 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; | 943 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; |
| 944 var arg_request = buildJob(); | 944 var arg_request = buildJob(); |
| 945 var arg_teamId = "foo"; | 945 var arg_teamId = "foo"; |
| 946 var arg_address = "foo"; | 946 var arg_address = "foo"; |
| 947 var arg_lat = 42.0; | 947 var arg_lat = 42.0; |
| 948 var arg_lng = 42.0; | 948 var arg_lng = 42.0; |
| 949 var arg_title = "foo"; | 949 var arg_title = "foo"; |
| 950 var arg_assignee = "foo"; | 950 var arg_assignee = "foo"; |
| 951 var arg_customField = buildUnnamed750(); | 951 var arg_customField = buildUnnamed724(); |
| 952 var arg_customerName = "foo"; | 952 var arg_customerName = "foo"; |
| 953 var arg_customerPhoneNumber = "foo"; | 953 var arg_customerPhoneNumber = "foo"; |
| 954 var arg_note = "foo"; | 954 var arg_note = "foo"; |
| 955 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 955 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 956 var obj = new api.Job.fromJson(json); | 956 var obj = new api.Job.fromJson(json); |
| 957 checkJob(obj); | 957 checkJob(obj); |
| 958 | 958 |
| 959 var path = (req.url).path; | 959 var path = (req.url).path; |
| 960 var pathOffset = 0; | 960 var pathOffset = 0; |
| 961 var index; | 961 var index; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 | 1073 |
| 1074 unittest.test("method--patch", () { | 1074 unittest.test("method--patch", () { |
| 1075 | 1075 |
| 1076 var mock = new HttpServerMock(); | 1076 var mock = new HttpServerMock(); |
| 1077 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; | 1077 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; |
| 1078 var arg_request = buildJob(); | 1078 var arg_request = buildJob(); |
| 1079 var arg_teamId = "foo"; | 1079 var arg_teamId = "foo"; |
| 1080 var arg_jobId = "foo"; | 1080 var arg_jobId = "foo"; |
| 1081 var arg_address = "foo"; | 1081 var arg_address = "foo"; |
| 1082 var arg_assignee = "foo"; | 1082 var arg_assignee = "foo"; |
| 1083 var arg_customField = buildUnnamed751(); | 1083 var arg_customField = buildUnnamed725(); |
| 1084 var arg_customerName = "foo"; | 1084 var arg_customerName = "foo"; |
| 1085 var arg_customerPhoneNumber = "foo"; | 1085 var arg_customerPhoneNumber = "foo"; |
| 1086 var arg_lat = 42.0; | 1086 var arg_lat = 42.0; |
| 1087 var arg_lng = 42.0; | 1087 var arg_lng = 42.0; |
| 1088 var arg_note = "foo"; | 1088 var arg_note = "foo"; |
| 1089 var arg_progress = "foo"; | 1089 var arg_progress = "foo"; |
| 1090 var arg_title = "foo"; | 1090 var arg_title = "foo"; |
| 1091 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1091 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1092 var obj = new api.Job.fromJson(json); | 1092 var obj = new api.Job.fromJson(json); |
| 1093 checkJob(obj); | 1093 checkJob(obj); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 | 1154 |
| 1155 unittest.test("method--update", () { | 1155 unittest.test("method--update", () { |
| 1156 | 1156 |
| 1157 var mock = new HttpServerMock(); | 1157 var mock = new HttpServerMock(); |
| 1158 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; | 1158 api.JobsResourceApi res = new api.CoordinateApi(mock).jobs; |
| 1159 var arg_request = buildJob(); | 1159 var arg_request = buildJob(); |
| 1160 var arg_teamId = "foo"; | 1160 var arg_teamId = "foo"; |
| 1161 var arg_jobId = "foo"; | 1161 var arg_jobId = "foo"; |
| 1162 var arg_address = "foo"; | 1162 var arg_address = "foo"; |
| 1163 var arg_assignee = "foo"; | 1163 var arg_assignee = "foo"; |
| 1164 var arg_customField = buildUnnamed752(); | 1164 var arg_customField = buildUnnamed726(); |
| 1165 var arg_customerName = "foo"; | 1165 var arg_customerName = "foo"; |
| 1166 var arg_customerPhoneNumber = "foo"; | 1166 var arg_customerPhoneNumber = "foo"; |
| 1167 var arg_lat = 42.0; | 1167 var arg_lat = 42.0; |
| 1168 var arg_lng = 42.0; | 1168 var arg_lng = 42.0; |
| 1169 var arg_note = "foo"; | 1169 var arg_note = "foo"; |
| 1170 var arg_progress = "foo"; | 1170 var arg_progress = "foo"; |
| 1171 var arg_title = "foo"; | 1171 var arg_title = "foo"; |
| 1172 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1172 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1173 var obj = new api.Job.fromJson(json); | 1173 var obj = new api.Job.fromJson(json); |
| 1174 checkJob(obj); | 1174 checkJob(obj); |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1625 res.list(arg_teamId).then(unittest.expectAsync(((api.WorkerListResponse re
sponse) { | 1625 res.list(arg_teamId).then(unittest.expectAsync(((api.WorkerListResponse re
sponse) { |
| 1626 checkWorkerListResponse(response); | 1626 checkWorkerListResponse(response); |
| 1627 }))); | 1627 }))); |
| 1628 }); | 1628 }); |
| 1629 | 1629 |
| 1630 }); | 1630 }); |
| 1631 | 1631 |
| 1632 | 1632 |
| 1633 } | 1633 } |
| 1634 | 1634 |
| OLD | NEW |