Index: generated/googleapis/test/manufacturers/v1_test.dart |
diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart |
index 63a1b1481397470f895968f2795ef9048d45bffc..3d80f76aa1dd86b07f92be933a633dc7ac9facb4 100644 |
--- a/generated/googleapis/test/manufacturers/v1_test.dart |
+++ b/generated/googleapis/test/manufacturers/v1_test.dart |
@@ -51,27 +51,79 @@ http.StreamedResponse stringResponse( |
return new http.StreamedResponse(stream, status, headers: headers); |
} |
-buildUnnamed1341() { |
+buildUnnamed1394() { |
+ var o = new core.List<api.Image>(); |
+ o.add(buildImage()); |
+ o.add(buildImage()); |
+ return o; |
+} |
+ |
+checkUnnamed1394(core.List<api.Image> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkImage(o[0]); |
+ checkImage(o[1]); |
+} |
+ |
+buildUnnamed1395() { |
+ var o = new core.List<api.FeatureDescription>(); |
+ o.add(buildFeatureDescription()); |
+ o.add(buildFeatureDescription()); |
+ return o; |
+} |
+ |
+checkUnnamed1395(core.List<api.FeatureDescription> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkFeatureDescription(o[0]); |
+ checkFeatureDescription(o[1]); |
+} |
+ |
+buildUnnamed1396() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1341(core.List<core.String> o) { |
+checkUnnamed1396(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
} |
-buildUnnamed1342() { |
+buildUnnamed1397() { |
+ var o = new core.List<api.ProductDetail>(); |
+ o.add(buildProductDetail()); |
+ o.add(buildProductDetail()); |
+ return o; |
+} |
+ |
+checkUnnamed1397(core.List<api.ProductDetail> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkProductDetail(o[0]); |
+ checkProductDetail(o[1]); |
+} |
+ |
+buildUnnamed1398() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1342(core.List<core.String> o) { |
+checkUnnamed1398(core.List<core.String> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ unittest.expect(o[0], unittest.equals('foo')); |
+ unittest.expect(o[1], unittest.equals('foo')); |
+} |
+ |
+buildUnnamed1399() { |
+ var o = new core.List<core.String>(); |
+ o.add("foo"); |
+ o.add("foo"); |
+ return o; |
+} |
+ |
+checkUnnamed1399(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -82,14 +134,38 @@ buildAttributes() { |
var o = new api.Attributes(); |
buildCounterAttributes++; |
if (buildCounterAttributes < 3) { |
+ o.additionalImageLink = buildUnnamed1394(); |
+ o.ageGroup = "foo"; |
o.brand = "foo"; |
- o.gtin = buildUnnamed1341(); |
+ o.capacity = buildCapacity(); |
+ o.color = "foo"; |
+ o.count = buildCount(); |
+ o.description = "foo"; |
+ o.disclosureDate = "foo"; |
+ o.featureDescription = buildUnnamed1395(); |
+ o.flavor = "foo"; |
+ o.format = "foo"; |
+ o.gender = "foo"; |
+ o.gtin = buildUnnamed1396(); |
+ o.imageLink = buildImage(); |
+ o.itemGroupId = "foo"; |
+ o.material = "foo"; |
o.mpn = "foo"; |
+ o.pattern = "foo"; |
+ o.productDetail = buildUnnamed1397(); |
o.productLine = "foo"; |
o.productName = "foo"; |
o.productPageUrl = "foo"; |
- o.productType = buildUnnamed1342(); |
+ o.productType = buildUnnamed1398(); |
+ o.releaseDate = "foo"; |
+ o.scent = "foo"; |
+ o.size = "foo"; |
+ o.sizeSystem = "foo"; |
+ o.sizeType = "foo"; |
+ o.suggestedRetailPrice = buildPrice(); |
+ o.theme = "foo"; |
o.title = "foo"; |
+ o.videoLink = buildUnnamed1399(); |
} |
buildCounterAttributes--; |
return o; |
@@ -98,18 +174,130 @@ buildAttributes() { |
checkAttributes(api.Attributes o) { |
buildCounterAttributes++; |
if (buildCounterAttributes < 3) { |
+ checkUnnamed1394(o.additionalImageLink); |
+ unittest.expect(o.ageGroup, unittest.equals('foo')); |
unittest.expect(o.brand, unittest.equals('foo')); |
- checkUnnamed1341(o.gtin); |
+ checkCapacity(o.capacity); |
+ unittest.expect(o.color, unittest.equals('foo')); |
+ checkCount(o.count); |
+ unittest.expect(o.description, unittest.equals('foo')); |
+ unittest.expect(o.disclosureDate, unittest.equals('foo')); |
+ checkUnnamed1395(o.featureDescription); |
+ unittest.expect(o.flavor, unittest.equals('foo')); |
+ unittest.expect(o.format, unittest.equals('foo')); |
+ unittest.expect(o.gender, unittest.equals('foo')); |
+ checkUnnamed1396(o.gtin); |
+ checkImage(o.imageLink); |
+ unittest.expect(o.itemGroupId, unittest.equals('foo')); |
+ unittest.expect(o.material, unittest.equals('foo')); |
unittest.expect(o.mpn, unittest.equals('foo')); |
+ unittest.expect(o.pattern, unittest.equals('foo')); |
+ checkUnnamed1397(o.productDetail); |
unittest.expect(o.productLine, unittest.equals('foo')); |
unittest.expect(o.productName, unittest.equals('foo')); |
unittest.expect(o.productPageUrl, unittest.equals('foo')); |
- checkUnnamed1342(o.productType); |
+ checkUnnamed1398(o.productType); |
+ unittest.expect(o.releaseDate, unittest.equals('foo')); |
+ unittest.expect(o.scent, unittest.equals('foo')); |
+ unittest.expect(o.size, unittest.equals('foo')); |
+ unittest.expect(o.sizeSystem, unittest.equals('foo')); |
+ unittest.expect(o.sizeType, unittest.equals('foo')); |
+ checkPrice(o.suggestedRetailPrice); |
+ unittest.expect(o.theme, unittest.equals('foo')); |
unittest.expect(o.title, unittest.equals('foo')); |
+ checkUnnamed1399(o.videoLink); |
} |
buildCounterAttributes--; |
} |
+core.int buildCounterCapacity = 0; |
+buildCapacity() { |
+ var o = new api.Capacity(); |
+ buildCounterCapacity++; |
+ if (buildCounterCapacity < 3) { |
+ o.unit = "foo"; |
+ o.value = "foo"; |
+ } |
+ buildCounterCapacity--; |
+ return o; |
+} |
+ |
+checkCapacity(api.Capacity o) { |
+ buildCounterCapacity++; |
+ if (buildCounterCapacity < 3) { |
+ unittest.expect(o.unit, unittest.equals('foo')); |
+ unittest.expect(o.value, unittest.equals('foo')); |
+ } |
+ buildCounterCapacity--; |
+} |
+ |
+core.int buildCounterCount = 0; |
+buildCount() { |
+ var o = new api.Count(); |
+ buildCounterCount++; |
+ if (buildCounterCount < 3) { |
+ o.unit = "foo"; |
+ o.value = "foo"; |
+ } |
+ buildCounterCount--; |
+ return o; |
+} |
+ |
+checkCount(api.Count o) { |
+ buildCounterCount++; |
+ if (buildCounterCount < 3) { |
+ unittest.expect(o.unit, unittest.equals('foo')); |
+ unittest.expect(o.value, unittest.equals('foo')); |
+ } |
+ buildCounterCount--; |
+} |
+ |
+core.int buildCounterFeatureDescription = 0; |
+buildFeatureDescription() { |
+ var o = new api.FeatureDescription(); |
+ buildCounterFeatureDescription++; |
+ if (buildCounterFeatureDescription < 3) { |
+ o.headline = "foo"; |
+ o.image = buildImage(); |
+ o.text = "foo"; |
+ } |
+ buildCounterFeatureDescription--; |
+ return o; |
+} |
+ |
+checkFeatureDescription(api.FeatureDescription o) { |
+ buildCounterFeatureDescription++; |
+ if (buildCounterFeatureDescription < 3) { |
+ unittest.expect(o.headline, unittest.equals('foo')); |
+ checkImage(o.image); |
+ unittest.expect(o.text, unittest.equals('foo')); |
+ } |
+ buildCounterFeatureDescription--; |
+} |
+ |
+core.int buildCounterImage = 0; |
+buildImage() { |
+ var o = new api.Image(); |
+ buildCounterImage++; |
+ if (buildCounterImage < 3) { |
+ o.imageUrl = "foo"; |
+ o.status = "foo"; |
+ o.type = "foo"; |
+ } |
+ buildCounterImage--; |
+ return o; |
+} |
+ |
+checkImage(api.Image o) { |
+ buildCounterImage++; |
+ if (buildCounterImage < 3) { |
+ unittest.expect(o.imageUrl, unittest.equals('foo')); |
+ unittest.expect(o.status, unittest.equals('foo')); |
+ unittest.expect(o.type, unittest.equals('foo')); |
+ } |
+ buildCounterImage--; |
+} |
+ |
core.int buildCounterIssue = 0; |
buildIssue() { |
var o = new api.Issue(); |
@@ -118,6 +306,7 @@ buildIssue() { |
o.attribute = "foo"; |
o.description = "foo"; |
o.severity = "foo"; |
+ o.timestamp = "foo"; |
o.type = "foo"; |
} |
buildCounterIssue--; |
@@ -130,19 +319,20 @@ checkIssue(api.Issue o) { |
unittest.expect(o.attribute, unittest.equals('foo')); |
unittest.expect(o.description, unittest.equals('foo')); |
unittest.expect(o.severity, unittest.equals('foo')); |
+ unittest.expect(o.timestamp, unittest.equals('foo')); |
unittest.expect(o.type, unittest.equals('foo')); |
} |
buildCounterIssue--; |
} |
-buildUnnamed1343() { |
+buildUnnamed1400() { |
var o = new core.List<api.Product>(); |
o.add(buildProduct()); |
o.add(buildProduct()); |
return o; |
} |
-checkUnnamed1343(core.List<api.Product> o) { |
+checkUnnamed1400(core.List<api.Product> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkProduct(o[0]); |
checkProduct(o[1]); |
@@ -154,7 +344,7 @@ buildListProductsResponse() { |
buildCounterListProductsResponse++; |
if (buildCounterListProductsResponse < 3) { |
o.nextPageToken = "foo"; |
- o.products = buildUnnamed1343(); |
+ o.products = buildUnnamed1400(); |
} |
buildCounterListProductsResponse--; |
return o; |
@@ -164,32 +354,53 @@ checkListProductsResponse(api.ListProductsResponse o) { |
buildCounterListProductsResponse++; |
if (buildCounterListProductsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1343(o.products); |
+ checkUnnamed1400(o.products); |
} |
buildCounterListProductsResponse--; |
} |
-buildUnnamed1344() { |
+core.int buildCounterPrice = 0; |
+buildPrice() { |
+ var o = new api.Price(); |
+ buildCounterPrice++; |
+ if (buildCounterPrice < 3) { |
+ o.amount = "foo"; |
+ o.currency = "foo"; |
+ } |
+ buildCounterPrice--; |
+ return o; |
+} |
+ |
+checkPrice(api.Price o) { |
+ buildCounterPrice++; |
+ if (buildCounterPrice < 3) { |
+ unittest.expect(o.amount, unittest.equals('foo')); |
+ unittest.expect(o.currency, unittest.equals('foo')); |
+ } |
+ buildCounterPrice--; |
+} |
+ |
+buildUnnamed1401() { |
var o = new core.List<api.Issue>(); |
o.add(buildIssue()); |
o.add(buildIssue()); |
return o; |
} |
-checkUnnamed1344(core.List<api.Issue> o) { |
+checkUnnamed1401(core.List<api.Issue> o) { |
unittest.expect(o, unittest.hasLength(2)); |
checkIssue(o[0]); |
checkIssue(o[1]); |
} |
-buildUnnamed1345() { |
+buildUnnamed1402() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1345(core.List<core.String> o) { |
+checkUnnamed1402(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
unittest.expect(o[0], unittest.equals('foo')); |
unittest.expect(o[1], unittest.equals('foo')); |
@@ -202,8 +413,8 @@ buildProduct() { |
if (buildCounterProduct < 3) { |
o.contentLanguage = "foo"; |
o.finalAttributes = buildAttributes(); |
- o.issues = buildUnnamed1344(); |
- o.manuallyDeletedAttributes = buildUnnamed1345(); |
+ o.issues = buildUnnamed1401(); |
+ o.manuallyDeletedAttributes = buildUnnamed1402(); |
o.manuallyProvidedAttributes = buildAttributes(); |
o.name = "foo"; |
o.parent = "foo"; |
@@ -220,8 +431,8 @@ checkProduct(api.Product o) { |
if (buildCounterProduct < 3) { |
unittest.expect(o.contentLanguage, unittest.equals('foo')); |
checkAttributes(o.finalAttributes); |
- checkUnnamed1344(o.issues); |
- checkUnnamed1345(o.manuallyDeletedAttributes); |
+ checkUnnamed1401(o.issues); |
+ checkUnnamed1402(o.manuallyDeletedAttributes); |
checkAttributes(o.manuallyProvidedAttributes); |
unittest.expect(o.name, unittest.equals('foo')); |
unittest.expect(o.parent, unittest.equals('foo')); |
@@ -232,6 +443,29 @@ checkProduct(api.Product o) { |
buildCounterProduct--; |
} |
+core.int buildCounterProductDetail = 0; |
+buildProductDetail() { |
+ var o = new api.ProductDetail(); |
+ buildCounterProductDetail++; |
+ if (buildCounterProductDetail < 3) { |
+ o.attributeName = "foo"; |
+ o.attributeValue = "foo"; |
+ o.sectionName = "foo"; |
+ } |
+ buildCounterProductDetail--; |
+ return o; |
+} |
+ |
+checkProductDetail(api.ProductDetail o) { |
+ buildCounterProductDetail++; |
+ if (buildCounterProductDetail < 3) { |
+ unittest.expect(o.attributeName, unittest.equals('foo')); |
+ unittest.expect(o.attributeValue, unittest.equals('foo')); |
+ unittest.expect(o.sectionName, unittest.equals('foo')); |
+ } |
+ buildCounterProductDetail--; |
+} |
+ |
main() { |
unittest.group("obj-schema-Attributes", () { |
@@ -243,6 +477,42 @@ main() { |
}); |
+ unittest.group("obj-schema-Capacity", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildCapacity(); |
+ var od = new api.Capacity.fromJson(o.toJson()); |
+ checkCapacity(od); |
+ }); |
+ }); |
+ |
+ |
+ unittest.group("obj-schema-Count", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildCount(); |
+ var od = new api.Count.fromJson(o.toJson()); |
+ checkCount(od); |
+ }); |
+ }); |
+ |
+ |
+ unittest.group("obj-schema-FeatureDescription", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildFeatureDescription(); |
+ var od = new api.FeatureDescription.fromJson(o.toJson()); |
+ checkFeatureDescription(od); |
+ }); |
+ }); |
+ |
+ |
+ unittest.group("obj-schema-Image", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildImage(); |
+ var od = new api.Image.fromJson(o.toJson()); |
+ checkImage(od); |
+ }); |
+ }); |
+ |
+ |
unittest.group("obj-schema-Issue", () { |
unittest.test("to-json--from-json", () { |
var o = buildIssue(); |
@@ -261,6 +531,15 @@ main() { |
}); |
+ unittest.group("obj-schema-Price", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildPrice(); |
+ var od = new api.Price.fromJson(o.toJson()); |
+ checkPrice(od); |
+ }); |
+ }); |
+ |
+ |
unittest.group("obj-schema-Product", () { |
unittest.test("to-json--from-json", () { |
var o = buildProduct(); |
@@ -270,6 +549,15 @@ main() { |
}); |
+ unittest.group("obj-schema-ProductDetail", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildProductDetail(); |
+ var od = new api.ProductDetail.fromJson(o.toJson()); |
+ checkProductDetail(od); |
+ }); |
+ }); |
+ |
+ |
unittest.group("resource-AccountsProductsResourceApi", () { |
unittest.test("method--get", () { |