Add zero length test

This commit is contained in:
Gary Russell
2011-02-01 11:29:47 -05:00
parent 6df975f769
commit f91e7227ed

View File

@@ -48,6 +48,13 @@ public class TcpClientServerDemoTest {
assertEquals("echo:Hello world!", result);
}
@Test
public void testZeroLength() {
String result = gw.send("");
System.out.println(result);
assertEquals("echo:", result);
}
@Test
public void testFail() {
String result = gw.send("FAIL");