GWTIO { public static Streamable.Output newOutput (Serializer szer, StringBuffer output) { return new ClientOutput(szer, output); } private  GWTIO(); static Streamable.Input newInput(Serializer szer, String data); static Streamable.Output newOutput(Serializer szer, StringBuffer output);  }
@Test public void testBasicTypesOutput () { StringBuffer buf = new StringBuffer(); IOTester.writeBasicTypes(GWTIO.newOutput(new TestSerializer(), buf)); assertEquals(IOTester.BT_OUT_PAYLOAD, buf.toString()); }
@Test public void testValueOutput () { StringBuffer buf = new StringBuffer(); IOTester.writeValue(GWTIO.newOutput(new TestSerializer(), buf)); assertEquals(IOTester.VALUE_OUT_PAYLOAD, buf.toString()); }
@Test public void testValuesOutput () { StringBuffer buf = new StringBuffer(); IOTester.writeValues(GWTIO.newOutput(new TestSerializer(), buf)); assertEquals(IOTester.VALUES_OUT_PAYLOAD, buf.toString()); }