package org.traccar.protocol;

import static org.junit.Assert.assertNotNull;
import org.junit.Test;

public class SyrusProtocolDecoderTest {

    @Test
    public void testDecode() throws Exception {

        SyrusProtocolDecoder decoder = new SyrusProtocolDecoder(null);
        decoder.setDataManager(new TestDataManager());

        assertNotNull(decoder.decode(null, null,
                ">RPV15714+3739438-1220384601512612;ID=1234;*7F"));

        assertNotNull(decoder.decode(null, null,
                "\r\n>REV691615354941+3570173+1397742703203212;ID=Test"));

        assertNotNull(decoder.decode(null, null,
                ">REV481599462982+2578391-0802945201228512;ID=Test"));

    }

}

@@ -679,23 +679,215 @@
 ;ID=Test%22));
+%0A        %0A        assertNotNull(decoder.decode(null, null,%0A                %22%3EREV131756153215+3359479-0075299001031332;VO=10568798;IO=310;SV=10;BL=4190;CV09=0;AD=0;AL=+47;ID=356612021059680%22));
 %0A%0A    %7D%0A%0A%7D%0A

Add Syrus test case