From 9b90c590361d2ffa361ad7a0f35e6b94dfb4db66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Jo=C5=84ski?= Date: Wed, 23 Nov 2016 18:15:55 +0100 Subject: [PATCH] #143. Save-actions plugin mess revert --- .../internal/tester/AbstractTester.java | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/src/main/java/pl/pojo/tester/internal/tester/AbstractTester.java b/src/main/java/pl/pojo/tester/internal/tester/AbstractTester.java index 9158a579..b21a2dd7 100644 --- a/src/main/java/pl/pojo/tester/internal/tester/AbstractTester.java +++ b/src/main/java/pl/pojo/tester/internal/tester/AbstractTester.java @@ -19,29 +19,20 @@ public abstract class AbstractTester { - new + final TestAssertions testAssertions = new TestAssertions(); + ObjectGenerator objectGenerator; + private MultiValuedMap, ConstructorParameters> constructorParameters = new ArrayListValuedHashMap<>(); + private AbstractFieldValueChanger fieldValuesChanger = DefaultFieldValueChanger.INSTANCE; - final TestAsserti - estAsserti -ObjectGenerator obje dMap< - public AbstractTe - t eneCl ss ator;ons = private Multi - ConstructorParamet rs, constructorPar m> private AbstractFieldValueChanger fieldValuesChanger = DefaultFieldValueChanger.INSTANCE; ters = new ArrayListValuedHashMap< - - r() -{ + public AbstractTester() { this(DefaultFieldValueChanger.INSTANCE); } - public AbstractTester(final AbstractFieldValueChanger abstractFieldValueChanger) { - objectGenerator = new ObjectGenerator(abstractFieldValueChanger, constructorParamet rs); + objectGenerator = new ObjectGenerator(abstractFieldValueChanger, constructorParameters); } -TestAsserti - ; - public void test(final Class clazz) { final Predicate predicateAcceptingAllFields = FieldPredicate.includeAllFields(clazz); test(clazz, predicateAcceptingAllFields);