|
|
@ -10,10 +10,10 @@ class JaggrabRequestDecoderTest { |
|
|
|
@Test |
|
|
|
@Test |
|
|
|
fun testDecode() { |
|
|
|
fun testDecode() { |
|
|
|
val channel = EmbeddedChannel(JaggrabRequestDecoder) |
|
|
|
val channel = EmbeddedChannel(JaggrabRequestDecoder) |
|
|
|
channel.writeInbound("JAGGRAB /runescape.pack200") |
|
|
|
channel.writeInbound("JAGGRAB runescape.pack200") |
|
|
|
|
|
|
|
|
|
|
|
val actual = channel.readInbound<JaggrabRequest>() |
|
|
|
val actual = channel.readInbound<JaggrabRequest>() |
|
|
|
assertEquals(JaggrabRequest("/runescape.pack200"), actual) |
|
|
|
assertEquals(JaggrabRequest("runescape.pack200"), actual) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|