KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > servicemix > jbi > installation > ExtMockControl


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17 package org.apache.servicemix.jbi.installation;
18
19 import org.easymock.ArgumentsMatcher;
20 import org.easymock.MockControl;
21 import org.easymock.internal.Range;
22
23 import java.lang.reflect.InvocationHandler JavaDoc;
24 import java.lang.reflect.InvocationTargetException JavaDoc;
25 import java.lang.reflect.Method JavaDoc;
26 import java.lang.reflect.Proxy JavaDoc;
27
28 import junit.framework.AssertionFailedError;
29
30 public class ExtMockControl implements InvocationHandler JavaDoc {
31
32     private MockControl control;
33     private Class JavaDoc clazz;
34     private AssertionFailedError error;
35     private Object JavaDoc mock;
36     
37     public ExtMockControl(MockControl control, Class JavaDoc clazz) {
38         this.control = control;
39         this.clazz = clazz;
40     }
41     
42     public Object JavaDoc invoke(Object JavaDoc proxy, Method JavaDoc method, Object JavaDoc[] args) throws Throwable JavaDoc {
43         try {
44             return method.invoke(control.getMock(), args);
45         } catch (InvocationTargetException JavaDoc e) {
46             if (e.getCause() instanceof AssertionFailedError && error == null) {
47                 error = (AssertionFailedError) e.getCause();
48             }
49             throw e;
50         }
51     }
52     
53     public static ExtMockControl createControl(Class JavaDoc clazz) {
54         MockControl mock = MockControl.createControl(clazz);
55         return new ExtMockControl(mock, clazz);
56     }
57
58     /* (non-Javadoc)
59      * @see org.easymock.MockControl#expectAndDefaultReturn(boolean, boolean)
60      */

61     public void expectAndDefaultReturn(boolean arg0, boolean arg1) {
62         control.expectAndDefaultReturn(arg0, arg1);
63     }
64
65     /* (non-Javadoc)
66      * @see org.easymock.MockControl#expectAndDefaultReturn(double, double)
67      */

68     public void expectAndDefaultReturn(double arg0, double arg1) {
69         control.expectAndDefaultReturn(arg0, arg1);
70     }
71
72     /* (non-Javadoc)
73      * @see org.easymock.MockControl#expectAndDefaultReturn(float, float)
74      */

75     public void expectAndDefaultReturn(float arg0, float arg1) {
76         control.expectAndDefaultReturn(arg0, arg1);
77     }
78
79     /* (non-Javadoc)
80      * @see org.easymock.MockControl#expectAndDefaultReturn(long, long)
81      */

82     public void expectAndDefaultReturn(long arg0, long arg1) {
83         control.expectAndDefaultReturn(arg0, arg1);
84     }
85
86     /* (non-Javadoc)
87      * @see org.easymock.MockControl#expectAndDefaultReturn(java.lang.Object, java.lang.Object)
88      */

89     public void expectAndDefaultReturn(Object JavaDoc arg0, Object JavaDoc arg1) {
90         control.expectAndDefaultReturn(arg0, arg1);
91     }
92
93     /* (non-Javadoc)
94      * @see org.easymock.MockControl#expectAndDefaultThrow(boolean, java.lang.Throwable)
95      */

96     public void expectAndDefaultThrow(boolean arg0, Throwable JavaDoc arg1) {
97         control.expectAndDefaultThrow(arg0, arg1);
98     }
99
100     /* (non-Javadoc)
101      * @see org.easymock.MockControl#expectAndDefaultThrow(double, java.lang.Throwable)
102      */

103     public void expectAndDefaultThrow(double arg0, Throwable JavaDoc arg1) {
104         control.expectAndDefaultThrow(arg0, arg1);
105     }
106
107     /* (non-Javadoc)
108      * @see org.easymock.MockControl#expectAndDefaultThrow(float, java.lang.Throwable)
109      */

110     public void expectAndDefaultThrow(float arg0, Throwable JavaDoc arg1) {
111         control.expectAndDefaultThrow(arg0, arg1);
112     }
113
114     /* (non-Javadoc)
115      * @see org.easymock.MockControl#expectAndDefaultThrow(long, java.lang.Throwable)
116      */

117     public void expectAndDefaultThrow(long arg0, Throwable JavaDoc arg1) {
118         control.expectAndDefaultThrow(arg0, arg1);
119     }
120
121     /* (non-Javadoc)
122      * @see org.easymock.MockControl#expectAndDefaultThrow(java.lang.Object, java.lang.Throwable)
123      */

124     public void expectAndDefaultThrow(Object JavaDoc arg0, Throwable JavaDoc arg1) {
125         control.expectAndDefaultThrow(arg0, arg1);
126     }
127
128     /* (non-Javadoc)
129      * @see org.easymock.MockControl#expectAndReturn(boolean, boolean, int, int)
130      */

131     public void expectAndReturn(boolean arg0, boolean arg1, int arg2, int arg3) {
132         control.expectAndReturn(arg0, arg1, arg2, arg3);
133     }
134
135     /* (non-Javadoc)
136      * @see org.easymock.MockControl#expectAndReturn(boolean, boolean, int)
137      */

138     public void expectAndReturn(boolean arg0, boolean arg1, int arg2) {
139         control.expectAndReturn(arg0, arg1, arg2);
140     }
141
142     /* (non-Javadoc)
143      * @see org.easymock.MockControl#expectAndReturn(boolean, boolean, org.easymock.internal.Range)
144      */

145     public void expectAndReturn(boolean arg0, boolean arg1, Range arg2) {
146         control.expectAndReturn(arg0, arg1, arg2);
147     }
148
149     /* (non-Javadoc)
150      * @see org.easymock.MockControl#expectAndReturn(boolean, boolean)
151      */

152     public void expectAndReturn(boolean arg0, boolean arg1) {
153         control.expectAndReturn(arg0, arg1);
154     }
155
156     /* (non-Javadoc)
157      * @see org.easymock.MockControl#expectAndReturn(double, double, int, int)
158      */

159     public void expectAndReturn(double arg0, double arg1, int arg2, int arg3) {
160         control.expectAndReturn(arg0, arg1, arg2, arg3);
161     }
162
163     /* (non-Javadoc)
164      * @see org.easymock.MockControl#expectAndReturn(double, double, int)
165      */

166     public void expectAndReturn(double arg0, double arg1, int arg2) {
167         control.expectAndReturn(arg0, arg1, arg2);
168     }
169
170     /* (non-Javadoc)
171      * @see org.easymock.MockControl#expectAndReturn(double, double, org.easymock.internal.Range)
172      */

173     public void expectAndReturn(double arg0, double arg1, Range arg2) {
174         control.expectAndReturn(arg0, arg1, arg2);
175     }
176
177     /* (non-Javadoc)
178      * @see org.easymock.MockControl#expectAndReturn(double, double)
179      */

180     public void expectAndReturn(double arg0, double arg1) {
181         control.expectAndReturn(arg0, arg1);
182     }
183
184     /* (non-Javadoc)
185      * @see org.easymock.MockControl#expectAndReturn(float, float, int, int)
186      */

187     public void expectAndReturn(float arg0, float arg1, int arg2, int arg3) {
188         control.expectAndReturn(arg0, arg1, arg2, arg3);
189     }
190
191     /* (non-Javadoc)
192      * @see org.easymock.MockControl#expectAndReturn(float, float, int)
193      */

194     public void expectAndReturn(float arg0, float arg1, int arg2) {
195         control.expectAndReturn(arg0, arg1, arg2);
196     }
197
198     /* (non-Javadoc)
199      * @see org.easymock.MockControl#expectAndReturn(float, float, org.easymock.internal.Range)
200      */

201     public void expectAndReturn(float arg0, float arg1, Range arg2) {
202         control.expectAndReturn(arg0, arg1, arg2);
203     }
204
205     /* (non-Javadoc)
206      * @see org.easymock.MockControl#expectAndReturn(float, float)
207      */

208     public void expectAndReturn(float arg0, float arg1) {
209         control.expectAndReturn(arg0, arg1);
210     }
211
212     /* (non-Javadoc)
213      * @see org.easymock.MockControl#expectAndReturn(long, long, int, int)
214      */

215     public void expectAndReturn(long arg0, long arg1, int arg2, int arg3) {
216         control.expectAndReturn(arg0, arg1, arg2, arg3);
217     }
218
219     /* (non-Javadoc)
220      * @see org.easymock.MockControl#expectAndReturn(long, long, int)
221      */

222     public void expectAndReturn(long arg0, long arg1, int arg2) {
223         control.expectAndReturn(arg0, arg1, arg2);
224     }
225
226     /* (non-Javadoc)
227      * @see org.easymock.MockControl#expectAndReturn(long, long, org.easymock.internal.Range)
228      */

229     public void expectAndReturn(long arg0, long arg1, Range arg2) {
230         control.expectAndReturn(arg0, arg1, arg2);
231     }
232
233     /* (non-Javadoc)
234      * @see org.easymock.MockControl#expectAndReturn(long, long)
235      */

236     public void expectAndReturn(long arg0, long arg1) {
237         control.expectAndReturn(arg0, arg1);
238     }
239
240     /* (non-Javadoc)
241      * @see org.easymock.MockControl#expectAndReturn(java.lang.Object, java.lang.Object, int, int)
242      */

243     public void expectAndReturn(Object JavaDoc arg0, Object JavaDoc arg1, int arg2, int arg3) {
244         control.expectAndReturn(arg0, arg1, arg2, arg3);
245     }
246
247     /* (non-Javadoc)
248      * @see org.easymock.MockControl#expectAndReturn(java.lang.Object, java.lang.Object, int)
249      */

250     public void expectAndReturn(Object JavaDoc arg0, Object JavaDoc arg1, int arg2) {
251         control.expectAndReturn(arg0, arg1, arg2);
252     }
253
254     /* (non-Javadoc)
255      * @see org.easymock.MockControl#expectAndReturn(java.lang.Object, java.lang.Object, org.easymock.internal.Range)
256      */

257     public void expectAndReturn(Object JavaDoc arg0, Object JavaDoc arg1, Range arg2) {
258         control.expectAndReturn(arg0, arg1, arg2);
259     }
260
261     /* (non-Javadoc)
262      * @see org.easymock.MockControl#expectAndReturn(java.lang.Object, java.lang.Object)
263      */

264     public void expectAndReturn(Object JavaDoc arg0, Object JavaDoc arg1) {
265         control.expectAndReturn(arg0, arg1);
266     }
267
268     /* (non-Javadoc)
269      * @see org.easymock.MockControl#expectAndThrow(boolean, java.lang.Throwable, int, int)
270      */

271     public void expectAndThrow(boolean arg0, Throwable JavaDoc arg1, int arg2, int arg3) {
272         control.expectAndThrow(arg0, arg1, arg2, arg3);
273     }
274
275     /* (non-Javadoc)
276      * @see org.easymock.MockControl#expectAndThrow(boolean, java.lang.Throwable, int)
277      */

278     public void expectAndThrow(boolean arg0, Throwable JavaDoc arg1, int arg2) {
279         control.expectAndThrow(arg0, arg1, arg2);
280     }
281
282     /* (non-Javadoc)
283      * @see org.easymock.MockControl#expectAndThrow(boolean, java.lang.Throwable, org.easymock.internal.Range)
284      */

285     public void expectAndThrow(boolean arg0, Throwable JavaDoc arg1, Range arg2) {
286         control.expectAndThrow(arg0, arg1, arg2);
287     }
288
289     /* (non-Javadoc)
290      * @see org.easymock.MockControl#expectAndThrow(boolean, java.lang.Throwable)
291      */

292     public void expectAndThrow(boolean arg0, Throwable JavaDoc arg1) {
293         control.expectAndThrow(arg0, arg1);
294     }
295
296     /* (non-Javadoc)
297      * @see org.easymock.MockControl#expectAndThrow(double, java.lang.Throwable, int, int)
298      */

299     public void expectAndThrow(double arg0, Throwable JavaDoc arg1, int arg2, int arg3) {
300         control.expectAndThrow(arg0, arg1, arg2, arg3);
301     }
302
303     /* (non-Javadoc)
304      * @see org.easymock.MockControl#expectAndThrow(double, java.lang.Throwable, int)
305      */

306     public void expectAndThrow(double arg0, Throwable JavaDoc arg1, int arg2) {
307         control.expectAndThrow(arg0, arg1, arg2);
308     }
309
310     /* (non-Javadoc)
311      * @see org.easymock.MockControl#expectAndThrow(double, java.lang.Throwable, org.easymock.internal.Range)
312      */

313     public void expectAndThrow(double arg0, Throwable JavaDoc arg1, Range arg2) {
314         control.expectAndThrow(arg0, arg1, arg2);
315     }
316
317     /* (non-Javadoc)
318      * @see org.easymock.MockControl#expectAndThrow(double, java.lang.Throwable)
319      */

320     public void expectAndThrow(double arg0, Throwable JavaDoc arg1) {
321         control.expectAndThrow(arg0, arg1);
322     }
323
324     /* (non-Javadoc)
325      * @see org.easymock.MockControl#expectAndThrow(float, java.lang.Throwable, int, int)
326      */

327     public void expectAndThrow(float arg0, Throwable JavaDoc arg1, int arg2, int arg3) {
328         control.expectAndThrow(arg0, arg1, arg2, arg3);
329     }
330
331     /* (non-Javadoc)
332      * @see org.easymock.MockControl#expectAndThrow(float, java.lang.Throwable, int)
333      */

334     public void expectAndThrow(float arg0, Throwable JavaDoc arg1, int arg2) {
335         control.expectAndThrow(arg0, arg1, arg2);
336     }
337
338     /* (non-Javadoc)
339      * @see org.easymock.MockControl#expectAndThrow(float, java.lang.Throwable, org.easymock.internal.Range)
340      */

341     public void expectAndThrow(float arg0, Throwable JavaDoc arg1, Range arg2) {
342         control.expectAndThrow(arg0, arg1, arg2);
343     }
344
345     /* (non-Javadoc)
346      * @see org.easymock.MockControl#expectAndThrow(float, java.lang.Throwable)
347      */

348     public void expectAndThrow(float arg0, Throwable JavaDoc arg1) {
349         control.expectAndThrow(arg0, arg1);
350     }
351
352     /* (non-Javadoc)
353      * @see org.easymock.MockControl#expectAndThrow(long, java.lang.Throwable, int, int)
354      */

355     public void expectAndThrow(long arg0, Throwable JavaDoc arg1, int arg2, int arg3) {
356         control.expectAndThrow(arg0, arg1, arg2, arg3);
357     }
358
359     /* (non-Javadoc)
360      * @see org.easymock.MockControl#expectAndThrow(long, java.lang.Throwable, int)
361      */

362     public void expectAndThrow(long arg0, Throwable JavaDoc arg1, int arg2) {
363         control.expectAndThrow(arg0, arg1, arg2);
364     }
365
366     /* (non-Javadoc)
367      * @see org.easymock.MockControl#expectAndThrow(long, java.lang.Throwable, org.easymock.internal.Range)
368      */

369     public void expectAndThrow(long arg0, Throwable JavaDoc arg1, Range arg2) {
370         control.expectAndThrow(arg0, arg1, arg2);
371     }
372
373     /* (non-Javadoc)
374      * @see org.easymock.MockControl#expectAndThrow(long, java.lang.Throwable)
375      */

376     public void expectAndThrow(long arg0, Throwable JavaDoc arg1) {
377         control.expectAndThrow(arg0, arg1);
378     }
379
380     /* (non-Javadoc)
381      * @see org.easymock.MockControl#expectAndThrow(java.lang.Object, java.lang.Throwable, int, int)
382      */

383     public void expectAndThrow(Object JavaDoc arg0, Throwable JavaDoc arg1, int arg2, int arg3) {
384         control.expectAndThrow(arg0, arg1, arg2, arg3);
385     }
386
387     /* (non-Javadoc)
388      * @see org.easymock.MockControl#expectAndThrow(java.lang.Object, java.lang.Throwable, int)
389      */

390     public void expectAndThrow(Object JavaDoc arg0, Throwable JavaDoc arg1, int arg2) {
391         control.expectAndThrow(arg0, arg1, arg2);
392     }
393
394     /* (non-Javadoc)
395      * @see org.easymock.MockControl#expectAndThrow(java.lang.Object, java.lang.Throwable, org.easymock.internal.Range)
396      */

397     public void expectAndThrow(Object JavaDoc arg0, Throwable JavaDoc arg1, Range arg2) {
398         control.expectAndThrow(arg0, arg1, arg2);
399     }
400
401     /* (non-Javadoc)
402      * @see org.easymock.MockControl#expectAndThrow(java.lang.Object, java.lang.Throwable)
403      */

404     public void expectAndThrow(Object JavaDoc arg0, Throwable JavaDoc arg1) {
405         control.expectAndThrow(arg0, arg1);
406     }
407
408     /* (non-Javadoc)
409      * @see org.easymock.MockControl#getMock()
410      */

411     public Object JavaDoc getMock() {
412         if (mock == null) {
413             mock = Proxy.newProxyInstance(clazz.getClassLoader(), new Class JavaDoc[] { clazz }, this);
414         }
415         return mock;
416     }
417
418     /* (non-Javadoc)
419      * @see org.easymock.MockControl#replay()
420      */

421     public void replay() {
422         control.replay();
423     }
424
425     /* (non-Javadoc)
426      * @see org.easymock.MockControl#reset()
427      */

428     public void reset() {
429         control.reset();
430     }
431
432     /* (non-Javadoc)
433      * @see org.easymock.MockControl#setDefaultMatcher(org.easymock.ArgumentsMatcher)
434      */

435     public void setDefaultMatcher(ArgumentsMatcher arg0) {
436         control.setDefaultMatcher(arg0);
437     }
438
439     /* (non-Javadoc)
440      * @see org.easymock.MockControl#setDefaultReturnValue(boolean)
441      */

442     public void setDefaultReturnValue(boolean arg0) {
443         control.setDefaultReturnValue(arg0);
444     }
445
446     /* (non-Javadoc)
447      * @see org.easymock.MockControl#setDefaultReturnValue(double)
448      */

449     public void setDefaultReturnValue(double arg0) {
450         control.setDefaultReturnValue(arg0);
451     }
452
453     /* (non-Javadoc)
454      * @see org.easymock.MockControl#setDefaultReturnValue(float)
455      */

456     public void setDefaultReturnValue(float arg0) {
457         control.setDefaultReturnValue(arg0);
458     }
459
460     /* (non-Javadoc)
461      * @see org.easymock.MockControl#setDefaultReturnValue(long)
462      */

463     public void setDefaultReturnValue(long arg0) {
464         control.setDefaultReturnValue(arg0);
465     }
466
467     /* (non-Javadoc)
468      * @see org.easymock.MockControl#setDefaultReturnValue(java.lang.Object)
469      */

470     public void setDefaultReturnValue(Object JavaDoc arg0) {
471         control.setDefaultReturnValue(arg0);
472     }
473
474     /* (non-Javadoc)
475      * @see org.easymock.MockControl#setDefaultThrowable(java.lang.Throwable)
476      */

477     public void setDefaultThrowable(Throwable JavaDoc arg0) {
478         control.setDefaultThrowable(arg0);
479     }
480
481     /* (non-Javadoc)
482      * @see org.easymock.MockControl#setDefaultVoidCallable()
483      */

484     public void setDefaultVoidCallable() {
485         control.setDefaultVoidCallable();
486     }
487
488     /* (non-Javadoc)
489      * @see org.easymock.MockControl#setMatcher(org.easymock.ArgumentsMatcher)
490      */

491     public void setMatcher(ArgumentsMatcher arg0) {
492         control.setMatcher(arg0);
493     }
494
495     /* (non-Javadoc)
496      * @see org.easymock.MockControl#setReturnValue(boolean, int, int)
497      */

498     public void setReturnValue(boolean arg0, int arg1, int arg2) {
499         control.setReturnValue(arg0, arg1, arg2);
500     }
501
502     /* (non-Javadoc)
503      * @see org.easymock.MockControl#setReturnValue(boolean, int)
504      */

505     public void setReturnValue(boolean arg0, int arg1) {
506         control.setReturnValue(arg0, arg1);
507     }
508
509     /* (non-Javadoc)
510      * @see org.easymock.MockControl#setReturnValue(boolean, org.easymock.internal.Range)
511      */

512     public void setReturnValue(boolean arg0, Range arg1) {
513         control.setReturnValue(arg0, arg1);
514     }
515
516     /* (non-Javadoc)
517      * @see org.easymock.MockControl#setReturnValue(boolean)
518      */

519     public void setReturnValue(boolean arg0) {
520         control.setReturnValue(arg0);
521     }
522
523     /* (non-Javadoc)
524      * @see org.easymock.MockControl#setReturnValue(double, int, int)
525      */

526     public void setReturnValue(double arg0, int arg1, int arg2) {
527         control.setReturnValue(arg0, arg1, arg2);
528     }
529
530     /* (non-Javadoc)
531      * @see org.easymock.MockControl#setReturnValue(double, int)
532      */

533     public void setReturnValue(double arg0, int arg1) {
534         control.setReturnValue(arg0, arg1);
535     }
536
537     /* (non-Javadoc)
538      * @see org.easymock.MockControl#setReturnValue(double, org.easymock.internal.Range)
539      */

540     public void setReturnValue(double arg0, Range arg1) {
541         control.setReturnValue(arg0, arg1);
542     }
543
544     /* (non-Javadoc)
545      * @see org.easymock.MockControl#setReturnValue(double)
546      */

547     public void setReturnValue(double arg0) {
548         control.setReturnValue(arg0);
549     }
550
551     /* (non-Javadoc)
552      * @see org.easymock.MockControl#setReturnValue(float, int, int)
553      */

554     public void setReturnValue(float arg0, int arg1, int arg2) {
555         control.setReturnValue(arg0, arg1, arg2);
556     }
557
558     /* (non-Javadoc)
559      * @see org.easymock.MockControl#setReturnValue(float, int)
560      */

561     public void setReturnValue(float arg0, int arg1) {
562         control.setReturnValue(arg0, arg1);
563     }
564
565     /* (non-Javadoc)
566      * @see org.easymock.MockControl#setReturnValue(float, org.easymock.internal.Range)
567      */

568     public void setReturnValue(float arg0, Range arg1) {
569         control.setReturnValue(arg0, arg1);
570     }
571
572     /* (non-Javadoc)
573      * @see org.easymock.MockControl#setReturnValue(float)
574      */

575     public void setReturnValue(float arg0) {
576         control.setReturnValue(arg0);
577     }
578
579     /* (non-Javadoc)
580      * @see org.easymock.MockControl#setReturnValue(long, int, int)
581      */

582     public void setReturnValue(long arg0, int arg1, int arg2) {
583         control.setReturnValue(arg0, arg1, arg2);
584     }
585
586     /* (non-Javadoc)
587      * @see org.easymock.MockControl#setReturnValue(long, int)
588      */

589     public void setReturnValue(long arg0, int arg1) {
590         control.setReturnValue(arg0, arg1);
591     }
592
593     /* (non-Javadoc)
594      * @see org.easymock.MockControl#setReturnValue(long, org.easymock.internal.Range)
595      */

596     public void setReturnValue(long arg0, Range arg1) {
597         control.setReturnValue(arg0, arg1);
598     }
599
600     /* (non-Javadoc)
601      * @see org.easymock.MockControl#setReturnValue(long)
602      */

603     public void setReturnValue(long arg0) {
604         control.setReturnValue(arg0);
605     }
606
607     /* (non-Javadoc)
608      * @see org.easymock.MockControl#setReturnValue(java.lang.Object, int, int)
609      */

610     public void setReturnValue(Object JavaDoc arg0, int arg1, int arg2) {
611         control.setReturnValue(arg0, arg1, arg2);
612     }
613
614     /* (non-Javadoc)
615      * @see org.easymock.MockControl#setReturnValue(java.lang.Object, int)
616      */

617     public void setReturnValue(Object JavaDoc arg0, int arg1) {
618         control.setReturnValue(arg0, arg1);
619     }
620
621     /* (non-Javadoc)
622      * @see org.easymock.MockControl#setReturnValue(java.lang.Object, org.easymock.internal.Range)
623      */

624     public void setReturnValue(Object JavaDoc arg0, Range arg1) {
625         control.setReturnValue(arg0, arg1);
626     }
627
628     /* (non-Javadoc)
629      * @see org.easymock.MockControl#setReturnValue(java.lang.Object)
630      */

631     public void setReturnValue(Object JavaDoc arg0) {
632         control.setReturnValue(arg0);
633     }
634
635     /* (non-Javadoc)
636      * @see org.easymock.MockControl#setThrowable(java.lang.Throwable, int, int)
637      */

638     public void setThrowable(Throwable JavaDoc arg0, int arg1, int arg2) {
639         control.setThrowable(arg0, arg1, arg2);
640     }
641
642     /* (non-Javadoc)
643      * @see org.easymock.MockControl#setThrowable(java.lang.Throwable, int)
644      */

645     public void setThrowable(Throwable JavaDoc arg0, int arg1) {
646         control.setThrowable(arg0, arg1);
647     }
648
649     /* (non-Javadoc)
650      * @see org.easymock.MockControl#setThrowable(java.lang.Throwable, org.easymock.internal.Range)
651      */

652     public void setThrowable(Throwable JavaDoc arg0, Range arg1) {
653         control.setThrowable(arg0, arg1);
654     }
655
656     /* (non-Javadoc)
657      * @see org.easymock.MockControl#setThrowable(java.lang.Throwable)
658      */

659     public void setThrowable(Throwable JavaDoc arg0) {
660         control.setThrowable(arg0);
661     }
662
663     /* (non-Javadoc)
664      * @see org.easymock.MockControl#setVoidCallable()
665      */

666     public void setVoidCallable() {
667         control.setVoidCallable();
668     }
669
670     /* (non-Javadoc)
671      * @see org.easymock.MockControl#setVoidCallable(int, int)
672      */

673     public void setVoidCallable(int arg0, int arg1) {
674         control.setVoidCallable(arg0, arg1);
675     }
676
677     /* (non-Javadoc)
678      * @see org.easymock.MockControl#setVoidCallable(int)
679      */

680     public void setVoidCallable(int arg0) {
681         control.setVoidCallable(arg0);
682     }
683
684     /* (non-Javadoc)
685      * @see org.easymock.MockControl#setVoidCallable(org.easymock.internal.Range)
686      */

687     public void setVoidCallable(Range arg0) {
688         control.setVoidCallable(arg0);
689     }
690
691     /* (non-Javadoc)
692      * @see org.easymock.MockControl#verify()
693      */

694     public void verify() {
695         if (error != null) {
696             throw error;
697         }
698         control.verify();
699     }
700
701 }
702
Popular Tags