@@ -84,7 +84,7 @@ void _nonNullableTests(KitchenSinkFactory factory) {
84
84
85
85
void _nullableTests (KitchenSinkFactory factory ) {
86
86
void roundTripSink (KitchenSink p) {
87
- validateRoundTrip (p, factory .fromJson);
87
+ roundTripObject (p, factory .fromJson);
88
88
}
89
89
90
90
test ('nullable values are allowed in the nullable version' , () {
@@ -180,7 +180,7 @@ void _sharedTests(KitchenSinkFactory factory) {
180
180
181
181
test ('empty' , () {
182
182
final item = factory .ctor ();
183
- validateRoundTrip (item, factory .fromJson);
183
+ roundTripObject (item, factory .fromJson);
184
184
});
185
185
186
186
test ('list and map of DateTime - not null' , () {
@@ -189,7 +189,7 @@ void _sharedTests(KitchenSinkFactory factory) {
189
189
..dateTimeList = < DateTime > [now, now]
190
190
..objectDateTimeMap = < Object , DateTime > {'value' : now};
191
191
192
- validateRoundTrip (item, factory .fromJson);
192
+ roundTripObject (item, factory .fromJson);
193
193
});
194
194
195
195
test ('complex nested type - not null' , () {
@@ -207,7 +207,7 @@ void _sharedTests(KitchenSinkFactory factory) {
207
207
}
208
208
}
209
209
];
210
- validateRoundTrip (item, factory .fromJson);
210
+ roundTripObject (item, factory .fromJson);
211
211
});
212
212
213
213
test ('round trip valid, empty values' , () {
@@ -226,7 +226,7 @@ void _sharedTests(KitchenSinkFactory factory) {
226
226
227
227
final validInstance = factory .fromJson (values);
228
228
229
- validateRoundTrip (validInstance, factory .fromJson);
229
+ roundTripObject (validInstance, factory .fromJson);
230
230
});
231
231
232
232
test ('JSON keys should be defined in field/property order' , () {
@@ -240,7 +240,7 @@ void _sharedTests(KitchenSinkFactory factory) {
240
240
241
241
test ('valid values round-trip - json' , () {
242
242
final validInstance = factory .fromJson (validValues);
243
- validateRoundTrip (validInstance, factory .fromJson);
243
+ roundTripObject (validInstance, factory .fromJson);
244
244
});
245
245
}
246
246
0 commit comments