|
@ -51,7 +51,7 @@ public class DecoderEventPacketTest extends DecoderBaseTest { |
|
|
public void testDecodeWithData() throws IOException { |
|
|
public void testDecodeWithData() throws IOException { |
|
|
JacksonJsonSupport jsonSupport = new JacksonJsonSupport(); |
|
|
JacksonJsonSupport jsonSupport = new JacksonJsonSupport(); |
|
|
jsonSupport.addEventMapping("", "edwald", HashMap.class, Integer.class, String.class); |
|
|
jsonSupport.addEventMapping("", "edwald", HashMap.class, Integer.class, String.class); |
|
|
PacketDecoder decoder = new PacketDecoder(jsonSupport, new NamespacesHub(new Configuration()), ackManager); |
|
|
|
|
|
|
|
|
PacketDecoder decoder = new PacketDecoder(jsonSupport, ackManager); |
|
|
|
|
|
|
|
|
Packet packet = decoder.decodePacket("5:::{\"name\":\"edwald\",\"args\":[{\"a\": \"b\"},2,\"3\"]}", null); |
|
|
Packet packet = decoder.decodePacket("5:::{\"name\":\"edwald\",\"args\":[{\"a\": \"b\"},2,\"3\"]}", null); |
|
|
Assert.assertEquals(PacketType.EVENT, packet.getType()); |
|
|
Assert.assertEquals(PacketType.EVENT, packet.getType()); |
|
|