OLD | NEW |
1 library googleapis.gamesConfiguration.v1configuration.test; | 1 library googleapis.gamesConfiguration.v1configuration.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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 checkLocalizedStringBundle(o.description); | 106 checkLocalizedStringBundle(o.description); |
107 unittest.expect(o.iconUrl, unittest.equals('foo')); | 107 unittest.expect(o.iconUrl, unittest.equals('foo')); |
108 unittest.expect(o.kind, unittest.equals('foo')); | 108 unittest.expect(o.kind, unittest.equals('foo')); |
109 checkLocalizedStringBundle(o.name); | 109 checkLocalizedStringBundle(o.name); |
110 unittest.expect(o.pointValue, unittest.equals(42)); | 110 unittest.expect(o.pointValue, unittest.equals(42)); |
111 unittest.expect(o.sortRank, unittest.equals(42)); | 111 unittest.expect(o.sortRank, unittest.equals(42)); |
112 } | 112 } |
113 buildCounterAchievementConfigurationDetail--; | 113 buildCounterAchievementConfigurationDetail--; |
114 } | 114 } |
115 | 115 |
116 buildUnnamed634() { | 116 buildUnnamed641() { |
117 var o = new core.List<api.AchievementConfiguration>(); | 117 var o = new core.List<api.AchievementConfiguration>(); |
118 o.add(buildAchievementConfiguration()); | 118 o.add(buildAchievementConfiguration()); |
119 o.add(buildAchievementConfiguration()); | 119 o.add(buildAchievementConfiguration()); |
120 return o; | 120 return o; |
121 } | 121 } |
122 | 122 |
123 checkUnnamed634(core.List<api.AchievementConfiguration> o) { | 123 checkUnnamed641(core.List<api.AchievementConfiguration> o) { |
124 unittest.expect(o, unittest.hasLength(2)); | 124 unittest.expect(o, unittest.hasLength(2)); |
125 checkAchievementConfiguration(o[0]); | 125 checkAchievementConfiguration(o[0]); |
126 checkAchievementConfiguration(o[1]); | 126 checkAchievementConfiguration(o[1]); |
127 } | 127 } |
128 | 128 |
129 core.int buildCounterAchievementConfigurationListResponse = 0; | 129 core.int buildCounterAchievementConfigurationListResponse = 0; |
130 buildAchievementConfigurationListResponse() { | 130 buildAchievementConfigurationListResponse() { |
131 var o = new api.AchievementConfigurationListResponse(); | 131 var o = new api.AchievementConfigurationListResponse(); |
132 buildCounterAchievementConfigurationListResponse++; | 132 buildCounterAchievementConfigurationListResponse++; |
133 if (buildCounterAchievementConfigurationListResponse < 3) { | 133 if (buildCounterAchievementConfigurationListResponse < 3) { |
134 o.items = buildUnnamed634(); | 134 o.items = buildUnnamed641(); |
135 o.kind = "foo"; | 135 o.kind = "foo"; |
136 o.nextPageToken = "foo"; | 136 o.nextPageToken = "foo"; |
137 } | 137 } |
138 buildCounterAchievementConfigurationListResponse--; | 138 buildCounterAchievementConfigurationListResponse--; |
139 return o; | 139 return o; |
140 } | 140 } |
141 | 141 |
142 checkAchievementConfigurationListResponse(api.AchievementConfigurationListRespon
se o) { | 142 checkAchievementConfigurationListResponse(api.AchievementConfigurationListRespon
se o) { |
143 buildCounterAchievementConfigurationListResponse++; | 143 buildCounterAchievementConfigurationListResponse++; |
144 if (buildCounterAchievementConfigurationListResponse < 3) { | 144 if (buildCounterAchievementConfigurationListResponse < 3) { |
145 checkUnnamed634(o.items); | 145 checkUnnamed641(o.items); |
146 unittest.expect(o.kind, unittest.equals('foo')); | 146 unittest.expect(o.kind, unittest.equals('foo')); |
147 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 147 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
148 } | 148 } |
149 buildCounterAchievementConfigurationListResponse--; | 149 buildCounterAchievementConfigurationListResponse--; |
150 } | 150 } |
151 | 151 |
152 core.int buildCounterGamesNumberAffixConfiguration = 0; | 152 core.int buildCounterGamesNumberAffixConfiguration = 0; |
153 buildGamesNumberAffixConfiguration() { | 153 buildGamesNumberAffixConfiguration() { |
154 var o = new api.GamesNumberAffixConfiguration(); | 154 var o = new api.GamesNumberAffixConfiguration(); |
155 buildCounterGamesNumberAffixConfiguration++; | 155 buildCounterGamesNumberAffixConfiguration++; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 if (buildCounterLeaderboardConfigurationDetail < 3) { | 281 if (buildCounterLeaderboardConfigurationDetail < 3) { |
282 unittest.expect(o.iconUrl, unittest.equals('foo')); | 282 unittest.expect(o.iconUrl, unittest.equals('foo')); |
283 unittest.expect(o.kind, unittest.equals('foo')); | 283 unittest.expect(o.kind, unittest.equals('foo')); |
284 checkLocalizedStringBundle(o.name); | 284 checkLocalizedStringBundle(o.name); |
285 checkGamesNumberFormatConfiguration(o.scoreFormat); | 285 checkGamesNumberFormatConfiguration(o.scoreFormat); |
286 unittest.expect(o.sortRank, unittest.equals(42)); | 286 unittest.expect(o.sortRank, unittest.equals(42)); |
287 } | 287 } |
288 buildCounterLeaderboardConfigurationDetail--; | 288 buildCounterLeaderboardConfigurationDetail--; |
289 } | 289 } |
290 | 290 |
291 buildUnnamed635() { | 291 buildUnnamed642() { |
292 var o = new core.List<api.LeaderboardConfiguration>(); | 292 var o = new core.List<api.LeaderboardConfiguration>(); |
293 o.add(buildLeaderboardConfiguration()); | 293 o.add(buildLeaderboardConfiguration()); |
294 o.add(buildLeaderboardConfiguration()); | 294 o.add(buildLeaderboardConfiguration()); |
295 return o; | 295 return o; |
296 } | 296 } |
297 | 297 |
298 checkUnnamed635(core.List<api.LeaderboardConfiguration> o) { | 298 checkUnnamed642(core.List<api.LeaderboardConfiguration> o) { |
299 unittest.expect(o, unittest.hasLength(2)); | 299 unittest.expect(o, unittest.hasLength(2)); |
300 checkLeaderboardConfiguration(o[0]); | 300 checkLeaderboardConfiguration(o[0]); |
301 checkLeaderboardConfiguration(o[1]); | 301 checkLeaderboardConfiguration(o[1]); |
302 } | 302 } |
303 | 303 |
304 core.int buildCounterLeaderboardConfigurationListResponse = 0; | 304 core.int buildCounterLeaderboardConfigurationListResponse = 0; |
305 buildLeaderboardConfigurationListResponse() { | 305 buildLeaderboardConfigurationListResponse() { |
306 var o = new api.LeaderboardConfigurationListResponse(); | 306 var o = new api.LeaderboardConfigurationListResponse(); |
307 buildCounterLeaderboardConfigurationListResponse++; | 307 buildCounterLeaderboardConfigurationListResponse++; |
308 if (buildCounterLeaderboardConfigurationListResponse < 3) { | 308 if (buildCounterLeaderboardConfigurationListResponse < 3) { |
309 o.items = buildUnnamed635(); | 309 o.items = buildUnnamed642(); |
310 o.kind = "foo"; | 310 o.kind = "foo"; |
311 o.nextPageToken = "foo"; | 311 o.nextPageToken = "foo"; |
312 } | 312 } |
313 buildCounterLeaderboardConfigurationListResponse--; | 313 buildCounterLeaderboardConfigurationListResponse--; |
314 return o; | 314 return o; |
315 } | 315 } |
316 | 316 |
317 checkLeaderboardConfigurationListResponse(api.LeaderboardConfigurationListRespon
se o) { | 317 checkLeaderboardConfigurationListResponse(api.LeaderboardConfigurationListRespon
se o) { |
318 buildCounterLeaderboardConfigurationListResponse++; | 318 buildCounterLeaderboardConfigurationListResponse++; |
319 if (buildCounterLeaderboardConfigurationListResponse < 3) { | 319 if (buildCounterLeaderboardConfigurationListResponse < 3) { |
320 checkUnnamed635(o.items); | 320 checkUnnamed642(o.items); |
321 unittest.expect(o.kind, unittest.equals('foo')); | 321 unittest.expect(o.kind, unittest.equals('foo')); |
322 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 322 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
323 } | 323 } |
324 buildCounterLeaderboardConfigurationListResponse--; | 324 buildCounterLeaderboardConfigurationListResponse--; |
325 } | 325 } |
326 | 326 |
327 core.int buildCounterLocalizedString = 0; | 327 core.int buildCounterLocalizedString = 0; |
328 buildLocalizedString() { | 328 buildLocalizedString() { |
329 var o = new api.LocalizedString(); | 329 var o = new api.LocalizedString(); |
330 buildCounterLocalizedString++; | 330 buildCounterLocalizedString++; |
331 if (buildCounterLocalizedString < 3) { | 331 if (buildCounterLocalizedString < 3) { |
332 o.kind = "foo"; | 332 o.kind = "foo"; |
333 o.locale = "foo"; | 333 o.locale = "foo"; |
334 o.value = "foo"; | 334 o.value = "foo"; |
335 } | 335 } |
336 buildCounterLocalizedString--; | 336 buildCounterLocalizedString--; |
337 return o; | 337 return o; |
338 } | 338 } |
339 | 339 |
340 checkLocalizedString(api.LocalizedString o) { | 340 checkLocalizedString(api.LocalizedString o) { |
341 buildCounterLocalizedString++; | 341 buildCounterLocalizedString++; |
342 if (buildCounterLocalizedString < 3) { | 342 if (buildCounterLocalizedString < 3) { |
343 unittest.expect(o.kind, unittest.equals('foo')); | 343 unittest.expect(o.kind, unittest.equals('foo')); |
344 unittest.expect(o.locale, unittest.equals('foo')); | 344 unittest.expect(o.locale, unittest.equals('foo')); |
345 unittest.expect(o.value, unittest.equals('foo')); | 345 unittest.expect(o.value, unittest.equals('foo')); |
346 } | 346 } |
347 buildCounterLocalizedString--; | 347 buildCounterLocalizedString--; |
348 } | 348 } |
349 | 349 |
350 buildUnnamed636() { | 350 buildUnnamed643() { |
351 var o = new core.List<api.LocalizedString>(); | 351 var o = new core.List<api.LocalizedString>(); |
352 o.add(buildLocalizedString()); | 352 o.add(buildLocalizedString()); |
353 o.add(buildLocalizedString()); | 353 o.add(buildLocalizedString()); |
354 return o; | 354 return o; |
355 } | 355 } |
356 | 356 |
357 checkUnnamed636(core.List<api.LocalizedString> o) { | 357 checkUnnamed643(core.List<api.LocalizedString> o) { |
358 unittest.expect(o, unittest.hasLength(2)); | 358 unittest.expect(o, unittest.hasLength(2)); |
359 checkLocalizedString(o[0]); | 359 checkLocalizedString(o[0]); |
360 checkLocalizedString(o[1]); | 360 checkLocalizedString(o[1]); |
361 } | 361 } |
362 | 362 |
363 core.int buildCounterLocalizedStringBundle = 0; | 363 core.int buildCounterLocalizedStringBundle = 0; |
364 buildLocalizedStringBundle() { | 364 buildLocalizedStringBundle() { |
365 var o = new api.LocalizedStringBundle(); | 365 var o = new api.LocalizedStringBundle(); |
366 buildCounterLocalizedStringBundle++; | 366 buildCounterLocalizedStringBundle++; |
367 if (buildCounterLocalizedStringBundle < 3) { | 367 if (buildCounterLocalizedStringBundle < 3) { |
368 o.kind = "foo"; | 368 o.kind = "foo"; |
369 o.translations = buildUnnamed636(); | 369 o.translations = buildUnnamed643(); |
370 } | 370 } |
371 buildCounterLocalizedStringBundle--; | 371 buildCounterLocalizedStringBundle--; |
372 return o; | 372 return o; |
373 } | 373 } |
374 | 374 |
375 checkLocalizedStringBundle(api.LocalizedStringBundle o) { | 375 checkLocalizedStringBundle(api.LocalizedStringBundle o) { |
376 buildCounterLocalizedStringBundle++; | 376 buildCounterLocalizedStringBundle++; |
377 if (buildCounterLocalizedStringBundle < 3) { | 377 if (buildCounterLocalizedStringBundle < 3) { |
378 unittest.expect(o.kind, unittest.equals('foo')); | 378 unittest.expect(o.kind, unittest.equals('foo')); |
379 checkUnnamed636(o.translations); | 379 checkUnnamed643(o.translations); |
380 } | 380 } |
381 buildCounterLocalizedStringBundle--; | 381 buildCounterLocalizedStringBundle--; |
382 } | 382 } |
383 | 383 |
384 | 384 |
385 main() { | 385 main() { |
386 unittest.group("obj-schema-AchievementConfiguration", () { | 386 unittest.group("obj-schema-AchievementConfiguration", () { |
387 unittest.test("to-json--from-json", () { | 387 unittest.test("to-json--from-json", () { |
388 var o = buildAchievementConfiguration(); | 388 var o = buildAchievementConfiguration(); |
389 var od = new api.AchievementConfiguration.fromJson(o.toJson()); | 389 var od = new api.AchievementConfiguration.fromJson(o.toJson()); |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1180 res.update(arg_request, arg_leaderboardId).then(unittest.expectAsync(((api
.LeaderboardConfiguration response) { | 1180 res.update(arg_request, arg_leaderboardId).then(unittest.expectAsync(((api
.LeaderboardConfiguration response) { |
1181 checkLeaderboardConfiguration(response); | 1181 checkLeaderboardConfiguration(response); |
1182 }))); | 1182 }))); |
1183 }); | 1183 }); |
1184 | 1184 |
1185 }); | 1185 }); |
1186 | 1186 |
1187 | 1187 |
1188 } | 1188 } |
1189 | 1189 |
OLD | NEW |