package water; import org.junit.Test; import java.io.Serializable; import static org.junit.Assert.*; /** * Test for AutoBuffer. Better late than never. * * Created by vpatryshev on 2/24/17. */ public class AutoBufferTest { @Test public void testIsClosed() throws Exception { } @Test public void testClose() throws Exception { } @Test public void testDrainClose() throws Exception { } @Test public void testHasTCP() throws Exception { } @Test public void testSize() throws Exception { } @Test public void testPosition() throws Exception { } @Test public void testPosition1() throws Exception { } @Test public void testSkip() throws Exception { } @Test public void testBuf() throws Exception { } @Test public void testBufClose() throws Exception { } @Test public void testClearForWriting() throws Exception { } @Test public void testFlipForReading() throws Exception { } @Test public void testGetStr() throws Exception { } @Test public void testGetZ() throws Exception { } @Test public void testGet1() throws Exception { } @Test public void testGet1U() throws Exception { } @Test public void testGet2() throws Exception { } @Test public void testGet2s() throws Exception { } @Test public void testGet3() throws Exception { } @Test public void testGet4() throws Exception { } @Test public void testGet4f() throws Exception { } @Test public void testGet8() throws Exception { } @Test public void testGet8d() throws Exception { } @Test public void testGet1U1() throws Exception { } @Test public void testGet41() throws Exception { } @Test public void testGet81() throws Exception { } @Test public void testPutZ() throws Exception { } @Test public void testPut1() throws Exception { } @Test public void testPut2() throws Exception { } @Test public void testPut21() throws Exception { } @Test public void testPut2s() throws Exception { } @Test public void testPut3() throws Exception { } @Test public void testPut4() throws Exception { } @Test public void testPut4f() throws Exception { } @Test public void testPut8() throws Exception { } @Test public void testPut8d() throws Exception { } @Test public void testPut() throws Exception { } @Test public void testGet() throws Exception { } @Test public void testGet5() throws Exception { } @Test public void testPutKey() throws Exception { } @Test public void testGetKey() throws Exception { } @Test public void testGetKey1() throws Exception { } @Test public void testPutInt() throws Exception { } @Test public void testGetInt() throws Exception { } @Test public void testPutZA() throws Exception { } @Test public void testGetZA() throws Exception { } @Test public void testPutAEnum() throws Exception { } @Test public void testGetAEnum() throws Exception { } @Test public void testPutA() throws Exception { } @Test public void testPutAA() throws Exception { } @Test public void testPutAAA() throws Exception { } @Test public void testGetA() throws Exception { } @Test public void testGetAA() throws Exception { } @Test public void testGetAAA() throws Exception { } @Test public void testPutAStr() throws Exception { } @Test public void testGetAStr() throws Exception { } @Test public void testPutAAStr() throws Exception { } @Test public void testGetAAStr() throws Exception { } @Test public void testRead() throws Exception { } @Test public void testGetCtrl() throws Exception { } @Test public void testGetPort() throws Exception { } @Test public void testGetTask() throws Exception { } @Test public void testGetFlag() throws Exception { } @Test public void testPutUdp() throws Exception { } @Test public void testPutTask() throws Exception { } @Test public void testPutTask1() throws Exception { } @Test public void testGetAZ() throws Exception { } @Test public void testGetA1() throws Exception { } @Test public void testGetA11() throws Exception { } @Test public void testGetA2() throws Exception { } @Test public void testGetA4() throws Exception { } @Test public void testGetA4f() throws Exception { } @Test public void testGetA8() throws Exception { } @Test public void testGetA8d() throws Exception { } @Test public void testGetAA1() throws Exception { } @Test public void testGetAA2() throws Exception { } @Test public void testGetAA4() throws Exception { } @Test public void testGetAA4f() throws Exception { } @Test public void testGetAA8() throws Exception { } @Test public void testGetAA8d() throws Exception { } @Test public void testGetAAA4() throws Exception { } @Test public void testGetAAA8() throws Exception { } @Test public void testGetAAA8d() throws Exception { } @Test public void testGetStr1() throws Exception { } @Test public void testGetEnum() throws Exception { } @Test public void testPutAZ() throws Exception { } @Test public void testPutA1() throws Exception { } @Test public void testPutA11() throws Exception { } @Test public void testPutA12() throws Exception { } @Test public void testPutA2() throws Exception { } @Test public void testPutA4() throws Exception { } @Test public void testPutA8() throws Exception { } @Test public void testPutA4f() throws Exception { } @Test public void testPutA8d() throws Exception { } @Test public void testPutAA1() throws Exception { } @Test public void testPutAA2() throws Exception { } @Test public void testPutAA4() throws Exception { } @Test public void testPutAA4f() throws Exception { } @Test public void testPutAA8() throws Exception { } @Test public void testPutAA8d() throws Exception { } @Test public void testPutAAA4() throws Exception { } @Test public void testPutAAA8() throws Exception { } @Test public void testPutAAA8d() throws Exception { } @Test public void testPutStr() throws Exception { } @Test public void testPutEnum() throws Exception { } @Test public void testJavaSerializeWritePojo() throws Exception { } @Test public void testJavaSerializeReadPojo() throws Exception { } static class XYZZY implements Serializable { int i = 1; String s = "hi"; } @Test public void testNameOfClass() throws Exception { byte[] bytes = AutoBuffer.javaSerializeWritePojo(new XYZZY()); assertEquals("water.AutoBufferTest$XYZZY", AutoBuffer.nameOfClass(bytes)); bytes[7] = 127; assertEquals("water.AutoBufferTest$XYZZY\ufffd\27\142\51\140\ufffd\ufffd\174\2\0\2I\0\1", AutoBuffer.nameOfClass(bytes)); bytes[7] = 1; assertEquals("wat", AutoBuffer.nameOfClass(bytes)); bytes[7] = -10; assertEquals("wat", AutoBuffer.nameOfClass(bytes)); assertEquals("(null)", AutoBuffer.nameOfClass(null)); assertEquals("(no name)", AutoBuffer.nameOfClass(new byte[]{0,0,0,0,0})); } @Test public void testPutSer() throws Exception { } @Test public void testPutASer() throws Exception { } @Test public void testPutAASer() throws Exception { } @Test public void testPutAAASer() throws Exception { } @Test public void testGetSer() throws Exception { } @Test public void testGetSer1() throws Exception { } @Test public void testGetASer() throws Exception { } @Test public void testGetAASer() throws Exception { } @Test public void testGetAAASer() throws Exception { } @Test public void testPutJNULL() throws Exception { } @Test public void testPutJSONStrUnquoted() throws Exception { } @Test public void testPutJSONStrUnquoted1() throws Exception { } @Test public void testPutJSONName() throws Exception { } @Test public void testPutJSONStr() throws Exception { } @Test public void testPutJSONAStr() throws Exception { } @Test public void testPutJSONStr1() throws Exception { } @Test public void testPutJSONAStr1() throws Exception { } @Test public void testPutJSONAAStr() throws Exception { } @Test public void testPutJSONSer() throws Exception { } @Test public void testPutJSONASer() throws Exception { } @Test public void testPutJSONAASer() throws Exception { } @Test public void testPutJSONAAASer() throws Exception { } @Test public void testPutJSONAZ() throws Exception { } @Test public void testPutJSON() throws Exception { } @Test public void testPutJSONA() throws Exception { } @Test public void testPutJSONAA() throws Exception { } @Test public void testPutJSONAAA() throws Exception { } @Test public void testPutJSON1() throws Exception { } @Test public void testPutJSONA1() throws Exception { } @Test public void testPutJSONAA1() throws Exception { } @Test public void testPutJSONAAA1() throws Exception { } @Test public void testPutJSONZ() throws Exception { } @Test public void testPutJSON11() throws Exception { } @Test public void testPutJSONA11() throws Exception { } @Test public void testPutJSON12() throws Exception { } @Test public void testPutJSONA12() throws Exception { } @Test public void testPutJSONAA11() throws Exception { } @Test public void testPutJSONAEnum() throws Exception { } @Test public void testPutJSONAEnum1() throws Exception { } @Test public void testPutJSON2() throws Exception { } @Test public void testPutJSON21() throws Exception { } @Test public void testPutJSON22() throws Exception { } @Test public void testPutJSON23() throws Exception { } @Test public void testPutJSONA2() throws Exception { } @Test public void testPutJSONA21() throws Exception { } @Test public void testPutJSON8() throws Exception { } @Test public void testPutJSONA8() throws Exception { } @Test public void testPutJSONAA8() throws Exception { } @Test public void testPutJSONAAA8() throws Exception { } @Test public void testPutJSONEnum() throws Exception { } @Test public void testPutJSON81() throws Exception { } @Test public void testPutJSONEnum1() throws Exception { } @Test public void testPutJSONA81() throws Exception { } @Test public void testPutJSONAA81() throws Exception { } @Test public void testPutJSONAAA81() throws Exception { } @Test public void testPutJSON4() throws Exception { } @Test public void testPutJSONA4() throws Exception { } @Test public void testPutJSONAA4() throws Exception { } @Test public void testPutJSONAAA4() throws Exception { } @Test public void testPutJSON41() throws Exception { } @Test public void testPutJSONA41() throws Exception { } @Test public void testPutJSONAA41() throws Exception { } @Test public void testPutJSONAAA41() throws Exception { } @Test public void testPutJSON4f() throws Exception { } @Test public void testPutJSON4f1() throws Exception { } @Test public void testPutJSONA4f() throws Exception { } @Test public void testPutJSONA4f1() throws Exception { } @Test public void testPutJSONAA4f() throws Exception { } @Test public void testPutJSON8d() throws Exception { } @Test public void testPutJSON8d1() throws Exception { } @Test public void testPutJSONA8d() throws Exception { } @Test public void testPutJSONAA8d() throws Exception { } @Test public void testPutJSONAAA8d() throws Exception { } @Test public void testPutJSONA8d1() throws Exception { } @Test public void testPutJSONAA8d1() throws Exception { } @Test public void testPutJSONAAA8d1() throws Exception { } }