1
2 package org.indy;
3
4 import java.io.InputStream;
5 import org.indy.util.StringList;
6 import org.indy.io.*;
7
8
9 public class TestTCPConnection {//extends ClientTestCase {
10 //
11 // public TestTCPConnection(String s) {
12 // super(s);
13 // }
14 //
15 // protected void setUp() {
16 // }
17 //
18 // protected void tearDown() {
19 // }
20 //
21 //
22 //
23 //
24 //
25 //
26 //
27 //
28 // public void testReadStream() {
29 ///* Connection idtcpconnection = new Connection(null);
30 // int byteCount1= 0;
31 // boolean readUntilDisconnect2= true;
32 // try {
33 // InputStream inputstreamRet = idtcpconnection.readStream(byteCount1, readUntilDisconnect2);
34 // /** @todo: Insert test code here. Use assertEquals(), for example.
35 // }
36 // catch(Exception e) {
37 // System.err.println("Exception thrown: "+e);
38 // }*/
39 // }
40 //
41 // public void testIsConnected() {
42 ///* Connection connection = new Connection();
43 //
44 // assertTrue("isConnect() returns false",!connection.isConnected());
45 //
46 // IOHandlerSocket handler = new IOHandlerSocket();
47 // connection.setIOHandler(handler);
48 // assertTrue("isConnect() returns false",!connection.isConnected());*/
49 // }
50 //
51 // public void testSetInterceptEnabled() {
52 // Connection idtcpconnection = new Connection();
53 // boolean en1= true;
54 // idtcpconnection.setInterceptEnabled(en1);
55 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
56 // }
57 // public void testReadLineWait1() {
58 // Connection idtcpconnection = new Connection();
59 // int failCount1= 0;
60 // try {
61 // String stringRet = idtcpconnection.readLineWait(failCount1);
62 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
63 // }
64 // catch(Exception e) {
65 // System.err.println("Exception thrown: "+e);
66 // }
67 // }
68 // public void testGetIntercept() {
69 // Connection idtcpconnection = new Connection();
70 // ConnectionIntercept idconnectioninterceptRet = idtcpconnection.getIntercept();
71 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
72 // }
73 // public void testSetIOHandler() {
74 // Connection idtcpconnection = new Connection();
75 // IOHandler handler1= null /*** @todo fill in non-null value */;
76 // idtcpconnection.setIOHandler(handler1);
77 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
78 // }
79 // public void testDisconnectSocket() {
80 // Connection idtcpconnection = new Connection();
81 // idtcpconnection.disconnectSocket();
82 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
83 // }
84 // public void testReadBuffer() {
85 // Connection idtcpconnection = new Connection();
86 // byte[] b1= null /*** @todo fill in non-null value */;
87 // int len2= 0;
88 // try {
89 // idtcpconnection.readBuffer(b1, len2);
90 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
91 // }
92 // catch(Exception e) {
93 // System.err.println("Exception thrown: "+e);
94 // }
95 // }
96 //
97 // public void testAllData() {
98 // Connection idtcpconnection = new Connection();
99 // try {
100 // String stringRet = idtcpconnection.allData();
101 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
102 // }
103 // catch(Exception e) {
104 // System.err.println("Exception thrown: "+e);
105 // }
106 // }
107 //
108 // public void testDisconnect() {
109 // Connection idtcpconnection = new Connection();
110 // try {
111 // idtcpconnection.disconnect();
112 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
113 // }
114 // catch(Exception e) {
115 // System.err.println("Exception thrown: "+e);
116 // }
117 // }
118 // public void testReadLong() {
119 // Connection idtcpconnection = new Connection();
120 // try {
121 // long longRet = idtcpconnection.readLong();
122 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
123 // }
124 // catch(Exception e) {
125 // System.err.println("Exception thrown: "+e);
126 // }
127 // }
128 //
129 // public void testReadLine1() {
130 // Connection idtcpconnection = new Connection();
131 // int timeout1= 0;
132 // int _maxLineLength2= 0;
133 // try {
134 // String stringRet = idtcpconnection.readLine(timeout1, _maxLineLength2);
135 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
136 // }
137 // catch(Exception e) {
138 // System.err.println("Exception thrown: "+e);
139 // }
140 // }
141 // public void testReadShort() {
142 // Connection idtcpconnection = new Connection();
143 // try {
144 // short shortRet = idtcpconnection.readShort();
145 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
146 // }
147 // catch(Exception e) {
148 // System.err.println("Exception thrown: "+e);
149 // }
150 // }
151 //
152 // public void testGetInternalResponse() {
153 // Connection idtcpconnection = new Connection();
154 // try {
155 // idtcpconnection.getInternalResponse();
156 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
157 // }
158 // catch(Exception e) {
159 // System.err.println("Exception thrown: "+e);
160 // }
161 // }
162 //
163 // public void testCapture1() {
164 // Connection idtcpconnection = new Connection();
165 // StringList strings1= null /*** @todo fill in non-null value */;
166 // String delim2= "STRING0";
167 // boolean isRFC3= true;
168 // try {
169 // int intRet = idtcpconnection.capture(strings1, delim2, isRFC3);
170 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
171 // }
172 // catch(Exception e) {
173 // System.err.println("Exception thrown: "+e);
174 // }
175 // }
176 //
177 //
178 //
179 //
180 //
181 //
182 // public void testCheckResponse() {
183 // Connection idtcpconnection = new Connection();
184 // int response1= 0;
185 // int[] allowedResponses2= null /*** @todo fill in non-null value */;
186 // try {
187 // int intRet = idtcpconnection.checkResponse(response1, allowedResponses2);
188 // /*** @todo: Insert test code here. Use assertEquals(), for example. */
189 // }
190 // catch(Exception e) {
191 // System.err.println("Exception thrown: "+e);
192 // }
193 // }
194 }
This page was automatically generated by Maven