diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-11-09 19:01:19 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-11-09 19:01:19 +1300 |
commit | cf0565caceee6856328e481dd23600ed2590c88a (patch) | |
tree | 9d2cc8cf8d3eb27b36412eb492ad702581891f1c /test/org/traccar/protocol/SyrusProtocolDecoderTest.java | |
parent | f9ecee5b732b0c82c8a95bebdb5e275ea479cccc (diff) | |
download | trackermap-server-cf0565caceee6856328e481dd23600ed2590c88a.tar.gz trackermap-server-cf0565caceee6856328e481dd23600ed2590c88a.tar.bz2 trackermap-server-cf0565caceee6856328e481dd23600ed2590c88a.zip |
Improve unit test verification
Diffstat (limited to 'test/org/traccar/protocol/SyrusProtocolDecoderTest.java')
-rw-r--r-- | test/org/traccar/protocol/SyrusProtocolDecoderTest.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/test/org/traccar/protocol/SyrusProtocolDecoderTest.java b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java index e257b07d9..fa48ce286 100644 --- a/test/org/traccar/protocol/SyrusProtocolDecoderTest.java +++ b/test/org/traccar/protocol/SyrusProtocolDecoderTest.java @@ -1,6 +1,7 @@ package org.traccar.protocol; -import static org.junit.Assert.assertNotNull; +import org.traccar.helper.TestDataManager; +import static org.traccar.helper.DecoderVerifier.verify; import org.junit.Test; public class SyrusProtocolDecoderTest { @@ -11,16 +12,16 @@ public class SyrusProtocolDecoderTest { SyrusProtocolDecoder decoder = new SyrusProtocolDecoder(null); decoder.setDataManager(new TestDataManager()); - assertNotNull(decoder.decode(null, null, - ">RPV15714+3739438-1220384601512612;ID=1234;*7F")); + verify(decoder.decode(null, null, + ">RPV00000+3739438-1220384601512612;ID=1234;*7F")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, "\r\n>REV691615354941+3570173+1397742703203212;ID=Test")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, ">REV481599462982+2578391-0802945201228512;ID=Test")); - assertNotNull(decoder.decode(null, null, + verify(decoder.decode(null, null, ">REV131756153215+3359479-0075299001031332;VO=10568798;IO=310;SV=10;BL=4190;CV09=0;AD=0;AL=+47;ID=356612021059680")); } |