001: package org.omg.CORBA;
002:
003: public abstract class ORB extends java.lang.Object {
004: private final static String MOCK_CREATOR_ALERT = "Class org.omg.CORBA.ORB is a dumby generated by MockCreator. Ensure you dont deploy it onto a real system instead of the actual class";
005:
006: public ORB() {
007: super ();
008: }
009:
010: private static String getClassObjectMethodSignature(String method) {
011: return "org.omg.CORBA.MockORB" + "#" + method;
012: }
013:
014: public void run() {
015: throw new net.sf.mockcreator.exceptions.MockException(
016: MOCK_CREATOR_ALERT);
017: }
018:
019: public void shutdown(boolean p0) {
020: throw new net.sf.mockcreator.exceptions.MockException(
021: MOCK_CREATOR_ALERT);
022: }
023:
024: public/* static: we cannot use static with generic types :E */class Returnable1483600707 {
025: private net.sf.mockcreator.IReturnable ir;
026:
027: public Returnable1483600707(net.sf.mockcreator.IReturnable ir) {
028: this .ir = ir;
029: }
030:
031: public void throwable(java.lang.RuntimeException th) {
032: ir.throwable(th);
033: }
034:
035: public void throwable(java.lang.Error th) {
036: ir.throwable(th);
037: }
038:
039: public void throwable(java.lang.Throwable th) {
040: ir.throwable(th);
041: }
042:
043: public void returns(org.omg.CORBA.ORB v) {
044: ir.returns(v);
045: }
046:
047: }
048:
049: public static org.omg.CORBA.ORB init() {
050: java.util.List params = new java.util.ArrayList();
051:
052: try {
053: java.lang.Object ret = net.sf.mockcreator.MockKernel
054: .getReturnValue(
055: getClassObjectMethodSignature("init()"),
056: params);
057:
058: return (org.omg.CORBA.ORB) ret;
059:
060: } catch (java.lang.RuntimeException e) {
061: throw e;
062: }
063:
064: catch (java.lang.Error e) {
065: throw e;
066: }
067:
068: catch (java.lang.Throwable e) {
069: throw new net.sf.mockcreator.exceptions.MockException(
070: "This class of exception is not declared in method signature. Its not a RuntimeException either. Thus it cannot be configured to throw from the method. Fix the test please.",
071: e);
072: } finally {
073: // do nothing ;)
074: }
075: }
076:
077: public Returnable1483600707 expectInit() {
078: java.util.List params = new java.util.ArrayList();
079:
080: return new Returnable1483600707(
081: net.sf.mockcreator.MockKernel
082: .addExpectedMethodCall(
083: getClassObjectMethodSignature("init()"),
084: params));
085: }
086:
087: public Returnable1483600707 expectZeroOrMoreInit_returning_ORB() {
088: return new Returnable1483600707(
089: net.sf.mockcreator.MockKernel.setDummy(
090: getClassObjectMethodSignature("init()"), null));
091: }
092:
093: public/* static: we cannot use static with generic types :E */class Returnablex1477584068 {
094: private net.sf.mockcreator.IReturnable ir;
095:
096: public Returnablex1477584068(net.sf.mockcreator.IReturnable ir) {
097: this .ir = ir;
098: }
099:
100: public void throwable(java.lang.RuntimeException th) {
101: ir.throwable(th);
102: }
103:
104: public void throwable(java.lang.Error th) {
105: ir.throwable(th);
106: }
107:
108: public void throwable(java.lang.Throwable th) {
109: ir.throwable(th);
110: }
111:
112: public void returns(org.omg.CORBA.ORB v) {
113: ir.returns(v);
114: }
115:
116: }
117:
118: public static org.omg.CORBA.ORB init(java.applet.Applet p0,
119: java.util.Properties p1) {
120: java.util.List params = new java.util.ArrayList();
121: params.add(p0);
122: params.add(p1);
123:
124: try {
125: java.lang.Object ret = net.sf.mockcreator.MockKernel
126: .getReturnValue(
127: getClassObjectMethodSignature("init(Applet,Properties)"),
128: params);
129:
130: return (org.omg.CORBA.ORB) ret;
131:
132: } catch (java.lang.RuntimeException e) {
133: throw e;
134: }
135:
136: catch (java.lang.Error e) {
137: throw e;
138: }
139:
140: catch (java.lang.Throwable e) {
141: throw new net.sf.mockcreator.exceptions.MockException(
142: "This class of exception is not declared in method signature. Its not a RuntimeException either. Thus it cannot be configured to throw from the method. Fix the test please.",
143: e);
144: } finally {
145: // do nothing ;)
146: }
147: }
148:
149: public Returnablex1477584068 expectInit(java.applet.Applet p0,
150: java.util.Properties p1) {
151: java.util.List params = new java.util.ArrayList();
152: params.add(p0);
153: params.add(p1);
154:
155: return new Returnablex1477584068(
156: net.sf.mockcreator.MockKernel
157: .addExpectedMethodCall(
158: getClassObjectMethodSignature("init(Applet,Properties)"),
159: params));
160: }
161:
162: public Returnablex1477584068 acceptInit_Applet_Properties_returning_ORB(
163: java.lang.Object p0, java.lang.Object p1) {
164: java.util.List params = new java.util.ArrayList();
165: params.add(p0);
166: params.add(p1);
167:
168: return new Returnablex1477584068(
169: net.sf.mockcreator.MockKernel
170: .addExpectedMethodCall(
171: getClassObjectMethodSignature("init(Applet,Properties)"),
172: params));
173: }
174:
175: public Returnablex1477584068 expectZeroOrMoreInit_Applet_Properties_returning_ORB() {
176: return new Returnablex1477584068(
177: net.sf.mockcreator.MockKernel
178: .setDummy(
179: getClassObjectMethodSignature("init(Applet,Properties)"),
180: null));
181: }
182:
183: public Returnablex1477584068 expectZeroOrMoreInit(
184: java.applet.Applet p0, java.util.Properties p1) {
185: java.util.List params = new java.util.ArrayList();
186: params.add(p0);
187: params.add(p1);
188:
189: return new Returnablex1477584068(
190: net.sf.mockcreator.MockKernel
191: .setDummy(
192: getClassObjectMethodSignature("init(Applet,Properties)"),
193: params));
194: }
195:
196: public Returnablex1477584068 acceptZeroOrMoreInit_Applet_Properties_returning_ORB(
197: java.lang.Object p0, java.lang.Object p1) {
198: java.util.List params = new java.util.ArrayList();
199: params.add(p0);
200: params.add(p1);
201:
202: return new Returnablex1477584068(
203: net.sf.mockcreator.MockKernel
204: .setDummy(
205: getClassObjectMethodSignature("init(Applet,Properties)"),
206: params));
207: }
208:
209: public/* static: we cannot use static with generic types :E */class Returnable1577117842 {
210: private net.sf.mockcreator.IReturnable ir;
211:
212: public Returnable1577117842(net.sf.mockcreator.IReturnable ir) {
213: this .ir = ir;
214: }
215:
216: public void throwable(java.lang.RuntimeException th) {
217: ir.throwable(th);
218: }
219:
220: public void throwable(java.lang.Error th) {
221: ir.throwable(th);
222: }
223:
224: public void throwable(java.lang.Throwable th) {
225: ir.throwable(th);
226: }
227:
228: public void returns(org.omg.CORBA.ORB v) {
229: ir.returns(v);
230: }
231:
232: }
233:
234: public static org.omg.CORBA.ORB init(java.lang.String[] p0,
235: java.util.Properties p1) {
236: java.util.List params = new java.util.ArrayList();
237: params.add(p0);
238: params.add(p1);
239:
240: try {
241: java.lang.Object ret = net.sf.mockcreator.MockKernel
242: .getReturnValue(
243: getClassObjectMethodSignature("init(String1D,Properties)"),
244: params);
245:
246: return (org.omg.CORBA.ORB) ret;
247:
248: } catch (java.lang.RuntimeException e) {
249: throw e;
250: }
251:
252: catch (java.lang.Error e) {
253: throw e;
254: }
255:
256: catch (java.lang.Throwable e) {
257: throw new net.sf.mockcreator.exceptions.MockException(
258: "This class of exception is not declared in method signature. Its not a RuntimeException either. Thus it cannot be configured to throw from the method. Fix the test please.",
259: e);
260: } finally {
261: // do nothing ;)
262: }
263: }
264:
265: public Returnable1577117842 expectInit(java.lang.String[] p0,
266: java.util.Properties p1) {
267: java.util.List params = new java.util.ArrayList();
268: params.add(p0);
269: params.add(p1);
270:
271: return new Returnable1577117842(
272: net.sf.mockcreator.MockKernel
273: .addExpectedMethodCall(
274: getClassObjectMethodSignature("init(String1D,Properties)"),
275: params));
276: }
277:
278: public Returnable1577117842 acceptInit_String1D_Properties_returning_ORB(
279: java.lang.Object p0, java.lang.Object p1) {
280: java.util.List params = new java.util.ArrayList();
281: params.add(p0);
282: params.add(p1);
283:
284: return new Returnable1577117842(
285: net.sf.mockcreator.MockKernel
286: .addExpectedMethodCall(
287: getClassObjectMethodSignature("init(String1D,Properties)"),
288: params));
289: }
290:
291: public Returnable1577117842 expectZeroOrMoreInit_String1D_Properties_returning_ORB() {
292: return new Returnable1577117842(
293: net.sf.mockcreator.MockKernel
294: .setDummy(
295: getClassObjectMethodSignature("init(String1D,Properties)"),
296: null));
297: }
298:
299: public Returnable1577117842 expectZeroOrMoreInit(
300: java.lang.String[] p0, java.util.Properties p1) {
301: java.util.List params = new java.util.ArrayList();
302: params.add(p0);
303: params.add(p1);
304:
305: return new Returnable1577117842(
306: net.sf.mockcreator.MockKernel
307: .setDummy(
308: getClassObjectMethodSignature("init(String1D,Properties)"),
309: params));
310: }
311:
312: public Returnable1577117842 acceptZeroOrMoreInit_String1D_Properties_returning_ORB(
313: java.lang.Object p0, java.lang.Object p1) {
314: java.util.List params = new java.util.ArrayList();
315: params.add(p0);
316: params.add(p1);
317:
318: return new Returnable1577117842(
319: net.sf.mockcreator.MockKernel
320: .setDummy(
321: getClassObjectMethodSignature("init(String1D,Properties)"),
322: params));
323: }
324:
325: public void destroy() {
326: throw new net.sf.mockcreator.exceptions.MockException(
327: MOCK_CREATOR_ALERT);
328: }
329:
330: public void connect(org.omg.CORBA.Object p0) {
331: throw new net.sf.mockcreator.exceptions.MockException(
332: MOCK_CREATOR_ALERT);
333: }
334:
335: public org.omg.CORBA.TypeCode create_abstract_interface_tc(
336: java.lang.String p0, java.lang.String p1) {
337: throw new net.sf.mockcreator.exceptions.MockException(
338: MOCK_CREATOR_ALERT);
339: }
340:
341: public org.omg.CORBA.TypeCode create_alias_tc(java.lang.String p0,
342: java.lang.String p1, org.omg.CORBA.TypeCode p2) {
343: throw new net.sf.mockcreator.exceptions.MockException(
344: MOCK_CREATOR_ALERT);
345: }
346:
347: public org.omg.CORBA.Any create_any() {
348: throw new net.sf.mockcreator.exceptions.MockException(
349: MOCK_CREATOR_ALERT);
350: }
351:
352: public org.omg.CORBA.TypeCode create_array_tc(int p0,
353: org.omg.CORBA.TypeCode p1) {
354: throw new net.sf.mockcreator.exceptions.MockException(
355: MOCK_CREATOR_ALERT);
356: }
357:
358: public org.omg.CORBA.DynAny create_basic_dyn_any(
359: org.omg.CORBA.TypeCode p0)
360: throws org.omg.CORBA.ORBPackage.InconsistentTypeCode {
361: throw new net.sf.mockcreator.exceptions.MockException(
362: MOCK_CREATOR_ALERT);
363: }
364:
365: public org.omg.CORBA.ContextList create_context_list() {
366: throw new net.sf.mockcreator.exceptions.MockException(
367: MOCK_CREATOR_ALERT);
368: }
369:
370: public org.omg.CORBA.DynAny create_dyn_any(org.omg.CORBA.Any p0) {
371: throw new net.sf.mockcreator.exceptions.MockException(
372: MOCK_CREATOR_ALERT);
373: }
374:
375: public org.omg.CORBA.DynArray create_dyn_array(
376: org.omg.CORBA.TypeCode p0)
377: throws org.omg.CORBA.ORBPackage.InconsistentTypeCode {
378: throw new net.sf.mockcreator.exceptions.MockException(
379: MOCK_CREATOR_ALERT);
380: }
381:
382: public org.omg.CORBA.DynEnum create_dyn_enum(
383: org.omg.CORBA.TypeCode p0)
384: throws org.omg.CORBA.ORBPackage.InconsistentTypeCode {
385: throw new net.sf.mockcreator.exceptions.MockException(
386: MOCK_CREATOR_ALERT);
387: }
388:
389: public org.omg.CORBA.DynSequence create_dyn_sequence(
390: org.omg.CORBA.TypeCode p0)
391: throws org.omg.CORBA.ORBPackage.InconsistentTypeCode {
392: throw new net.sf.mockcreator.exceptions.MockException(
393: MOCK_CREATOR_ALERT);
394: }
395:
396: public org.omg.CORBA.DynStruct create_dyn_struct(
397: org.omg.CORBA.TypeCode p0)
398: throws org.omg.CORBA.ORBPackage.InconsistentTypeCode {
399: throw new net.sf.mockcreator.exceptions.MockException(
400: MOCK_CREATOR_ALERT);
401: }
402:
403: public org.omg.CORBA.DynUnion create_dyn_union(
404: org.omg.CORBA.TypeCode p0)
405: throws org.omg.CORBA.ORBPackage.InconsistentTypeCode {
406: throw new net.sf.mockcreator.exceptions.MockException(
407: MOCK_CREATOR_ALERT);
408: }
409:
410: public org.omg.CORBA.TypeCode create_enum_tc(java.lang.String p0,
411: java.lang.String p1, java.lang.String[] p2) {
412: throw new net.sf.mockcreator.exceptions.MockException(
413: MOCK_CREATOR_ALERT);
414: }
415:
416: public org.omg.CORBA.Environment create_environment() {
417: throw new net.sf.mockcreator.exceptions.MockException(
418: MOCK_CREATOR_ALERT);
419: }
420:
421: public org.omg.CORBA.ExceptionList create_exception_list() {
422: throw new net.sf.mockcreator.exceptions.MockException(
423: MOCK_CREATOR_ALERT);
424: }
425:
426: public org.omg.CORBA.TypeCode create_exception_tc(
427: java.lang.String p0, java.lang.String p1,
428: org.omg.CORBA.StructMember[] p2) {
429: throw new net.sf.mockcreator.exceptions.MockException(
430: MOCK_CREATOR_ALERT);
431: }
432:
433: public org.omg.CORBA.TypeCode create_fixed_tc(short p0, short p1) {
434: throw new net.sf.mockcreator.exceptions.MockException(
435: MOCK_CREATOR_ALERT);
436: }
437:
438: public org.omg.CORBA.TypeCode create_interface_tc(
439: java.lang.String p0, java.lang.String p1) {
440: throw new net.sf.mockcreator.exceptions.MockException(
441: MOCK_CREATOR_ALERT);
442: }
443:
444: public org.omg.CORBA.NVList create_list(int p0) {
445: throw new net.sf.mockcreator.exceptions.MockException(
446: MOCK_CREATOR_ALERT);
447: }
448:
449: public org.omg.CORBA.NamedValue create_named_value(
450: java.lang.String p0, org.omg.CORBA.Any p1, int p2) {
451: throw new net.sf.mockcreator.exceptions.MockException(
452: MOCK_CREATOR_ALERT);
453: }
454:
455: public org.omg.CORBA.TypeCode create_native_tc(java.lang.String p0,
456: java.lang.String p1) {
457: throw new net.sf.mockcreator.exceptions.MockException(
458: MOCK_CREATOR_ALERT);
459: }
460:
461: public org.omg.CORBA.NVList create_operation_list(
462: org.omg.CORBA.Object p0) {
463: throw new net.sf.mockcreator.exceptions.MockException(
464: MOCK_CREATOR_ALERT);
465: }
466:
467: public org.omg.CORBA.portable.OutputStream create_output_stream() {
468: throw new net.sf.mockcreator.exceptions.MockException(
469: MOCK_CREATOR_ALERT);
470: }
471:
472: public org.omg.CORBA.Policy create_policy(int p0,
473: org.omg.CORBA.Any p1) throws org.omg.CORBA.PolicyError {
474: throw new net.sf.mockcreator.exceptions.MockException(
475: MOCK_CREATOR_ALERT);
476: }
477:
478: public org.omg.CORBA.TypeCode create_recursive_sequence_tc(int p0,
479: int p1) {
480: throw new net.sf.mockcreator.exceptions.MockException(
481: MOCK_CREATOR_ALERT);
482: }
483:
484: public org.omg.CORBA.TypeCode create_recursive_tc(
485: java.lang.String p0) {
486: throw new net.sf.mockcreator.exceptions.MockException(
487: MOCK_CREATOR_ALERT);
488: }
489:
490: public org.omg.CORBA.TypeCode create_sequence_tc(int p0,
491: org.omg.CORBA.TypeCode p1) {
492: throw new net.sf.mockcreator.exceptions.MockException(
493: MOCK_CREATOR_ALERT);
494: }
495:
496: public org.omg.CORBA.TypeCode create_string_tc(int p0) {
497: throw new net.sf.mockcreator.exceptions.MockException(
498: MOCK_CREATOR_ALERT);
499: }
500:
501: public org.omg.CORBA.TypeCode create_struct_tc(java.lang.String p0,
502: java.lang.String p1, org.omg.CORBA.StructMember[] p2) {
503: throw new net.sf.mockcreator.exceptions.MockException(
504: MOCK_CREATOR_ALERT);
505: }
506:
507: public org.omg.CORBA.TypeCode create_union_tc(java.lang.String p0,
508: java.lang.String p1, org.omg.CORBA.TypeCode p2,
509: org.omg.CORBA.UnionMember[] p3) {
510: throw new net.sf.mockcreator.exceptions.MockException(
511: MOCK_CREATOR_ALERT);
512: }
513:
514: public org.omg.CORBA.TypeCode create_value_box_tc(
515: java.lang.String p0, java.lang.String p1,
516: org.omg.CORBA.TypeCode p2) {
517: throw new net.sf.mockcreator.exceptions.MockException(
518: MOCK_CREATOR_ALERT);
519: }
520:
521: public org.omg.CORBA.TypeCode create_value_tc(java.lang.String p0,
522: java.lang.String p1, short p2, org.omg.CORBA.TypeCode p3,
523: org.omg.CORBA.ValueMember[] p4) {
524: throw new net.sf.mockcreator.exceptions.MockException(
525: MOCK_CREATOR_ALERT);
526: }
527:
528: public org.omg.CORBA.TypeCode create_wstring_tc(int p0) {
529: throw new net.sf.mockcreator.exceptions.MockException(
530: MOCK_CREATOR_ALERT);
531: }
532:
533: public void disconnect(org.omg.CORBA.Object p0) {
534: throw new net.sf.mockcreator.exceptions.MockException(
535: MOCK_CREATOR_ALERT);
536: }
537:
538: public org.omg.CORBA.Current get_current() {
539: throw new net.sf.mockcreator.exceptions.MockException(
540: MOCK_CREATOR_ALERT);
541: }
542:
543: public org.omg.CORBA.Context get_default_context() {
544: throw new net.sf.mockcreator.exceptions.MockException(
545: MOCK_CREATOR_ALERT);
546: }
547:
548: public org.omg.CORBA.Request get_next_response()
549: throws org.omg.CORBA.WrongTransaction {
550: throw new net.sf.mockcreator.exceptions.MockException(
551: MOCK_CREATOR_ALERT);
552: }
553:
554: public org.omg.CORBA.TypeCode get_primitive_tc(
555: org.omg.CORBA.TCKind p0) {
556: throw new net.sf.mockcreator.exceptions.MockException(
557: MOCK_CREATOR_ALERT);
558: }
559:
560: public boolean get_service_information(short p0,
561: org.omg.CORBA.ServiceInformationHolder p1) {
562: throw new net.sf.mockcreator.exceptions.MockException(
563: MOCK_CREATOR_ALERT);
564: }
565:
566: public java.lang.String[] list_initial_services() {
567: throw new net.sf.mockcreator.exceptions.MockException(
568: MOCK_CREATOR_ALERT);
569: }
570:
571: public java.lang.String object_to_string(org.omg.CORBA.Object p0) {
572: throw new net.sf.mockcreator.exceptions.MockException(
573: MOCK_CREATOR_ALERT);
574: }
575:
576: public void perform_work() {
577: throw new net.sf.mockcreator.exceptions.MockException(
578: MOCK_CREATOR_ALERT);
579: }
580:
581: public boolean poll_next_response() {
582: throw new net.sf.mockcreator.exceptions.MockException(
583: MOCK_CREATOR_ALERT);
584: }
585:
586: public org.omg.CORBA.Object resolve_initial_references(
587: java.lang.String p0)
588: throws org.omg.CORBA.ORBPackage.InvalidName {
589: throw new net.sf.mockcreator.exceptions.MockException(
590: MOCK_CREATOR_ALERT);
591: }
592:
593: public void send_multiple_requests_deferred(
594: org.omg.CORBA.Request[] p0) {
595: throw new net.sf.mockcreator.exceptions.MockException(
596: MOCK_CREATOR_ALERT);
597: }
598:
599: public void send_multiple_requests_oneway(org.omg.CORBA.Request[] p0) {
600: throw new net.sf.mockcreator.exceptions.MockException(
601: MOCK_CREATOR_ALERT);
602: }
603:
604: protected void set_parameters(java.applet.Applet p0,
605: java.util.Properties p1) {
606: throw new net.sf.mockcreator.exceptions.MockException(
607: MOCK_CREATOR_ALERT);
608: }
609:
610: protected void set_parameters(java.lang.String[] p0,
611: java.util.Properties p1) {
612: throw new net.sf.mockcreator.exceptions.MockException(
613: MOCK_CREATOR_ALERT);
614: }
615:
616: public org.omg.CORBA.Object string_to_object(java.lang.String p0) {
617: throw new net.sf.mockcreator.exceptions.MockException(
618: MOCK_CREATOR_ALERT);
619: }
620:
621: public boolean work_pending() {
622: throw new net.sf.mockcreator.exceptions.MockException(
623: MOCK_CREATOR_ALERT);
624: }
625: }
|