1   package test19;
2   
3   import java.util.LinkedList;
4   
5   import net.sourceforge.jparam.JParam;
6   import net.sourceforge.jparam.paramset.Param;
7   import net.sourceforge.jparam.paramset.iParam;
8   import net.sourceforge.jparam.paramset.ioParam;
9   import net.sourceforge.jparam.paramset.oParam;
10  import junit.ParamSetTestCase;
11  import junit.framework.Test;
12  import junit.framework.TestSuite;
13  
14  public class test19 {
15  
16  	public static Test suite() {
17  		TestSuite suite = new TestSuite("Test for test19");
18  		//$JUnit-BEGIN$
19  		suite.addTestSuite(test1.class);
20  		suite.addTestSuite(test2.class);
21  		suite.addTestSuite(test3.class);
22  		suite.addTestSuite(test4.class);
23  		suite.addTestSuite(test5.class);
24  		suite.addTestSuite(test6.class);
25  		suite.addTestSuite(test7.class);
26  		suite.addTestSuite(test8.class);
27  		suite.addTestSuite(test9.class);
28  		suite.addTestSuite(test10.class);
29  		suite.addTestSuite(test11.class);
30  		suite.addTestSuite(test12.class);
31  		suite.addTestSuite(test13.class);
32  		suite.addTestSuite(test14.class);
33  		suite.addTestSuite(test15.class);
34  		suite.addTestSuite(test16.class);
35  		suite.addTestSuite(test17.class);
36  		suite.addTestSuite(test18.class);
37  		//$JUnit-END$
38  		return suite;
39  	}
40  
41  	public static class test19_base extends ParamSetTestCase {
42  		Integer a = new Integer(5);
43  
44  		LinkedList b = new LinkedList();
45  
46  		Integer c;
47  
48  		Integer d;
49  
50  		String inputString;
51  
52  		String outputString;
53  
54  		public Param[] getInitParams() throws Exception {
55  			return new Param[] {
56  					new ioParam("avalon"),
57  					new ioParam("avalanche", JParam
58  							.parse("vector<string>([ one,two ])")),
59  					new iParam("input_only", new Integer(5)),
60  					new oParam("output_only", new Integer(17)), };
61  		}
62  
63  		public String[] getInput() {
64  			return new String[] { inputString };
65  		}
66  
67  		public Object[] getExpectedParameterValues() {
68  			//return new Param[]{a, b, c, d};
69  			return null;
70  		}
71  	}
72  
73  	public static class test1 extends test19_base {
74  		public test1() {
75  			inputString = "avalo=5 avalanc=[ a, b ]";
76  		}
77  	}
78  
79  	public static class test2 extends test19_base {
80  		public test2() {
81  			inputString = "avalo=5 avalanc=[ c, d ]";
82  		}
83  
84  		public void preInput() {
85  			ps.set_feedback_stream(System.out);
86  			ps.setOutput(System.out);
87  		}
88  	}
89  
90  	public static class test3 extends test19_base {
91  		public test3() {
92  			inputString = "avalo=5 avalanc=[ c, d ]";
93  		}
94  
95  		public void preInput() {
96  			ps.set_feedback_stream(System.out);
97  			ps.setOutput(System.out);
98  		}
99  
100 		public void postOutput() {
101 			ps.write_feedback();
102 		}
103 	}
104 
105 	public static class test4 extends test19_base {
106 		public test4() {
107 			inputString = "avalo=5 avalanc=[ c, d ]";
108 		}
109 
110 		public void preInput() {
111 			ps.set_feedback_stream(System.out);
112 			ps.setOutput(System.out);
113 			ps.feedback_enabled(true);
114 		}
115 
116 		public void postOutput() {
117 		}
118 	}
119 
120 	public static class test5 extends test19_base {
121 		public test5() {
122 			inputString = "avalo=5 avalanc=[ c, d ]";
123 		}
124 
125 		public void preInput() {
126 			ps.set_feedback_stream(System.out);
127 			ps.setOutput(System.out);
128 			ps.max_feedback_length(5);
129 			ps.feedback_enabled(true);
130 		}
131 
132 		public void postOutput() {
133 		}
134 	}
135 
136 	public static class test6 extends test19_base {
137 		public test6() {
138 			inputString = "avalo=5 avalanc=[ c, d ]";
139 		}
140 
141 		public void preInput() {
142 			ps.set_feedback_stream(System.out);
143 			ps.setOutput(System.out);
144 			ps.feedback_enabled(true);
145 			ps.max_feedback_length(20);
146 			ps.max_feedback_length(0);
147 		}
148 
149 		public void postOutput() {
150 		}
151 	}
152 
153 	public static class test7 extends test19_base {
154 		public test7() {
155 			inputString = "avalo=5 avalanc=[ c, d ]";
156 		}
157 
158 		public void preInput() {
159 			ps.set_feedback_stream(System.out);
160 			ps.setOutput(System.out);
161 			ps.feedback_enabled(true);
162 			ps.max_feedback_length(20);
163 			ps.max_feedback_length(0);
164 			ps.feedback_enabled(false);
165 		}
166 
167 		public void postOutput() {
168 		}
169 	}
170 
171 	public static class test8 extends test19_base {
172 		public test8() {
173 			inputString = "avalo=5 aval=[ c, d ]";
174 		}
175 
176 		public void preInput() {
177 			ps.set_feedback_stream(System.out);
178 			ps.setOutput(System.out);
179 			ps.feedback_enabled(true);
180 		}
181 
182 		public void postOutput() {
183 		}
184 	}
185 
186 	public static class test9 extends test19_base {
187 		public test9() {
188 			inputString = "avalo=5 aval=[ c, d ]";
189 		}
190 
191 		public void preInput() {
192 			ps.set_feedback_stream(System.out);
193 			ps.setOutput(System.out);
194 			ps.feedback_enabled(true);
195 			ps.warning_is_error(false);
196 		}
197 
198 		public void postOutput() {
199 		}
200 	}
201 
202 	public static class test10 extends test19_base {
203 		public test10() {
204 			inputString = "aval=5 avala=[ c, d ]";
205 		}
206 
207 		public void preInput() {
208 			ps.set_feedback_stream(System.out);
209 			ps.setOutput(System.out);
210 			ps.feedback_enabled(true);
211 			ps.warning_is_error(false);
212 		}
213 
214 		public void postOutput() {
215 		}
216 	}
217 
218 	public static class test11 extends test19_base {
219 		public test11() {
220 			inputString = "avalo=5 b=hello avala=[ c, d ]";
221 		}
222 
223 		public void preInput() {
224 			ps.set_feedback_stream(System.out);
225 			ps.setOutput(System.out);
226 			ps.feedback_enabled(true);
227 		}
228 
229 		public void postOutput() {
230 		}
231 	}
232 
233 	public static class test12 extends test19_base {
234 		public test12() {
235 			inputString = "avalo=5 b=hello avala=[ c, d ]";
236 		}
237 
238 		public void preInput() {
239 			ps.set_feedback_stream(System.out);
240 			ps.setOutput(System.out);
241 			ps.feedback_enabled(true);
242 			ps.warning_is_error(false);
243 		}
244 
245 		public void postOutput() {
246 		}
247 	}
248 
249 	public static class test13 extends test19_base {
250 		public test13() {
251 			inputString = "avalo=5 b=hello avala=[ c, d ]";
252 		}
253 
254 		public void preInput() {
255 			ps.set_feedback_stream(System.out);
256 			ps.setOutput(System.out);
257 			ps.feedback_enabled(true);
258 			ps.warning_is_error(false);
259 			ps.ignore_unexpected(true);
260 		}
261 
262 		public void postOutput() {
263 		}
264 	}
265 
266 	public static class test14 extends test19_base {
267 		public test14() {
268 			inputString = "avalo=5 b=hello avala=[ c, d ]";
269 		}
270 
271 		public void preInput() {
272 			ps.setOutput(System.out);
273 			ps.feedback_enabled(true);
274 			ps.warning_is_error(false);
275 			ps.ignore_unexpected(true);
276 			ps.warning_is_error(true);
277 		}
278 
279 		public void postOutput() {
280 		}
281 	}
282 
283 	public static class test15 extends test19_base {
284 		public test15() {
285 			inputString = "avalo=5";
286 		}
287 
288 		public void preInput() {
289 			ps.set_feedback_stream(System.out);
290 			ps.setOutput(System.out);
291 			ps.feedback_enabled(true);
292 		}
293 
294 		public void postOutput() {
295 		}
296 	}
297 
298 	public static class test16 extends test19_base {
299 		public test16() {
300 			inputString = "avalo=5";
301 		}
302 
303 		public void preInput() {
304 			ps.set_feedback_stream(System.out);
305 			ps.setOutput(System.out);
306 			ps.feedback_enabled(true);
307 			ps.warning_is_error(false);
308 		}
309 
310 		public void postOutput() {
311 		}
312 	}
313 
314 	public static class test17 extends test19_base {
315 		public test17() {
316 			inputString = "avala=[e,f,g]";
317 		}
318 
319 		public void preInput() {
320 			ps.set_feedback_stream(System.out);
321 			ps.setOutput(System.out);
322 			ps.feedback_enabled(true);
323 		}
324 
325 		public void postOutput() {
326 		}
327 	}
328 
329 	public static class test18 extends test19_base {
330 		public test18() {
331 		}
332 
333 		public String[] getInput() {
334 			return new String[] { "avala=:", "h" };
335 		}
336 
337 		public void preInput() {
338 			ps.set_feedback_stream(System.out);
339 			ps.setOutput(System.out);
340 			ps.feedback_enabled(true);
341 			ps.warning_is_error(false);
342 		}
343 
344 		public void postOutput() {
345 		}
346 	}
347 }