@@ -89,6 +89,10 @@ TestModel:
89
89
}
90
90
91
91
expect (error, isNotNull);
92
+ expect (error, isArgumentError);
93
+ if (error is ArgumentError ) {
94
+ expect (error.message, 'required is removed, follow the migration to version 7.0.0' );
95
+ }
92
96
});
93
97
94
98
test ('Test List not supported anymore' , () {
@@ -111,6 +115,10 @@ TestModel:
111
115
error = e;
112
116
}
113
117
expect (error, isNotNull);
118
+ expect (error, isException);
119
+ if (error is Exception ) {
120
+ expect (error.toString (), 'Exception: Could not generate all models. `array` is not added to the config file' );
121
+ }
114
122
});
115
123
116
124
test ('Test Map not supported anymore' , () {
@@ -134,6 +142,10 @@ TestModel:
134
142
error = e;
135
143
}
136
144
expect (error, isNotNull);
145
+ expect (error, isException);
146
+ if (error is Exception ) {
147
+ expect (error.toString (), 'Exception: Could not generate all models. `map` is not added to the config file' );
148
+ }
137
149
});
138
150
139
151
test ('Test simple generic fields' , () {
0 commit comments