aboutsummaryrefslogtreecommitdiff
path: root/test/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-04 12:07:35 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-04 12:07:35 +1300
commit3e30b12b995c2f219625b957bfaac4e8bf92c8fc (patch)
tree409b9477a867e0b329f953ebc56bb7ac23fb43c0 /test/org
parente7b586030222ed2bae3f9f2f3f86486aeabc7794 (diff)
downloadtrackermap-server-3e30b12b995c2f219625b957bfaac4e8bf92c8fc.tar.gz
trackermap-server-3e30b12b995c2f219625b957bfaac4e8bf92c8fc.tar.bz2
trackermap-server-3e30b12b995c2f219625b957bfaac4e8bf92c8fc.zip
Fix unit tests code formatting
Diffstat (limited to 'test/org')
-rw-r--r--test/org/traccar/protocol/GotopProtocolDecoderTest.java6
-rw-r--r--test/org/traccar/protocol/Gt02ProtocolDecoderTest.java5
-rw-r--r--test/org/traccar/protocol/IntellitracProtocolDecoderTest.java3
-rw-r--r--test/org/traccar/protocol/MiniFinderProtocolDecoderTest.java3
-rw-r--r--test/org/traccar/protocol/SuntechProtocolDecoderTest.java3
-rw-r--r--test/org/traccar/protocol/Tk102ProtocolDecoderTest.java3
-rw-r--r--test/org/traccar/protocol/Tr20ProtocolDecoderTest.java3
-rw-r--r--test/org/traccar/protocol/TrackboxProtocolDecoderTest.java3
8 files changed, 18 insertions, 11 deletions
diff --git a/test/org/traccar/protocol/GotopProtocolDecoderTest.java b/test/org/traccar/protocol/GotopProtocolDecoderTest.java
index dcafd5add..21c32d86e 100644
--- a/test/org/traccar/protocol/GotopProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/GotopProtocolDecoderTest.java
@@ -10,9 +10,11 @@ public class GotopProtocolDecoderTest extends ProtocolDecoderTest {
GotopProtocolDecoder decoder = new GotopProtocolDecoder(new GotopProtocol());
- verifyNothing(decoder, text( ""));
+ verifyNothing(decoder, text(
+ ""));
- verifyNothing(decoder, text( "353327020412763,CMD-X"));
+ verifyNothing(decoder, text(
+ "353327020412763,CMD-X"));
verifyPosition(decoder, text(
"013226009991924,CMD-T,A,DATE:130802,TIME:153721,LAT:25.9757433S,LOT:028.1087816E,Speed:000.0,X-X-X-X-81-26,000,65501-00A0-4B8E"));
diff --git a/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java b/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java
index 76590fe3f..4f086d4f3 100644
--- a/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Gt02ProtocolDecoderTest.java
@@ -1,9 +1,7 @@
package org.traccar.protocol;
-import org.jboss.netty.buffer.ChannelBuffers;
import org.junit.Test;
import org.traccar.ProtocolDecoderTest;
-import org.traccar.helper.ChannelBufferTools;
public class Gt02ProtocolDecoderTest extends ProtocolDecoderTest {
@@ -13,7 +11,8 @@ public class Gt02ProtocolDecoderTest extends ProtocolDecoderTest {
Gt02ProtocolDecoder decoder = new Gt02ProtocolDecoder(new Gt02Protocol());
verifyPosition(decoder, binary(
- "68682500000123456789012345000110010101010101026B3F3E026B3F3E000000000000000000010D0A"));
+ "68682500000123456789012345000110010101010101026B3F3E026B3F3E000000000000000000010D0A"),
+ position("2001-01-01 01:01:01.000", true, -22.54610, -22.54610));
verifyNothing(decoder, binary(
"6868110603035889905101276600001a0402292d0d0a"));
diff --git a/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java b/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
index 9cba712bb..aace40f15 100644
--- a/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/IntellitracProtocolDecoderTest.java
@@ -10,7 +10,8 @@ public class IntellitracProtocolDecoderTest extends ProtocolDecoderTest {
IntellitracProtocolDecoder decoder = new IntellitracProtocolDecoder(new IntellitracProtocol());
- verifyNothing(decoder, text( "$OK:TRACKING"));
+ verifyNothing(decoder, text(
+ "$OK:TRACKING"));
verifyPosition(decoder, text(
"101000001,20100304075545,121.64547,25.06200,0,0,61,7,2,1,0,0.046,0.000,20100304075546,0"));
diff --git a/test/org/traccar/protocol/MiniFinderProtocolDecoderTest.java b/test/org/traccar/protocol/MiniFinderProtocolDecoderTest.java
index 5f6add6c5..7ac97c6f6 100644
--- a/test/org/traccar/protocol/MiniFinderProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/MiniFinderProtocolDecoderTest.java
@@ -10,7 +10,8 @@ public class MiniFinderProtocolDecoderTest extends ProtocolDecoderTest {
MiniFinderProtocolDecoder decoder = new MiniFinderProtocolDecoder(new MiniFinderProtocol());
- verifyNothing(decoder, text( "!1,860719020212696"));
+ verifyNothing(decoder, text(
+ "!1,860719020212696"));
verifyPosition(decoder, text(
"!D,22/2/14,13:40:58,56.899601,14.811541,0,0,1,176.0,98,5,16,0"));
diff --git a/test/org/traccar/protocol/SuntechProtocolDecoderTest.java b/test/org/traccar/protocol/SuntechProtocolDecoderTest.java
index 54cc77d6c..1632b391a 100644
--- a/test/org/traccar/protocol/SuntechProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/SuntechProtocolDecoderTest.java
@@ -10,7 +10,8 @@ public class SuntechProtocolDecoderTest extends ProtocolDecoderTest {
SuntechProtocolDecoder decoder = new SuntechProtocolDecoder(new SuntechProtocol());
- verifyNothing(decoder, text( "SA200ALV;317652"));
+ verifyNothing(decoder, text(
+ "SA200ALV;317652"));
verifyPosition(decoder, text(
"ST910;Alert;123456;410;20141018;18:30:12;+37.478774;+126.889690;000.000;000.00;0;4.0;1;6002"));
diff --git a/test/org/traccar/protocol/Tk102ProtocolDecoderTest.java b/test/org/traccar/protocol/Tk102ProtocolDecoderTest.java
index fd8033902..7d34d8383 100644
--- a/test/org/traccar/protocol/Tk102ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Tk102ProtocolDecoderTest.java
@@ -10,7 +10,8 @@ public class Tk102ProtocolDecoderTest extends ProtocolDecoderTest {
Tk102ProtocolDecoder decoder = new Tk102ProtocolDecoder(new Tk102Protocol());
- verifyNothing(decoder, text( ""));
+ verifyNothing(decoder, text(
+ ""));
verifyNothing(decoder, text(
"[!0000000081r(353327023367238,TK102-W998_01_V1.1.001_130219,255,001,255,001,0,100,100,0,internet,0000,0000,0,0,255,0,4,1,11,00)"));
diff --git a/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java b/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java
index ccf1bb2fd..11d7847c2 100644
--- a/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/Tr20ProtocolDecoderTest.java
@@ -10,7 +10,8 @@ public class Tr20ProtocolDecoderTest extends ProtocolDecoderTest {
Tr20ProtocolDecoder decoder = new Tr20ProtocolDecoder(new Tr20Protocol());
- verifyNothing(decoder, text( "%%TRACKPRO01,1"));
+ verifyNothing(decoder, text(
+ "%%TRACKPRO01,1"));
verifyPosition(decoder, text(
"%%TR-10,A,050916070549,N2240.8887E11359.2994,0,000,NA,D3800000,150,CFG:resend|"),
diff --git a/test/org/traccar/protocol/TrackboxProtocolDecoderTest.java b/test/org/traccar/protocol/TrackboxProtocolDecoderTest.java
index a9987712c..697c1ff66 100644
--- a/test/org/traccar/protocol/TrackboxProtocolDecoderTest.java
+++ b/test/org/traccar/protocol/TrackboxProtocolDecoderTest.java
@@ -10,7 +10,8 @@ public class TrackboxProtocolDecoderTest extends ProtocolDecoderTest {
TrackboxProtocolDecoder decoder = new TrackboxProtocolDecoder(new TrackboxProtocol());
- verifyNothing(decoder, text( "a=connect&v=11&i=111111111111111"));
+ verifyNothing(decoder, text(
+ "a=connect&v=11&i=111111111111111"));
verifyPosition(decoder, text(
"183457.999,5126.0247N,00002.8686E,5.2,70.4,3,57.63,32.11,17.32,150507,05"),