@@ -0,0 +1,1518 @@
+package org.q3df.test.demo;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.q3df.common.Const;%0Aimport org.q3df.common.Utils;%0Aimport org.q3df.common.msg.Q3HuffmanCoder;%0Aimport org.q3df.common.struct.EntityState;%0A%0A/**%0A * Created by michael on 16.06.17.%0A */%0Apublic class MessageTest %7B%0A%0A    @Test%0A    public void testReadDeltaEntity () %7B%0A        StringBuilder sb = new StringBuilder();%0A%0A        sb.append(%22E9E5E19F3F8D3A6BC758CDF7EE96C19DEF69CA59207A10759CF33D4D79B3CF3F%22);%0A        sb.append(%22D62493F91E69B4BBE74FFF246ABE19B8981A79D8F91F377BE4D3DB23DF93DFC5%22);%0A        sb.append(%22151DECD2ECE373D86CC887E0F6C83FE5CD8E861C6C7145CF762CEBFBC941D4AF%22);%0A        sb.append(%2281BE03800E431F07003E74FC8BDF316046B6CA0506D3116FC3AB7E1938C3CFE7%22);%0A        sb.append(%2295C67DFEB126073D9F57FA871E57C8DB389BDF5E6A3275505C21EE0D00000000%22);%0A        sb.append(%220000000000000000000000000000000000000000000000000000000000000000%22);%0A%0A        byte%5B%5D data = Utils.fromHex(sb.toString());%0A%0A        Q3HuffmanCoder.Decoder decoder = Q3HuffmanCoder.decoder(data);%0A        EntityState est = new EntityState();%0A%0A        int newnumber = decoder.readBits(Const.GENTITYNUM_BITS);%0A%0A        Assert.assertTrue(decoder.readDeltaEntity(est, newnumber));%0A%0A        Assert.assertEquals(0x45678912, est.pos.trTime);%0A//        Assert.assertEquals(0x78EFABCD, est.pos.trDuration);%0A//        Assert.assertEquals(0xBBCCDDEE, est.apos.trTime);%0A%0A//        apos.trDelta%5B1%5D = 7.33f;%0A%0A        Assert.assertEquals(7.33f, est.apos.trDelta.vect%5B1%5D, 0.001);%0A    %7D%0A%0A%7D%0A

test message read