Index: generated/googleapis/test/consumersurveys/v2_test.dart |
diff --git a/generated/googleapis/test/consumersurveys/v2_test.dart b/generated/googleapis/test/consumersurveys/v2_test.dart |
index 14b1fe857d58c952e83912d9f3b8659725e1c5c3..610d09f6d5d1ca562dc489b951e0cc19ec81f4e9 100644 |
--- a/generated/googleapis/test/consumersurveys/v2_test.dart |
+++ b/generated/googleapis/test/consumersurveys/v2_test.dart |
@@ -278,6 +278,7 @@ buildSurvey() { |
o.description = "foo"; |
o.owners = buildUnnamed25(); |
o.questions = buildUnnamed26(); |
+ o.rejectionReason = buildSurveyRejection(); |
o.state = "foo"; |
o.surveyUrlId = "foo"; |
o.title = "foo"; |
@@ -296,6 +297,7 @@ checkSurvey(api.Survey o) { |
unittest.expect(o.description, unittest.equals('foo')); |
checkUnnamed25(o.owners); |
checkUnnamed26(o.questions); |
+ checkSurveyRejection(o.rejectionReason); |
unittest.expect(o.state, unittest.equals('foo')); |
unittest.expect(o.surveyUrlId, unittest.equals('foo')); |
unittest.expect(o.title, unittest.equals('foo')); |
@@ -514,6 +516,27 @@ checkSurveyQuestionImage(api.SurveyQuestionImage o) { |
buildCounterSurveyQuestionImage--; |
} |
+core.int buildCounterSurveyRejection = 0; |
+buildSurveyRejection() { |
+ var o = new api.SurveyRejection(); |
+ buildCounterSurveyRejection++; |
+ if (buildCounterSurveyRejection < 3) { |
+ o.explanation = "foo"; |
+ o.type = "foo"; |
+ } |
+ buildCounterSurveyRejection--; |
+ return o; |
+} |
+ |
+checkSurveyRejection(api.SurveyRejection o) { |
+ buildCounterSurveyRejection++; |
+ if (buildCounterSurveyRejection < 3) { |
+ unittest.expect(o.explanation, unittest.equals('foo')); |
+ unittest.expect(o.type, unittest.equals('foo')); |
+ } |
+ buildCounterSurveyRejection--; |
+} |
+ |
core.int buildCounterSurveyResults = 0; |
buildSurveyResults() { |
var o = new api.SurveyResults(); |
@@ -775,6 +798,15 @@ main() { |
}); |
+ unittest.group("obj-schema-SurveyRejection", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSurveyRejection(); |
+ var od = new api.SurveyRejection.fromJson(o.toJson()); |
+ checkSurveyRejection(od); |
+ }); |
+ }); |
+ |
+ |
unittest.group("obj-schema-SurveyResults", () { |
unittest.test("to-json--from-json", () { |
var o = buildSurveyResults(); |