From c5e2da7ee7c718f76b7340249646aa88274c945c Mon Sep 17 00:00:00 2001 From: Alexander Lozhkin Date: Mon, 16 Sep 2019 22:00:21 +0300 Subject: [PATCH] version bump --- lib/src/post_activation/fields_filler.dart | 2 +- pubspec.yaml | 2 +- test/test-classes.dart | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/src/post_activation/fields_filler.dart b/lib/src/post_activation/fields_filler.dart index d6f7f37..9627442 100644 --- a/lib/src/post_activation/fields_filler.dart +++ b/lib/src/post_activation/fields_filler.dart @@ -36,7 +36,7 @@ class FieldsFiller { name = name.substring(0, name.length - 1); var symbol = MirrorSystem.getSymbol(name); - var value = ctx.create(setter.returnType.reflectedType, ctx); + var value = ctx.create(setter.parameters.first.type.reflectedType, ctx); reflected.setField(symbol, value); } } diff --git a/pubspec.yaml b/pubspec.yaml index 5b44f32..9550f9d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: activatory description: Test data generator aimed to simplify Test-Driven Development with Dart -version: 0.0.20 +version: 0.0.21 homepage: https://github.com/syberside/Activatory author: syberside diff --git a/test/test-classes.dart b/test/test-classes.dart index 5be2205..1e62cbd 100644 --- a/test/test-classes.dart +++ b/test/test-classes.dart @@ -56,7 +56,6 @@ class DefaultPositionalValues { final String _notNullString; final PrimitiveComplexObject _notSetObject; final PrimitiveComplexObject _nullSetObject; - final Object _a; DefaultPositionalValues([this._notSetObject, this._nullSetObject = null, this._nullSetString = null, this._notNullString = defaultStringValue]); @@ -290,5 +289,5 @@ class FiledsWithPublicSetters { String get publicProperty => _publicProperty; - String set publicProperty(String value) => _publicProperty = value; + void set publicProperty(String value) => _publicProperty = value; } \ No newline at end of file