aboutsummaryrefslogtreecommitdiff
path: root/test/org/traccar/web/JsonConverterTest.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-12-07 10:09:08 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-12-07 10:09:08 +1300
commit5b57c0fdb81bae87ca487e1d0087f8927b3fd07f (patch)
treec3733bca54002ca694b6d7b83b147de87212c5eb /test/org/traccar/web/JsonConverterTest.java
parent33b2a5c9ab70ffe7bbdd074ce430920d2a0d3941 (diff)
downloadtrackermap-server-5b57c0fdb81bae87ca487e1d0087f8927b3fd07f.tar.gz
trackermap-server-5b57c0fdb81bae87ca487e1d0087f8927b3fd07f.tar.bz2
trackermap-server-5b57c0fdb81bae87ca487e1d0087f8927b3fd07f.zip
Replace factory method with reflection
Diffstat (limited to 'test/org/traccar/web/JsonConverterTest.java')
-rw-r--r--test/org/traccar/web/JsonConverterTest.java8
1 files changed, 1 insertions, 7 deletions
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; }