Skip to content

Commit

Permalink
Merge pull request mrniko#202 from alim-akbashev/master
Browse files Browse the repository at this point in the history
fix tests after changes in 800128d
  • Loading branch information
Nikita Koksharov committed Feb 3, 2015
2 parents 800128d + 3f72c6f commit 9ac8038
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class DecoderBaseTest {

@Before
public void before() {
decoder = new PacketDecoder(new JacksonJsonSupport(), new NamespacesHub(new Configuration()), ackManager);
decoder = new PacketDecoder(new JacksonJsonSupport(), ackManager);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void testDecodeWithMessageIdAndAck() throws IOException {
public void testDecodeWithData() throws IOException {
JacksonJsonSupport jsonSupport = new JacksonJsonSupport();
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);
Assert.assertEquals(PacketType.EVENT, packet.getType());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class PayloadTest {

private final JacksonJsonSupport support = new JacksonJsonSupport();
private final PacketDecoder decoder = new PacketDecoder(support, new NamespacesHub(new Configuration()), null);
private final PacketDecoder decoder = new PacketDecoder(support, null);
private final PacketEncoder encoder = new PacketEncoder(new Configuration(), support);

@Test
Expand Down

0 comments on commit 9ac8038

Please sign in to comment.