(InputStream in)
| 33 | public class NettyTestUtil { |
| 34 | |
| 35 | static String toString(InputStream in) throws Exception { |
| 36 | byte[] bytes = new byte[in.available()]; |
| 37 | ByteStreams.readFully(in, bytes); |
| 38 | return new String(bytes, UTF_8); |
| 39 | } |
| 40 | |
| 41 | static ByteBuf messageFrame(String message) throws Exception { |
| 42 | ByteArrayOutputStream os = new ByteArrayOutputStream(); |
no test coverage detected