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