blob: 8bdba2c06d39df7d7becc8d969b758d49ef02418 [file] [log] [blame]
David Reiss3b15ebc2008-03-02 06:29:19 +00001/*
2This program was generated by the following Python script:
3
4#!/usr/bin/python2.5
5
6# Remove this when Python 2.6 hits the streets.
7from __future__ import with_statement
8
9import sys
10import os.path
11
12
13# Quines the easy way.
14with open(sys.argv[0], 'r') as handle:
15 source = handle.read()
16
17with open(os.path.join(os.path.dirname(sys.argv[0]), 'EqualityTest.java'), 'w') as out:
18 print >> out, "/""*"
19 print >> out, "This program was generated by the following Python script:"
20 print >> out
21 out.write(source)
22 print >> out, "*""/"
23
24 print >> out, r'''
25package com.facebook.thrift.test;
26
27// Generated code
28import thrift.test.*;
29
30/'''r'''**
31 * @author David Reiss <dreiss@facebook.com>
32 *'''r'''/
33public class EqualityTest {
34 public static void main(String[] args) throws Exception {
35 JavaTestHelper lhs, rhs;
36'''
37
38 vals = {
39 'int': ("1", "2"),
40 'obj': ("\"foo\"", "\"bar\""),
41 'bin': ("new byte[]{1,2}", "new byte[]{3,4}"),
42 }
43 matrix = (
44 (False,False),
45 (False,True ),
46 (True ,False),
47 (True ,True ),
48 )
49
50 for type in ('int', 'obj', 'bin'):
51 for option in ('req', 'opt'):
52 nulls = matrix[0:1] if type == 'int' else matrix[-1::-1]
53 issets = matrix
54 for is_null in nulls:
55 for is_set in issets:
56 for equal in (True, False):
57 print >> out
58 print >> out, " lhs = new JavaTestHelper();"
59 print >> out, " rhs = new JavaTestHelper();"
60 print >> out, " lhs." + option + "_" + type, "=", vals[type][0] + ";"
61 print >> out, " rhs." + option + "_" + type, "=", vals[type][0 if equal else 1] + ";"
62 if (is_set[0]): print >> out, " lhs.__isset." + option + "_" + type, "= true;"
63 if (is_set[1]): print >> out, " rhs.__isset." + option + "_" + type, "= true;"
64 if (is_null[0]): print >> out, " lhs." + option + "_" + type, "= null;"
65 if (is_null[1]): print >> out, " rhs." + option + "_" + type, "= null;"
66 this_present = not is_null[0] and (option == 'req' or is_set[0])
67 that_present = not is_null[1] and (option == 'req' or is_set[1])
68 print >> out, " // this_present = " + repr(this_present)
69 print >> out, " // that_present = " + repr(that_present)
70 is_equal = \
71 (not this_present and not that_present) or \
72 (this_present and that_present and equal)
73 eq_str = 'true' if is_equal else 'false'
74
75 print >> out, " if (lhs.equals(rhs) != "+eq_str+")"
76 print >> out, " throw new RuntimeException(\"Failure\");"
77 if is_equal:
78 print >> out, " if (lhs.hashCode() != rhs.hashCode())"
79 print >> out, " throw new RuntimeException(\"Failure\");"
80
81 print >> out, r'''
82 }
83}
84'''
85*/
86
87package com.facebook.thrift.test;
88
89// Generated code
90import thrift.test.*;
91
92/**
93 * @author David Reiss <dreiss@facebook.com>
94 */
95public class EqualityTest {
96 public static void main(String[] args) throws Exception {
97 JavaTestHelper lhs, rhs;
98
99
100 lhs = new JavaTestHelper();
101 rhs = new JavaTestHelper();
102 lhs.req_int = 1;
103 rhs.req_int = 1;
104 // this_present = True
105 // that_present = True
106 if (lhs.equals(rhs) != true)
107 throw new RuntimeException("Failure");
108 if (lhs.hashCode() != rhs.hashCode())
109 throw new RuntimeException("Failure");
110
111 lhs = new JavaTestHelper();
112 rhs = new JavaTestHelper();
113 lhs.req_int = 1;
114 rhs.req_int = 2;
115 // this_present = True
116 // that_present = True
117 if (lhs.equals(rhs) != false)
118 throw new RuntimeException("Failure");
119
120 lhs = new JavaTestHelper();
121 rhs = new JavaTestHelper();
122 lhs.req_int = 1;
123 rhs.req_int = 1;
124 rhs.__isset.req_int = true;
125 // this_present = True
126 // that_present = True
127 if (lhs.equals(rhs) != true)
128 throw new RuntimeException("Failure");
129 if (lhs.hashCode() != rhs.hashCode())
130 throw new RuntimeException("Failure");
131
132 lhs = new JavaTestHelper();
133 rhs = new JavaTestHelper();
134 lhs.req_int = 1;
135 rhs.req_int = 2;
136 rhs.__isset.req_int = true;
137 // this_present = True
138 // that_present = True
139 if (lhs.equals(rhs) != false)
140 throw new RuntimeException("Failure");
141
142 lhs = new JavaTestHelper();
143 rhs = new JavaTestHelper();
144 lhs.req_int = 1;
145 rhs.req_int = 1;
146 lhs.__isset.req_int = true;
147 // this_present = True
148 // that_present = True
149 if (lhs.equals(rhs) != true)
150 throw new RuntimeException("Failure");
151 if (lhs.hashCode() != rhs.hashCode())
152 throw new RuntimeException("Failure");
153
154 lhs = new JavaTestHelper();
155 rhs = new JavaTestHelper();
156 lhs.req_int = 1;
157 rhs.req_int = 2;
158 lhs.__isset.req_int = true;
159 // this_present = True
160 // that_present = True
161 if (lhs.equals(rhs) != false)
162 throw new RuntimeException("Failure");
163
164 lhs = new JavaTestHelper();
165 rhs = new JavaTestHelper();
166 lhs.req_int = 1;
167 rhs.req_int = 1;
168 lhs.__isset.req_int = true;
169 rhs.__isset.req_int = true;
170 // this_present = True
171 // that_present = True
172 if (lhs.equals(rhs) != true)
173 throw new RuntimeException("Failure");
174 if (lhs.hashCode() != rhs.hashCode())
175 throw new RuntimeException("Failure");
176
177 lhs = new JavaTestHelper();
178 rhs = new JavaTestHelper();
179 lhs.req_int = 1;
180 rhs.req_int = 2;
181 lhs.__isset.req_int = true;
182 rhs.__isset.req_int = true;
183 // this_present = True
184 // that_present = True
185 if (lhs.equals(rhs) != false)
186 throw new RuntimeException("Failure");
187
188 lhs = new JavaTestHelper();
189 rhs = new JavaTestHelper();
190 lhs.opt_int = 1;
191 rhs.opt_int = 1;
192 // this_present = False
193 // that_present = False
194 if (lhs.equals(rhs) != true)
195 throw new RuntimeException("Failure");
196 if (lhs.hashCode() != rhs.hashCode())
197 throw new RuntimeException("Failure");
198
199 lhs = new JavaTestHelper();
200 rhs = new JavaTestHelper();
201 lhs.opt_int = 1;
202 rhs.opt_int = 2;
203 // this_present = False
204 // that_present = False
205 if (lhs.equals(rhs) != true)
206 throw new RuntimeException("Failure");
207 if (lhs.hashCode() != rhs.hashCode())
208 throw new RuntimeException("Failure");
209
210 lhs = new JavaTestHelper();
211 rhs = new JavaTestHelper();
212 lhs.opt_int = 1;
213 rhs.opt_int = 1;
214 rhs.__isset.opt_int = true;
215 // this_present = False
216 // that_present = True
217 if (lhs.equals(rhs) != false)
218 throw new RuntimeException("Failure");
219
220 lhs = new JavaTestHelper();
221 rhs = new JavaTestHelper();
222 lhs.opt_int = 1;
223 rhs.opt_int = 2;
224 rhs.__isset.opt_int = true;
225 // this_present = False
226 // that_present = True
227 if (lhs.equals(rhs) != false)
228 throw new RuntimeException("Failure");
229
230 lhs = new JavaTestHelper();
231 rhs = new JavaTestHelper();
232 lhs.opt_int = 1;
233 rhs.opt_int = 1;
234 lhs.__isset.opt_int = true;
235 // this_present = True
236 // that_present = False
237 if (lhs.equals(rhs) != false)
238 throw new RuntimeException("Failure");
239
240 lhs = new JavaTestHelper();
241 rhs = new JavaTestHelper();
242 lhs.opt_int = 1;
243 rhs.opt_int = 2;
244 lhs.__isset.opt_int = true;
245 // this_present = True
246 // that_present = False
247 if (lhs.equals(rhs) != false)
248 throw new RuntimeException("Failure");
249
250 lhs = new JavaTestHelper();
251 rhs = new JavaTestHelper();
252 lhs.opt_int = 1;
253 rhs.opt_int = 1;
254 lhs.__isset.opt_int = true;
255 rhs.__isset.opt_int = true;
256 // this_present = True
257 // that_present = True
258 if (lhs.equals(rhs) != true)
259 throw new RuntimeException("Failure");
260 if (lhs.hashCode() != rhs.hashCode())
261 throw new RuntimeException("Failure");
262
263 lhs = new JavaTestHelper();
264 rhs = new JavaTestHelper();
265 lhs.opt_int = 1;
266 rhs.opt_int = 2;
267 lhs.__isset.opt_int = true;
268 rhs.__isset.opt_int = true;
269 // this_present = True
270 // that_present = True
271 if (lhs.equals(rhs) != false)
272 throw new RuntimeException("Failure");
273
274 lhs = new JavaTestHelper();
275 rhs = new JavaTestHelper();
276 lhs.req_obj = "foo";
277 rhs.req_obj = "foo";
278 lhs.req_obj = null;
279 rhs.req_obj = null;
280 // this_present = False
281 // that_present = False
282 if (lhs.equals(rhs) != true)
283 throw new RuntimeException("Failure");
284 if (lhs.hashCode() != rhs.hashCode())
285 throw new RuntimeException("Failure");
286
287 lhs = new JavaTestHelper();
288 rhs = new JavaTestHelper();
289 lhs.req_obj = "foo";
290 rhs.req_obj = "bar";
291 lhs.req_obj = null;
292 rhs.req_obj = null;
293 // this_present = False
294 // that_present = False
295 if (lhs.equals(rhs) != true)
296 throw new RuntimeException("Failure");
297 if (lhs.hashCode() != rhs.hashCode())
298 throw new RuntimeException("Failure");
299
300 lhs = new JavaTestHelper();
301 rhs = new JavaTestHelper();
302 lhs.req_obj = "foo";
303 rhs.req_obj = "foo";
304 rhs.__isset.req_obj = true;
305 lhs.req_obj = null;
306 rhs.req_obj = null;
307 // this_present = False
308 // that_present = False
309 if (lhs.equals(rhs) != true)
310 throw new RuntimeException("Failure");
311 if (lhs.hashCode() != rhs.hashCode())
312 throw new RuntimeException("Failure");
313
314 lhs = new JavaTestHelper();
315 rhs = new JavaTestHelper();
316 lhs.req_obj = "foo";
317 rhs.req_obj = "bar";
318 rhs.__isset.req_obj = true;
319 lhs.req_obj = null;
320 rhs.req_obj = null;
321 // this_present = False
322 // that_present = False
323 if (lhs.equals(rhs) != true)
324 throw new RuntimeException("Failure");
325 if (lhs.hashCode() != rhs.hashCode())
326 throw new RuntimeException("Failure");
327
328 lhs = new JavaTestHelper();
329 rhs = new JavaTestHelper();
330 lhs.req_obj = "foo";
331 rhs.req_obj = "foo";
332 lhs.__isset.req_obj = true;
333 lhs.req_obj = null;
334 rhs.req_obj = null;
335 // this_present = False
336 // that_present = False
337 if (lhs.equals(rhs) != true)
338 throw new RuntimeException("Failure");
339 if (lhs.hashCode() != rhs.hashCode())
340 throw new RuntimeException("Failure");
341
342 lhs = new JavaTestHelper();
343 rhs = new JavaTestHelper();
344 lhs.req_obj = "foo";
345 rhs.req_obj = "bar";
346 lhs.__isset.req_obj = true;
347 lhs.req_obj = null;
348 rhs.req_obj = null;
349 // this_present = False
350 // that_present = False
351 if (lhs.equals(rhs) != true)
352 throw new RuntimeException("Failure");
353 if (lhs.hashCode() != rhs.hashCode())
354 throw new RuntimeException("Failure");
355
356 lhs = new JavaTestHelper();
357 rhs = new JavaTestHelper();
358 lhs.req_obj = "foo";
359 rhs.req_obj = "foo";
360 lhs.__isset.req_obj = true;
361 rhs.__isset.req_obj = true;
362 lhs.req_obj = null;
363 rhs.req_obj = null;
364 // this_present = False
365 // that_present = False
366 if (lhs.equals(rhs) != true)
367 throw new RuntimeException("Failure");
368 if (lhs.hashCode() != rhs.hashCode())
369 throw new RuntimeException("Failure");
370
371 lhs = new JavaTestHelper();
372 rhs = new JavaTestHelper();
373 lhs.req_obj = "foo";
374 rhs.req_obj = "bar";
375 lhs.__isset.req_obj = true;
376 rhs.__isset.req_obj = true;
377 lhs.req_obj = null;
378 rhs.req_obj = null;
379 // this_present = False
380 // that_present = False
381 if (lhs.equals(rhs) != true)
382 throw new RuntimeException("Failure");
383 if (lhs.hashCode() != rhs.hashCode())
384 throw new RuntimeException("Failure");
385
386 lhs = new JavaTestHelper();
387 rhs = new JavaTestHelper();
388 lhs.req_obj = "foo";
389 rhs.req_obj = "foo";
390 lhs.req_obj = null;
391 // this_present = False
392 // that_present = True
393 if (lhs.equals(rhs) != false)
394 throw new RuntimeException("Failure");
395
396 lhs = new JavaTestHelper();
397 rhs = new JavaTestHelper();
398 lhs.req_obj = "foo";
399 rhs.req_obj = "bar";
400 lhs.req_obj = null;
401 // this_present = False
402 // that_present = True
403 if (lhs.equals(rhs) != false)
404 throw new RuntimeException("Failure");
405
406 lhs = new JavaTestHelper();
407 rhs = new JavaTestHelper();
408 lhs.req_obj = "foo";
409 rhs.req_obj = "foo";
410 rhs.__isset.req_obj = true;
411 lhs.req_obj = null;
412 // this_present = False
413 // that_present = True
414 if (lhs.equals(rhs) != false)
415 throw new RuntimeException("Failure");
416
417 lhs = new JavaTestHelper();
418 rhs = new JavaTestHelper();
419 lhs.req_obj = "foo";
420 rhs.req_obj = "bar";
421 rhs.__isset.req_obj = true;
422 lhs.req_obj = null;
423 // this_present = False
424 // that_present = True
425 if (lhs.equals(rhs) != false)
426 throw new RuntimeException("Failure");
427
428 lhs = new JavaTestHelper();
429 rhs = new JavaTestHelper();
430 lhs.req_obj = "foo";
431 rhs.req_obj = "foo";
432 lhs.__isset.req_obj = true;
433 lhs.req_obj = null;
434 // this_present = False
435 // that_present = True
436 if (lhs.equals(rhs) != false)
437 throw new RuntimeException("Failure");
438
439 lhs = new JavaTestHelper();
440 rhs = new JavaTestHelper();
441 lhs.req_obj = "foo";
442 rhs.req_obj = "bar";
443 lhs.__isset.req_obj = true;
444 lhs.req_obj = null;
445 // this_present = False
446 // that_present = True
447 if (lhs.equals(rhs) != false)
448 throw new RuntimeException("Failure");
449
450 lhs = new JavaTestHelper();
451 rhs = new JavaTestHelper();
452 lhs.req_obj = "foo";
453 rhs.req_obj = "foo";
454 lhs.__isset.req_obj = true;
455 rhs.__isset.req_obj = true;
456 lhs.req_obj = null;
457 // this_present = False
458 // that_present = True
459 if (lhs.equals(rhs) != false)
460 throw new RuntimeException("Failure");
461
462 lhs = new JavaTestHelper();
463 rhs = new JavaTestHelper();
464 lhs.req_obj = "foo";
465 rhs.req_obj = "bar";
466 lhs.__isset.req_obj = true;
467 rhs.__isset.req_obj = true;
468 lhs.req_obj = null;
469 // this_present = False
470 // that_present = True
471 if (lhs.equals(rhs) != false)
472 throw new RuntimeException("Failure");
473
474 lhs = new JavaTestHelper();
475 rhs = new JavaTestHelper();
476 lhs.req_obj = "foo";
477 rhs.req_obj = "foo";
478 rhs.req_obj = null;
479 // this_present = True
480 // that_present = False
481 if (lhs.equals(rhs) != false)
482 throw new RuntimeException("Failure");
483
484 lhs = new JavaTestHelper();
485 rhs = new JavaTestHelper();
486 lhs.req_obj = "foo";
487 rhs.req_obj = "bar";
488 rhs.req_obj = null;
489 // this_present = True
490 // that_present = False
491 if (lhs.equals(rhs) != false)
492 throw new RuntimeException("Failure");
493
494 lhs = new JavaTestHelper();
495 rhs = new JavaTestHelper();
496 lhs.req_obj = "foo";
497 rhs.req_obj = "foo";
498 rhs.__isset.req_obj = true;
499 rhs.req_obj = null;
500 // this_present = True
501 // that_present = False
502 if (lhs.equals(rhs) != false)
503 throw new RuntimeException("Failure");
504
505 lhs = new JavaTestHelper();
506 rhs = new JavaTestHelper();
507 lhs.req_obj = "foo";
508 rhs.req_obj = "bar";
509 rhs.__isset.req_obj = true;
510 rhs.req_obj = null;
511 // this_present = True
512 // that_present = False
513 if (lhs.equals(rhs) != false)
514 throw new RuntimeException("Failure");
515
516 lhs = new JavaTestHelper();
517 rhs = new JavaTestHelper();
518 lhs.req_obj = "foo";
519 rhs.req_obj = "foo";
520 lhs.__isset.req_obj = true;
521 rhs.req_obj = null;
522 // this_present = True
523 // that_present = False
524 if (lhs.equals(rhs) != false)
525 throw new RuntimeException("Failure");
526
527 lhs = new JavaTestHelper();
528 rhs = new JavaTestHelper();
529 lhs.req_obj = "foo";
530 rhs.req_obj = "bar";
531 lhs.__isset.req_obj = true;
532 rhs.req_obj = null;
533 // this_present = True
534 // that_present = False
535 if (lhs.equals(rhs) != false)
536 throw new RuntimeException("Failure");
537
538 lhs = new JavaTestHelper();
539 rhs = new JavaTestHelper();
540 lhs.req_obj = "foo";
541 rhs.req_obj = "foo";
542 lhs.__isset.req_obj = true;
543 rhs.__isset.req_obj = true;
544 rhs.req_obj = null;
545 // this_present = True
546 // that_present = False
547 if (lhs.equals(rhs) != false)
548 throw new RuntimeException("Failure");
549
550 lhs = new JavaTestHelper();
551 rhs = new JavaTestHelper();
552 lhs.req_obj = "foo";
553 rhs.req_obj = "bar";
554 lhs.__isset.req_obj = true;
555 rhs.__isset.req_obj = true;
556 rhs.req_obj = null;
557 // this_present = True
558 // that_present = False
559 if (lhs.equals(rhs) != false)
560 throw new RuntimeException("Failure");
561
562 lhs = new JavaTestHelper();
563 rhs = new JavaTestHelper();
564 lhs.req_obj = "foo";
565 rhs.req_obj = "foo";
566 // this_present = True
567 // that_present = True
568 if (lhs.equals(rhs) != true)
569 throw new RuntimeException("Failure");
570 if (lhs.hashCode() != rhs.hashCode())
571 throw new RuntimeException("Failure");
572
573 lhs = new JavaTestHelper();
574 rhs = new JavaTestHelper();
575 lhs.req_obj = "foo";
576 rhs.req_obj = "bar";
577 // this_present = True
578 // that_present = True
579 if (lhs.equals(rhs) != false)
580 throw new RuntimeException("Failure");
581
582 lhs = new JavaTestHelper();
583 rhs = new JavaTestHelper();
584 lhs.req_obj = "foo";
585 rhs.req_obj = "foo";
586 rhs.__isset.req_obj = true;
587 // this_present = True
588 // that_present = True
589 if (lhs.equals(rhs) != true)
590 throw new RuntimeException("Failure");
591 if (lhs.hashCode() != rhs.hashCode())
592 throw new RuntimeException("Failure");
593
594 lhs = new JavaTestHelper();
595 rhs = new JavaTestHelper();
596 lhs.req_obj = "foo";
597 rhs.req_obj = "bar";
598 rhs.__isset.req_obj = true;
599 // this_present = True
600 // that_present = True
601 if (lhs.equals(rhs) != false)
602 throw new RuntimeException("Failure");
603
604 lhs = new JavaTestHelper();
605 rhs = new JavaTestHelper();
606 lhs.req_obj = "foo";
607 rhs.req_obj = "foo";
608 lhs.__isset.req_obj = true;
609 // this_present = True
610 // that_present = True
611 if (lhs.equals(rhs) != true)
612 throw new RuntimeException("Failure");
613 if (lhs.hashCode() != rhs.hashCode())
614 throw new RuntimeException("Failure");
615
616 lhs = new JavaTestHelper();
617 rhs = new JavaTestHelper();
618 lhs.req_obj = "foo";
619 rhs.req_obj = "bar";
620 lhs.__isset.req_obj = true;
621 // this_present = True
622 // that_present = True
623 if (lhs.equals(rhs) != false)
624 throw new RuntimeException("Failure");
625
626 lhs = new JavaTestHelper();
627 rhs = new JavaTestHelper();
628 lhs.req_obj = "foo";
629 rhs.req_obj = "foo";
630 lhs.__isset.req_obj = true;
631 rhs.__isset.req_obj = true;
632 // this_present = True
633 // that_present = True
634 if (lhs.equals(rhs) != true)
635 throw new RuntimeException("Failure");
636 if (lhs.hashCode() != rhs.hashCode())
637 throw new RuntimeException("Failure");
638
639 lhs = new JavaTestHelper();
640 rhs = new JavaTestHelper();
641 lhs.req_obj = "foo";
642 rhs.req_obj = "bar";
643 lhs.__isset.req_obj = true;
644 rhs.__isset.req_obj = true;
645 // this_present = True
646 // that_present = True
647 if (lhs.equals(rhs) != false)
648 throw new RuntimeException("Failure");
649
650 lhs = new JavaTestHelper();
651 rhs = new JavaTestHelper();
652 lhs.opt_obj = "foo";
653 rhs.opt_obj = "foo";
654 lhs.opt_obj = null;
655 rhs.opt_obj = null;
656 // this_present = False
657 // that_present = False
658 if (lhs.equals(rhs) != true)
659 throw new RuntimeException("Failure");
660 if (lhs.hashCode() != rhs.hashCode())
661 throw new RuntimeException("Failure");
662
663 lhs = new JavaTestHelper();
664 rhs = new JavaTestHelper();
665 lhs.opt_obj = "foo";
666 rhs.opt_obj = "bar";
667 lhs.opt_obj = null;
668 rhs.opt_obj = null;
669 // this_present = False
670 // that_present = False
671 if (lhs.equals(rhs) != true)
672 throw new RuntimeException("Failure");
673 if (lhs.hashCode() != rhs.hashCode())
674 throw new RuntimeException("Failure");
675
676 lhs = new JavaTestHelper();
677 rhs = new JavaTestHelper();
678 lhs.opt_obj = "foo";
679 rhs.opt_obj = "foo";
680 rhs.__isset.opt_obj = true;
681 lhs.opt_obj = null;
682 rhs.opt_obj = null;
683 // this_present = False
684 // that_present = False
685 if (lhs.equals(rhs) != true)
686 throw new RuntimeException("Failure");
687 if (lhs.hashCode() != rhs.hashCode())
688 throw new RuntimeException("Failure");
689
690 lhs = new JavaTestHelper();
691 rhs = new JavaTestHelper();
692 lhs.opt_obj = "foo";
693 rhs.opt_obj = "bar";
694 rhs.__isset.opt_obj = true;
695 lhs.opt_obj = null;
696 rhs.opt_obj = null;
697 // this_present = False
698 // that_present = False
699 if (lhs.equals(rhs) != true)
700 throw new RuntimeException("Failure");
701 if (lhs.hashCode() != rhs.hashCode())
702 throw new RuntimeException("Failure");
703
704 lhs = new JavaTestHelper();
705 rhs = new JavaTestHelper();
706 lhs.opt_obj = "foo";
707 rhs.opt_obj = "foo";
708 lhs.__isset.opt_obj = true;
709 lhs.opt_obj = null;
710 rhs.opt_obj = null;
711 // this_present = False
712 // that_present = False
713 if (lhs.equals(rhs) != true)
714 throw new RuntimeException("Failure");
715 if (lhs.hashCode() != rhs.hashCode())
716 throw new RuntimeException("Failure");
717
718 lhs = new JavaTestHelper();
719 rhs = new JavaTestHelper();
720 lhs.opt_obj = "foo";
721 rhs.opt_obj = "bar";
722 lhs.__isset.opt_obj = true;
723 lhs.opt_obj = null;
724 rhs.opt_obj = null;
725 // this_present = False
726 // that_present = False
727 if (lhs.equals(rhs) != true)
728 throw new RuntimeException("Failure");
729 if (lhs.hashCode() != rhs.hashCode())
730 throw new RuntimeException("Failure");
731
732 lhs = new JavaTestHelper();
733 rhs = new JavaTestHelper();
734 lhs.opt_obj = "foo";
735 rhs.opt_obj = "foo";
736 lhs.__isset.opt_obj = true;
737 rhs.__isset.opt_obj = true;
738 lhs.opt_obj = null;
739 rhs.opt_obj = null;
740 // this_present = False
741 // that_present = False
742 if (lhs.equals(rhs) != true)
743 throw new RuntimeException("Failure");
744 if (lhs.hashCode() != rhs.hashCode())
745 throw new RuntimeException("Failure");
746
747 lhs = new JavaTestHelper();
748 rhs = new JavaTestHelper();
749 lhs.opt_obj = "foo";
750 rhs.opt_obj = "bar";
751 lhs.__isset.opt_obj = true;
752 rhs.__isset.opt_obj = true;
753 lhs.opt_obj = null;
754 rhs.opt_obj = null;
755 // this_present = False
756 // that_present = False
757 if (lhs.equals(rhs) != true)
758 throw new RuntimeException("Failure");
759 if (lhs.hashCode() != rhs.hashCode())
760 throw new RuntimeException("Failure");
761
762 lhs = new JavaTestHelper();
763 rhs = new JavaTestHelper();
764 lhs.opt_obj = "foo";
765 rhs.opt_obj = "foo";
766 lhs.opt_obj = null;
767 // this_present = False
768 // that_present = False
769 if (lhs.equals(rhs) != true)
770 throw new RuntimeException("Failure");
771 if (lhs.hashCode() != rhs.hashCode())
772 throw new RuntimeException("Failure");
773
774 lhs = new JavaTestHelper();
775 rhs = new JavaTestHelper();
776 lhs.opt_obj = "foo";
777 rhs.opt_obj = "bar";
778 lhs.opt_obj = null;
779 // this_present = False
780 // that_present = False
781 if (lhs.equals(rhs) != true)
782 throw new RuntimeException("Failure");
783 if (lhs.hashCode() != rhs.hashCode())
784 throw new RuntimeException("Failure");
785
786 lhs = new JavaTestHelper();
787 rhs = new JavaTestHelper();
788 lhs.opt_obj = "foo";
789 rhs.opt_obj = "foo";
790 rhs.__isset.opt_obj = true;
791 lhs.opt_obj = null;
792 // this_present = False
793 // that_present = True
794 if (lhs.equals(rhs) != false)
795 throw new RuntimeException("Failure");
796
797 lhs = new JavaTestHelper();
798 rhs = new JavaTestHelper();
799 lhs.opt_obj = "foo";
800 rhs.opt_obj = "bar";
801 rhs.__isset.opt_obj = true;
802 lhs.opt_obj = null;
803 // this_present = False
804 // that_present = True
805 if (lhs.equals(rhs) != false)
806 throw new RuntimeException("Failure");
807
808 lhs = new JavaTestHelper();
809 rhs = new JavaTestHelper();
810 lhs.opt_obj = "foo";
811 rhs.opt_obj = "foo";
812 lhs.__isset.opt_obj = true;
813 lhs.opt_obj = null;
814 // this_present = False
815 // that_present = False
816 if (lhs.equals(rhs) != true)
817 throw new RuntimeException("Failure");
818 if (lhs.hashCode() != rhs.hashCode())
819 throw new RuntimeException("Failure");
820
821 lhs = new JavaTestHelper();
822 rhs = new JavaTestHelper();
823 lhs.opt_obj = "foo";
824 rhs.opt_obj = "bar";
825 lhs.__isset.opt_obj = true;
826 lhs.opt_obj = null;
827 // this_present = False
828 // that_present = False
829 if (lhs.equals(rhs) != true)
830 throw new RuntimeException("Failure");
831 if (lhs.hashCode() != rhs.hashCode())
832 throw new RuntimeException("Failure");
833
834 lhs = new JavaTestHelper();
835 rhs = new JavaTestHelper();
836 lhs.opt_obj = "foo";
837 rhs.opt_obj = "foo";
838 lhs.__isset.opt_obj = true;
839 rhs.__isset.opt_obj = true;
840 lhs.opt_obj = null;
841 // this_present = False
842 // that_present = True
843 if (lhs.equals(rhs) != false)
844 throw new RuntimeException("Failure");
845
846 lhs = new JavaTestHelper();
847 rhs = new JavaTestHelper();
848 lhs.opt_obj = "foo";
849 rhs.opt_obj = "bar";
850 lhs.__isset.opt_obj = true;
851 rhs.__isset.opt_obj = true;
852 lhs.opt_obj = null;
853 // this_present = False
854 // that_present = True
855 if (lhs.equals(rhs) != false)
856 throw new RuntimeException("Failure");
857
858 lhs = new JavaTestHelper();
859 rhs = new JavaTestHelper();
860 lhs.opt_obj = "foo";
861 rhs.opt_obj = "foo";
862 rhs.opt_obj = null;
863 // this_present = False
864 // that_present = False
865 if (lhs.equals(rhs) != true)
866 throw new RuntimeException("Failure");
867 if (lhs.hashCode() != rhs.hashCode())
868 throw new RuntimeException("Failure");
869
870 lhs = new JavaTestHelper();
871 rhs = new JavaTestHelper();
872 lhs.opt_obj = "foo";
873 rhs.opt_obj = "bar";
874 rhs.opt_obj = null;
875 // this_present = False
876 // that_present = False
877 if (lhs.equals(rhs) != true)
878 throw new RuntimeException("Failure");
879 if (lhs.hashCode() != rhs.hashCode())
880 throw new RuntimeException("Failure");
881
882 lhs = new JavaTestHelper();
883 rhs = new JavaTestHelper();
884 lhs.opt_obj = "foo";
885 rhs.opt_obj = "foo";
886 rhs.__isset.opt_obj = true;
887 rhs.opt_obj = null;
888 // this_present = False
889 // that_present = False
890 if (lhs.equals(rhs) != true)
891 throw new RuntimeException("Failure");
892 if (lhs.hashCode() != rhs.hashCode())
893 throw new RuntimeException("Failure");
894
895 lhs = new JavaTestHelper();
896 rhs = new JavaTestHelper();
897 lhs.opt_obj = "foo";
898 rhs.opt_obj = "bar";
899 rhs.__isset.opt_obj = true;
900 rhs.opt_obj = null;
901 // this_present = False
902 // that_present = False
903 if (lhs.equals(rhs) != true)
904 throw new RuntimeException("Failure");
905 if (lhs.hashCode() != rhs.hashCode())
906 throw new RuntimeException("Failure");
907
908 lhs = new JavaTestHelper();
909 rhs = new JavaTestHelper();
910 lhs.opt_obj = "foo";
911 rhs.opt_obj = "foo";
912 lhs.__isset.opt_obj = true;
913 rhs.opt_obj = null;
914 // this_present = True
915 // that_present = False
916 if (lhs.equals(rhs) != false)
917 throw new RuntimeException("Failure");
918
919 lhs = new JavaTestHelper();
920 rhs = new JavaTestHelper();
921 lhs.opt_obj = "foo";
922 rhs.opt_obj = "bar";
923 lhs.__isset.opt_obj = true;
924 rhs.opt_obj = null;
925 // this_present = True
926 // that_present = False
927 if (lhs.equals(rhs) != false)
928 throw new RuntimeException("Failure");
929
930 lhs = new JavaTestHelper();
931 rhs = new JavaTestHelper();
932 lhs.opt_obj = "foo";
933 rhs.opt_obj = "foo";
934 lhs.__isset.opt_obj = true;
935 rhs.__isset.opt_obj = true;
936 rhs.opt_obj = null;
937 // this_present = True
938 // that_present = False
939 if (lhs.equals(rhs) != false)
940 throw new RuntimeException("Failure");
941
942 lhs = new JavaTestHelper();
943 rhs = new JavaTestHelper();
944 lhs.opt_obj = "foo";
945 rhs.opt_obj = "bar";
946 lhs.__isset.opt_obj = true;
947 rhs.__isset.opt_obj = true;
948 rhs.opt_obj = null;
949 // this_present = True
950 // that_present = False
951 if (lhs.equals(rhs) != false)
952 throw new RuntimeException("Failure");
953
954 lhs = new JavaTestHelper();
955 rhs = new JavaTestHelper();
956 lhs.opt_obj = "foo";
957 rhs.opt_obj = "foo";
958 // this_present = False
959 // that_present = False
960 if (lhs.equals(rhs) != true)
961 throw new RuntimeException("Failure");
962 if (lhs.hashCode() != rhs.hashCode())
963 throw new RuntimeException("Failure");
964
965 lhs = new JavaTestHelper();
966 rhs = new JavaTestHelper();
967 lhs.opt_obj = "foo";
968 rhs.opt_obj = "bar";
969 // this_present = False
970 // that_present = False
971 if (lhs.equals(rhs) != true)
972 throw new RuntimeException("Failure");
973 if (lhs.hashCode() != rhs.hashCode())
974 throw new RuntimeException("Failure");
975
976 lhs = new JavaTestHelper();
977 rhs = new JavaTestHelper();
978 lhs.opt_obj = "foo";
979 rhs.opt_obj = "foo";
980 rhs.__isset.opt_obj = true;
981 // this_present = False
982 // that_present = True
983 if (lhs.equals(rhs) != false)
984 throw new RuntimeException("Failure");
985
986 lhs = new JavaTestHelper();
987 rhs = new JavaTestHelper();
988 lhs.opt_obj = "foo";
989 rhs.opt_obj = "bar";
990 rhs.__isset.opt_obj = true;
991 // this_present = False
992 // that_present = True
993 if (lhs.equals(rhs) != false)
994 throw new RuntimeException("Failure");
995
996 lhs = new JavaTestHelper();
997 rhs = new JavaTestHelper();
998 lhs.opt_obj = "foo";
999 rhs.opt_obj = "foo";
1000 lhs.__isset.opt_obj = true;
1001 // this_present = True
1002 // that_present = False
1003 if (lhs.equals(rhs) != false)
1004 throw new RuntimeException("Failure");
1005
1006 lhs = new JavaTestHelper();
1007 rhs = new JavaTestHelper();
1008 lhs.opt_obj = "foo";
1009 rhs.opt_obj = "bar";
1010 lhs.__isset.opt_obj = true;
1011 // this_present = True
1012 // that_present = False
1013 if (lhs.equals(rhs) != false)
1014 throw new RuntimeException("Failure");
1015
1016 lhs = new JavaTestHelper();
1017 rhs = new JavaTestHelper();
1018 lhs.opt_obj = "foo";
1019 rhs.opt_obj = "foo";
1020 lhs.__isset.opt_obj = true;
1021 rhs.__isset.opt_obj = true;
1022 // this_present = True
1023 // that_present = True
1024 if (lhs.equals(rhs) != true)
1025 throw new RuntimeException("Failure");
1026 if (lhs.hashCode() != rhs.hashCode())
1027 throw new RuntimeException("Failure");
1028
1029 lhs = new JavaTestHelper();
1030 rhs = new JavaTestHelper();
1031 lhs.opt_obj = "foo";
1032 rhs.opt_obj = "bar";
1033 lhs.__isset.opt_obj = true;
1034 rhs.__isset.opt_obj = true;
1035 // this_present = True
1036 // that_present = True
1037 if (lhs.equals(rhs) != false)
1038 throw new RuntimeException("Failure");
1039
1040 lhs = new JavaTestHelper();
1041 rhs = new JavaTestHelper();
1042 lhs.req_bin = new byte[]{1,2};
1043 rhs.req_bin = new byte[]{1,2};
1044 lhs.req_bin = null;
1045 rhs.req_bin = null;
1046 // this_present = False
1047 // that_present = False
1048 if (lhs.equals(rhs) != true)
1049 throw new RuntimeException("Failure");
1050 if (lhs.hashCode() != rhs.hashCode())
1051 throw new RuntimeException("Failure");
1052
1053 lhs = new JavaTestHelper();
1054 rhs = new JavaTestHelper();
1055 lhs.req_bin = new byte[]{1,2};
1056 rhs.req_bin = new byte[]{3,4};
1057 lhs.req_bin = null;
1058 rhs.req_bin = null;
1059 // this_present = False
1060 // that_present = False
1061 if (lhs.equals(rhs) != true)
1062 throw new RuntimeException("Failure");
1063 if (lhs.hashCode() != rhs.hashCode())
1064 throw new RuntimeException("Failure");
1065
1066 lhs = new JavaTestHelper();
1067 rhs = new JavaTestHelper();
1068 lhs.req_bin = new byte[]{1,2};
1069 rhs.req_bin = new byte[]{1,2};
1070 rhs.__isset.req_bin = true;
1071 lhs.req_bin = null;
1072 rhs.req_bin = null;
1073 // this_present = False
1074 // that_present = False
1075 if (lhs.equals(rhs) != true)
1076 throw new RuntimeException("Failure");
1077 if (lhs.hashCode() != rhs.hashCode())
1078 throw new RuntimeException("Failure");
1079
1080 lhs = new JavaTestHelper();
1081 rhs = new JavaTestHelper();
1082 lhs.req_bin = new byte[]{1,2};
1083 rhs.req_bin = new byte[]{3,4};
1084 rhs.__isset.req_bin = true;
1085 lhs.req_bin = null;
1086 rhs.req_bin = null;
1087 // this_present = False
1088 // that_present = False
1089 if (lhs.equals(rhs) != true)
1090 throw new RuntimeException("Failure");
1091 if (lhs.hashCode() != rhs.hashCode())
1092 throw new RuntimeException("Failure");
1093
1094 lhs = new JavaTestHelper();
1095 rhs = new JavaTestHelper();
1096 lhs.req_bin = new byte[]{1,2};
1097 rhs.req_bin = new byte[]{1,2};
1098 lhs.__isset.req_bin = true;
1099 lhs.req_bin = null;
1100 rhs.req_bin = null;
1101 // this_present = False
1102 // that_present = False
1103 if (lhs.equals(rhs) != true)
1104 throw new RuntimeException("Failure");
1105 if (lhs.hashCode() != rhs.hashCode())
1106 throw new RuntimeException("Failure");
1107
1108 lhs = new JavaTestHelper();
1109 rhs = new JavaTestHelper();
1110 lhs.req_bin = new byte[]{1,2};
1111 rhs.req_bin = new byte[]{3,4};
1112 lhs.__isset.req_bin = true;
1113 lhs.req_bin = null;
1114 rhs.req_bin = null;
1115 // this_present = False
1116 // that_present = False
1117 if (lhs.equals(rhs) != true)
1118 throw new RuntimeException("Failure");
1119 if (lhs.hashCode() != rhs.hashCode())
1120 throw new RuntimeException("Failure");
1121
1122 lhs = new JavaTestHelper();
1123 rhs = new JavaTestHelper();
1124 lhs.req_bin = new byte[]{1,2};
1125 rhs.req_bin = new byte[]{1,2};
1126 lhs.__isset.req_bin = true;
1127 rhs.__isset.req_bin = true;
1128 lhs.req_bin = null;
1129 rhs.req_bin = null;
1130 // this_present = False
1131 // that_present = False
1132 if (lhs.equals(rhs) != true)
1133 throw new RuntimeException("Failure");
1134 if (lhs.hashCode() != rhs.hashCode())
1135 throw new RuntimeException("Failure");
1136
1137 lhs = new JavaTestHelper();
1138 rhs = new JavaTestHelper();
1139 lhs.req_bin = new byte[]{1,2};
1140 rhs.req_bin = new byte[]{3,4};
1141 lhs.__isset.req_bin = true;
1142 rhs.__isset.req_bin = true;
1143 lhs.req_bin = null;
1144 rhs.req_bin = null;
1145 // this_present = False
1146 // that_present = False
1147 if (lhs.equals(rhs) != true)
1148 throw new RuntimeException("Failure");
1149 if (lhs.hashCode() != rhs.hashCode())
1150 throw new RuntimeException("Failure");
1151
1152 lhs = new JavaTestHelper();
1153 rhs = new JavaTestHelper();
1154 lhs.req_bin = new byte[]{1,2};
1155 rhs.req_bin = new byte[]{1,2};
1156 lhs.req_bin = null;
1157 // this_present = False
1158 // that_present = True
1159 if (lhs.equals(rhs) != false)
1160 throw new RuntimeException("Failure");
1161
1162 lhs = new JavaTestHelper();
1163 rhs = new JavaTestHelper();
1164 lhs.req_bin = new byte[]{1,2};
1165 rhs.req_bin = new byte[]{3,4};
1166 lhs.req_bin = null;
1167 // this_present = False
1168 // that_present = True
1169 if (lhs.equals(rhs) != false)
1170 throw new RuntimeException("Failure");
1171
1172 lhs = new JavaTestHelper();
1173 rhs = new JavaTestHelper();
1174 lhs.req_bin = new byte[]{1,2};
1175 rhs.req_bin = new byte[]{1,2};
1176 rhs.__isset.req_bin = true;
1177 lhs.req_bin = null;
1178 // this_present = False
1179 // that_present = True
1180 if (lhs.equals(rhs) != false)
1181 throw new RuntimeException("Failure");
1182
1183 lhs = new JavaTestHelper();
1184 rhs = new JavaTestHelper();
1185 lhs.req_bin = new byte[]{1,2};
1186 rhs.req_bin = new byte[]{3,4};
1187 rhs.__isset.req_bin = true;
1188 lhs.req_bin = null;
1189 // this_present = False
1190 // that_present = True
1191 if (lhs.equals(rhs) != false)
1192 throw new RuntimeException("Failure");
1193
1194 lhs = new JavaTestHelper();
1195 rhs = new JavaTestHelper();
1196 lhs.req_bin = new byte[]{1,2};
1197 rhs.req_bin = new byte[]{1,2};
1198 lhs.__isset.req_bin = true;
1199 lhs.req_bin = null;
1200 // this_present = False
1201 // that_present = True
1202 if (lhs.equals(rhs) != false)
1203 throw new RuntimeException("Failure");
1204
1205 lhs = new JavaTestHelper();
1206 rhs = new JavaTestHelper();
1207 lhs.req_bin = new byte[]{1,2};
1208 rhs.req_bin = new byte[]{3,4};
1209 lhs.__isset.req_bin = true;
1210 lhs.req_bin = null;
1211 // this_present = False
1212 // that_present = True
1213 if (lhs.equals(rhs) != false)
1214 throw new RuntimeException("Failure");
1215
1216 lhs = new JavaTestHelper();
1217 rhs = new JavaTestHelper();
1218 lhs.req_bin = new byte[]{1,2};
1219 rhs.req_bin = new byte[]{1,2};
1220 lhs.__isset.req_bin = true;
1221 rhs.__isset.req_bin = true;
1222 lhs.req_bin = null;
1223 // this_present = False
1224 // that_present = True
1225 if (lhs.equals(rhs) != false)
1226 throw new RuntimeException("Failure");
1227
1228 lhs = new JavaTestHelper();
1229 rhs = new JavaTestHelper();
1230 lhs.req_bin = new byte[]{1,2};
1231 rhs.req_bin = new byte[]{3,4};
1232 lhs.__isset.req_bin = true;
1233 rhs.__isset.req_bin = true;
1234 lhs.req_bin = null;
1235 // this_present = False
1236 // that_present = True
1237 if (lhs.equals(rhs) != false)
1238 throw new RuntimeException("Failure");
1239
1240 lhs = new JavaTestHelper();
1241 rhs = new JavaTestHelper();
1242 lhs.req_bin = new byte[]{1,2};
1243 rhs.req_bin = new byte[]{1,2};
1244 rhs.req_bin = null;
1245 // this_present = True
1246 // that_present = False
1247 if (lhs.equals(rhs) != false)
1248 throw new RuntimeException("Failure");
1249
1250 lhs = new JavaTestHelper();
1251 rhs = new JavaTestHelper();
1252 lhs.req_bin = new byte[]{1,2};
1253 rhs.req_bin = new byte[]{3,4};
1254 rhs.req_bin = null;
1255 // this_present = True
1256 // that_present = False
1257 if (lhs.equals(rhs) != false)
1258 throw new RuntimeException("Failure");
1259
1260 lhs = new JavaTestHelper();
1261 rhs = new JavaTestHelper();
1262 lhs.req_bin = new byte[]{1,2};
1263 rhs.req_bin = new byte[]{1,2};
1264 rhs.__isset.req_bin = true;
1265 rhs.req_bin = null;
1266 // this_present = True
1267 // that_present = False
1268 if (lhs.equals(rhs) != false)
1269 throw new RuntimeException("Failure");
1270
1271 lhs = new JavaTestHelper();
1272 rhs = new JavaTestHelper();
1273 lhs.req_bin = new byte[]{1,2};
1274 rhs.req_bin = new byte[]{3,4};
1275 rhs.__isset.req_bin = true;
1276 rhs.req_bin = null;
1277 // this_present = True
1278 // that_present = False
1279 if (lhs.equals(rhs) != false)
1280 throw new RuntimeException("Failure");
1281
1282 lhs = new JavaTestHelper();
1283 rhs = new JavaTestHelper();
1284 lhs.req_bin = new byte[]{1,2};
1285 rhs.req_bin = new byte[]{1,2};
1286 lhs.__isset.req_bin = true;
1287 rhs.req_bin = null;
1288 // this_present = True
1289 // that_present = False
1290 if (lhs.equals(rhs) != false)
1291 throw new RuntimeException("Failure");
1292
1293 lhs = new JavaTestHelper();
1294 rhs = new JavaTestHelper();
1295 lhs.req_bin = new byte[]{1,2};
1296 rhs.req_bin = new byte[]{3,4};
1297 lhs.__isset.req_bin = true;
1298 rhs.req_bin = null;
1299 // this_present = True
1300 // that_present = False
1301 if (lhs.equals(rhs) != false)
1302 throw new RuntimeException("Failure");
1303
1304 lhs = new JavaTestHelper();
1305 rhs = new JavaTestHelper();
1306 lhs.req_bin = new byte[]{1,2};
1307 rhs.req_bin = new byte[]{1,2};
1308 lhs.__isset.req_bin = true;
1309 rhs.__isset.req_bin = true;
1310 rhs.req_bin = null;
1311 // this_present = True
1312 // that_present = False
1313 if (lhs.equals(rhs) != false)
1314 throw new RuntimeException("Failure");
1315
1316 lhs = new JavaTestHelper();
1317 rhs = new JavaTestHelper();
1318 lhs.req_bin = new byte[]{1,2};
1319 rhs.req_bin = new byte[]{3,4};
1320 lhs.__isset.req_bin = true;
1321 rhs.__isset.req_bin = true;
1322 rhs.req_bin = null;
1323 // this_present = True
1324 // that_present = False
1325 if (lhs.equals(rhs) != false)
1326 throw new RuntimeException("Failure");
1327
1328 lhs = new JavaTestHelper();
1329 rhs = new JavaTestHelper();
1330 lhs.req_bin = new byte[]{1,2};
1331 rhs.req_bin = new byte[]{1,2};
1332 // this_present = True
1333 // that_present = True
1334 if (lhs.equals(rhs) != true)
1335 throw new RuntimeException("Failure");
1336 if (lhs.hashCode() != rhs.hashCode())
1337 throw new RuntimeException("Failure");
1338
1339 lhs = new JavaTestHelper();
1340 rhs = new JavaTestHelper();
1341 lhs.req_bin = new byte[]{1,2};
1342 rhs.req_bin = new byte[]{3,4};
1343 // this_present = True
1344 // that_present = True
1345 if (lhs.equals(rhs) != false)
1346 throw new RuntimeException("Failure");
1347
1348 lhs = new JavaTestHelper();
1349 rhs = new JavaTestHelper();
1350 lhs.req_bin = new byte[]{1,2};
1351 rhs.req_bin = new byte[]{1,2};
1352 rhs.__isset.req_bin = true;
1353 // this_present = True
1354 // that_present = True
1355 if (lhs.equals(rhs) != true)
1356 throw new RuntimeException("Failure");
1357 if (lhs.hashCode() != rhs.hashCode())
1358 throw new RuntimeException("Failure");
1359
1360 lhs = new JavaTestHelper();
1361 rhs = new JavaTestHelper();
1362 lhs.req_bin = new byte[]{1,2};
1363 rhs.req_bin = new byte[]{3,4};
1364 rhs.__isset.req_bin = true;
1365 // this_present = True
1366 // that_present = True
1367 if (lhs.equals(rhs) != false)
1368 throw new RuntimeException("Failure");
1369
1370 lhs = new JavaTestHelper();
1371 rhs = new JavaTestHelper();
1372 lhs.req_bin = new byte[]{1,2};
1373 rhs.req_bin = new byte[]{1,2};
1374 lhs.__isset.req_bin = true;
1375 // this_present = True
1376 // that_present = True
1377 if (lhs.equals(rhs) != true)
1378 throw new RuntimeException("Failure");
1379 if (lhs.hashCode() != rhs.hashCode())
1380 throw new RuntimeException("Failure");
1381
1382 lhs = new JavaTestHelper();
1383 rhs = new JavaTestHelper();
1384 lhs.req_bin = new byte[]{1,2};
1385 rhs.req_bin = new byte[]{3,4};
1386 lhs.__isset.req_bin = true;
1387 // this_present = True
1388 // that_present = True
1389 if (lhs.equals(rhs) != false)
1390 throw new RuntimeException("Failure");
1391
1392 lhs = new JavaTestHelper();
1393 rhs = new JavaTestHelper();
1394 lhs.req_bin = new byte[]{1,2};
1395 rhs.req_bin = new byte[]{1,2};
1396 lhs.__isset.req_bin = true;
1397 rhs.__isset.req_bin = true;
1398 // this_present = True
1399 // that_present = True
1400 if (lhs.equals(rhs) != true)
1401 throw new RuntimeException("Failure");
1402 if (lhs.hashCode() != rhs.hashCode())
1403 throw new RuntimeException("Failure");
1404
1405 lhs = new JavaTestHelper();
1406 rhs = new JavaTestHelper();
1407 lhs.req_bin = new byte[]{1,2};
1408 rhs.req_bin = new byte[]{3,4};
1409 lhs.__isset.req_bin = true;
1410 rhs.__isset.req_bin = true;
1411 // this_present = True
1412 // that_present = True
1413 if (lhs.equals(rhs) != false)
1414 throw new RuntimeException("Failure");
1415
1416 lhs = new JavaTestHelper();
1417 rhs = new JavaTestHelper();
1418 lhs.opt_bin = new byte[]{1,2};
1419 rhs.opt_bin = new byte[]{1,2};
1420 lhs.opt_bin = null;
1421 rhs.opt_bin = null;
1422 // this_present = False
1423 // that_present = False
1424 if (lhs.equals(rhs) != true)
1425 throw new RuntimeException("Failure");
1426 if (lhs.hashCode() != rhs.hashCode())
1427 throw new RuntimeException("Failure");
1428
1429 lhs = new JavaTestHelper();
1430 rhs = new JavaTestHelper();
1431 lhs.opt_bin = new byte[]{1,2};
1432 rhs.opt_bin = new byte[]{3,4};
1433 lhs.opt_bin = null;
1434 rhs.opt_bin = null;
1435 // this_present = False
1436 // that_present = False
1437 if (lhs.equals(rhs) != true)
1438 throw new RuntimeException("Failure");
1439 if (lhs.hashCode() != rhs.hashCode())
1440 throw new RuntimeException("Failure");
1441
1442 lhs = new JavaTestHelper();
1443 rhs = new JavaTestHelper();
1444 lhs.opt_bin = new byte[]{1,2};
1445 rhs.opt_bin = new byte[]{1,2};
1446 rhs.__isset.opt_bin = true;
1447 lhs.opt_bin = null;
1448 rhs.opt_bin = null;
1449 // this_present = False
1450 // that_present = False
1451 if (lhs.equals(rhs) != true)
1452 throw new RuntimeException("Failure");
1453 if (lhs.hashCode() != rhs.hashCode())
1454 throw new RuntimeException("Failure");
1455
1456 lhs = new JavaTestHelper();
1457 rhs = new JavaTestHelper();
1458 lhs.opt_bin = new byte[]{1,2};
1459 rhs.opt_bin = new byte[]{3,4};
1460 rhs.__isset.opt_bin = true;
1461 lhs.opt_bin = null;
1462 rhs.opt_bin = null;
1463 // this_present = False
1464 // that_present = False
1465 if (lhs.equals(rhs) != true)
1466 throw new RuntimeException("Failure");
1467 if (lhs.hashCode() != rhs.hashCode())
1468 throw new RuntimeException("Failure");
1469
1470 lhs = new JavaTestHelper();
1471 rhs = new JavaTestHelper();
1472 lhs.opt_bin = new byte[]{1,2};
1473 rhs.opt_bin = new byte[]{1,2};
1474 lhs.__isset.opt_bin = true;
1475 lhs.opt_bin = null;
1476 rhs.opt_bin = null;
1477 // this_present = False
1478 // that_present = False
1479 if (lhs.equals(rhs) != true)
1480 throw new RuntimeException("Failure");
1481 if (lhs.hashCode() != rhs.hashCode())
1482 throw new RuntimeException("Failure");
1483
1484 lhs = new JavaTestHelper();
1485 rhs = new JavaTestHelper();
1486 lhs.opt_bin = new byte[]{1,2};
1487 rhs.opt_bin = new byte[]{3,4};
1488 lhs.__isset.opt_bin = true;
1489 lhs.opt_bin = null;
1490 rhs.opt_bin = null;
1491 // this_present = False
1492 // that_present = False
1493 if (lhs.equals(rhs) != true)
1494 throw new RuntimeException("Failure");
1495 if (lhs.hashCode() != rhs.hashCode())
1496 throw new RuntimeException("Failure");
1497
1498 lhs = new JavaTestHelper();
1499 rhs = new JavaTestHelper();
1500 lhs.opt_bin = new byte[]{1,2};
1501 rhs.opt_bin = new byte[]{1,2};
1502 lhs.__isset.opt_bin = true;
1503 rhs.__isset.opt_bin = true;
1504 lhs.opt_bin = null;
1505 rhs.opt_bin = null;
1506 // this_present = False
1507 // that_present = False
1508 if (lhs.equals(rhs) != true)
1509 throw new RuntimeException("Failure");
1510 if (lhs.hashCode() != rhs.hashCode())
1511 throw new RuntimeException("Failure");
1512
1513 lhs = new JavaTestHelper();
1514 rhs = new JavaTestHelper();
1515 lhs.opt_bin = new byte[]{1,2};
1516 rhs.opt_bin = new byte[]{3,4};
1517 lhs.__isset.opt_bin = true;
1518 rhs.__isset.opt_bin = true;
1519 lhs.opt_bin = null;
1520 rhs.opt_bin = null;
1521 // this_present = False
1522 // that_present = False
1523 if (lhs.equals(rhs) != true)
1524 throw new RuntimeException("Failure");
1525 if (lhs.hashCode() != rhs.hashCode())
1526 throw new RuntimeException("Failure");
1527
1528 lhs = new JavaTestHelper();
1529 rhs = new JavaTestHelper();
1530 lhs.opt_bin = new byte[]{1,2};
1531 rhs.opt_bin = new byte[]{1,2};
1532 lhs.opt_bin = null;
1533 // this_present = False
1534 // that_present = False
1535 if (lhs.equals(rhs) != true)
1536 throw new RuntimeException("Failure");
1537 if (lhs.hashCode() != rhs.hashCode())
1538 throw new RuntimeException("Failure");
1539
1540 lhs = new JavaTestHelper();
1541 rhs = new JavaTestHelper();
1542 lhs.opt_bin = new byte[]{1,2};
1543 rhs.opt_bin = new byte[]{3,4};
1544 lhs.opt_bin = null;
1545 // this_present = False
1546 // that_present = False
1547 if (lhs.equals(rhs) != true)
1548 throw new RuntimeException("Failure");
1549 if (lhs.hashCode() != rhs.hashCode())
1550 throw new RuntimeException("Failure");
1551
1552 lhs = new JavaTestHelper();
1553 rhs = new JavaTestHelper();
1554 lhs.opt_bin = new byte[]{1,2};
1555 rhs.opt_bin = new byte[]{1,2};
1556 rhs.__isset.opt_bin = true;
1557 lhs.opt_bin = null;
1558 // this_present = False
1559 // that_present = True
1560 if (lhs.equals(rhs) != false)
1561 throw new RuntimeException("Failure");
1562
1563 lhs = new JavaTestHelper();
1564 rhs = new JavaTestHelper();
1565 lhs.opt_bin = new byte[]{1,2};
1566 rhs.opt_bin = new byte[]{3,4};
1567 rhs.__isset.opt_bin = true;
1568 lhs.opt_bin = null;
1569 // this_present = False
1570 // that_present = True
1571 if (lhs.equals(rhs) != false)
1572 throw new RuntimeException("Failure");
1573
1574 lhs = new JavaTestHelper();
1575 rhs = new JavaTestHelper();
1576 lhs.opt_bin = new byte[]{1,2};
1577 rhs.opt_bin = new byte[]{1,2};
1578 lhs.__isset.opt_bin = true;
1579 lhs.opt_bin = null;
1580 // this_present = False
1581 // that_present = False
1582 if (lhs.equals(rhs) != true)
1583 throw new RuntimeException("Failure");
1584 if (lhs.hashCode() != rhs.hashCode())
1585 throw new RuntimeException("Failure");
1586
1587 lhs = new JavaTestHelper();
1588 rhs = new JavaTestHelper();
1589 lhs.opt_bin = new byte[]{1,2};
1590 rhs.opt_bin = new byte[]{3,4};
1591 lhs.__isset.opt_bin = true;
1592 lhs.opt_bin = null;
1593 // this_present = False
1594 // that_present = False
1595 if (lhs.equals(rhs) != true)
1596 throw new RuntimeException("Failure");
1597 if (lhs.hashCode() != rhs.hashCode())
1598 throw new RuntimeException("Failure");
1599
1600 lhs = new JavaTestHelper();
1601 rhs = new JavaTestHelper();
1602 lhs.opt_bin = new byte[]{1,2};
1603 rhs.opt_bin = new byte[]{1,2};
1604 lhs.__isset.opt_bin = true;
1605 rhs.__isset.opt_bin = true;
1606 lhs.opt_bin = null;
1607 // this_present = False
1608 // that_present = True
1609 if (lhs.equals(rhs) != false)
1610 throw new RuntimeException("Failure");
1611
1612 lhs = new JavaTestHelper();
1613 rhs = new JavaTestHelper();
1614 lhs.opt_bin = new byte[]{1,2};
1615 rhs.opt_bin = new byte[]{3,4};
1616 lhs.__isset.opt_bin = true;
1617 rhs.__isset.opt_bin = true;
1618 lhs.opt_bin = null;
1619 // this_present = False
1620 // that_present = True
1621 if (lhs.equals(rhs) != false)
1622 throw new RuntimeException("Failure");
1623
1624 lhs = new JavaTestHelper();
1625 rhs = new JavaTestHelper();
1626 lhs.opt_bin = new byte[]{1,2};
1627 rhs.opt_bin = new byte[]{1,2};
1628 rhs.opt_bin = null;
1629 // this_present = False
1630 // that_present = False
1631 if (lhs.equals(rhs) != true)
1632 throw new RuntimeException("Failure");
1633 if (lhs.hashCode() != rhs.hashCode())
1634 throw new RuntimeException("Failure");
1635
1636 lhs = new JavaTestHelper();
1637 rhs = new JavaTestHelper();
1638 lhs.opt_bin = new byte[]{1,2};
1639 rhs.opt_bin = new byte[]{3,4};
1640 rhs.opt_bin = null;
1641 // this_present = False
1642 // that_present = False
1643 if (lhs.equals(rhs) != true)
1644 throw new RuntimeException("Failure");
1645 if (lhs.hashCode() != rhs.hashCode())
1646 throw new RuntimeException("Failure");
1647
1648 lhs = new JavaTestHelper();
1649 rhs = new JavaTestHelper();
1650 lhs.opt_bin = new byte[]{1,2};
1651 rhs.opt_bin = new byte[]{1,2};
1652 rhs.__isset.opt_bin = true;
1653 rhs.opt_bin = null;
1654 // this_present = False
1655 // that_present = False
1656 if (lhs.equals(rhs) != true)
1657 throw new RuntimeException("Failure");
1658 if (lhs.hashCode() != rhs.hashCode())
1659 throw new RuntimeException("Failure");
1660
1661 lhs = new JavaTestHelper();
1662 rhs = new JavaTestHelper();
1663 lhs.opt_bin = new byte[]{1,2};
1664 rhs.opt_bin = new byte[]{3,4};
1665 rhs.__isset.opt_bin = true;
1666 rhs.opt_bin = null;
1667 // this_present = False
1668 // that_present = False
1669 if (lhs.equals(rhs) != true)
1670 throw new RuntimeException("Failure");
1671 if (lhs.hashCode() != rhs.hashCode())
1672 throw new RuntimeException("Failure");
1673
1674 lhs = new JavaTestHelper();
1675 rhs = new JavaTestHelper();
1676 lhs.opt_bin = new byte[]{1,2};
1677 rhs.opt_bin = new byte[]{1,2};
1678 lhs.__isset.opt_bin = true;
1679 rhs.opt_bin = null;
1680 // this_present = True
1681 // that_present = False
1682 if (lhs.equals(rhs) != false)
1683 throw new RuntimeException("Failure");
1684
1685 lhs = new JavaTestHelper();
1686 rhs = new JavaTestHelper();
1687 lhs.opt_bin = new byte[]{1,2};
1688 rhs.opt_bin = new byte[]{3,4};
1689 lhs.__isset.opt_bin = true;
1690 rhs.opt_bin = null;
1691 // this_present = True
1692 // that_present = False
1693 if (lhs.equals(rhs) != false)
1694 throw new RuntimeException("Failure");
1695
1696 lhs = new JavaTestHelper();
1697 rhs = new JavaTestHelper();
1698 lhs.opt_bin = new byte[]{1,2};
1699 rhs.opt_bin = new byte[]{1,2};
1700 lhs.__isset.opt_bin = true;
1701 rhs.__isset.opt_bin = true;
1702 rhs.opt_bin = null;
1703 // this_present = True
1704 // that_present = False
1705 if (lhs.equals(rhs) != false)
1706 throw new RuntimeException("Failure");
1707
1708 lhs = new JavaTestHelper();
1709 rhs = new JavaTestHelper();
1710 lhs.opt_bin = new byte[]{1,2};
1711 rhs.opt_bin = new byte[]{3,4};
1712 lhs.__isset.opt_bin = true;
1713 rhs.__isset.opt_bin = true;
1714 rhs.opt_bin = null;
1715 // this_present = True
1716 // that_present = False
1717 if (lhs.equals(rhs) != false)
1718 throw new RuntimeException("Failure");
1719
1720 lhs = new JavaTestHelper();
1721 rhs = new JavaTestHelper();
1722 lhs.opt_bin = new byte[]{1,2};
1723 rhs.opt_bin = new byte[]{1,2};
1724 // this_present = False
1725 // that_present = False
1726 if (lhs.equals(rhs) != true)
1727 throw new RuntimeException("Failure");
1728 if (lhs.hashCode() != rhs.hashCode())
1729 throw new RuntimeException("Failure");
1730
1731 lhs = new JavaTestHelper();
1732 rhs = new JavaTestHelper();
1733 lhs.opt_bin = new byte[]{1,2};
1734 rhs.opt_bin = new byte[]{3,4};
1735 // this_present = False
1736 // that_present = False
1737 if (lhs.equals(rhs) != true)
1738 throw new RuntimeException("Failure");
1739 if (lhs.hashCode() != rhs.hashCode())
1740 throw new RuntimeException("Failure");
1741
1742 lhs = new JavaTestHelper();
1743 rhs = new JavaTestHelper();
1744 lhs.opt_bin = new byte[]{1,2};
1745 rhs.opt_bin = new byte[]{1,2};
1746 rhs.__isset.opt_bin = true;
1747 // this_present = False
1748 // that_present = True
1749 if (lhs.equals(rhs) != false)
1750 throw new RuntimeException("Failure");
1751
1752 lhs = new JavaTestHelper();
1753 rhs = new JavaTestHelper();
1754 lhs.opt_bin = new byte[]{1,2};
1755 rhs.opt_bin = new byte[]{3,4};
1756 rhs.__isset.opt_bin = true;
1757 // this_present = False
1758 // that_present = True
1759 if (lhs.equals(rhs) != false)
1760 throw new RuntimeException("Failure");
1761
1762 lhs = new JavaTestHelper();
1763 rhs = new JavaTestHelper();
1764 lhs.opt_bin = new byte[]{1,2};
1765 rhs.opt_bin = new byte[]{1,2};
1766 lhs.__isset.opt_bin = true;
1767 // this_present = True
1768 // that_present = False
1769 if (lhs.equals(rhs) != false)
1770 throw new RuntimeException("Failure");
1771
1772 lhs = new JavaTestHelper();
1773 rhs = new JavaTestHelper();
1774 lhs.opt_bin = new byte[]{1,2};
1775 rhs.opt_bin = new byte[]{3,4};
1776 lhs.__isset.opt_bin = true;
1777 // this_present = True
1778 // that_present = False
1779 if (lhs.equals(rhs) != false)
1780 throw new RuntimeException("Failure");
1781
1782 lhs = new JavaTestHelper();
1783 rhs = new JavaTestHelper();
1784 lhs.opt_bin = new byte[]{1,2};
1785 rhs.opt_bin = new byte[]{1,2};
1786 lhs.__isset.opt_bin = true;
1787 rhs.__isset.opt_bin = true;
1788 // this_present = True
1789 // that_present = True
1790 if (lhs.equals(rhs) != true)
1791 throw new RuntimeException("Failure");
1792 if (lhs.hashCode() != rhs.hashCode())
1793 throw new RuntimeException("Failure");
1794
1795 lhs = new JavaTestHelper();
1796 rhs = new JavaTestHelper();
1797 lhs.opt_bin = new byte[]{1,2};
1798 rhs.opt_bin = new byte[]{3,4};
1799 lhs.__isset.opt_bin = true;
1800 rhs.__isset.opt_bin = true;
1801 // this_present = True
1802 // that_present = True
1803 if (lhs.equals(rhs) != false)
1804 throw new RuntimeException("Failure");
1805
1806 }
1807}
1808