From 5b57c0fdb81bae87ca487e1d0087f8927b3fd07f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 7 Dec 2015 10:09:08 +1300 Subject: Replace factory method with reflection --- test/org/traccar/web/JsonConverterTest.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'test/org/traccar') diff --git a/test/org/traccar/web/JsonConverterTest.java b/test/org/traccar/web/JsonConverterTest.java index 2a0055f54..8607d49ee 100644 --- a/test/org/traccar/web/JsonConverterTest.java +++ b/test/org/traccar/web/JsonConverterTest.java @@ -5,7 +5,6 @@ import java.text.ParseException; import java.util.Date; import static org.junit.Assert.assertEquals; import org.junit.Test; -import org.traccar.model.Factory; public class JsonConverterTest { @@ -30,12 +29,7 @@ public class JsonConverterTest { } - public static class Primitives implements Factory { - - @Override - public Primitives create() { - return new Primitives(); - } + public static class Primitives { private boolean b; public boolean getBoolean() { return b; } -- cgit v1.2.3