KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > ojb > tests > ModifyInheritedTagSimpleTests


1 package xdoclet.modules.ojb.tests;
2
3 /* Copyright 2003-2005 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * 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
18 /**
19  * Tests for the ojb.modify-inherited tag.
20  *
21  * @author <a HREF="mailto:tomdz@users.sourceforge.net">Thomas Dudziak (tomdz@users.sourceforge.net)</a>
22  */

23 public class ModifyInheritedTagSimpleTests extends OjbTestBase
24 {
25     public ModifyInheritedTagSimpleTests(String JavaDoc name)
26     {
27         super(name);
28     }
29
30     // Test: overriding a base class field (direct base class, no sub classes)
31
public void testSimple1()
32     {
33         addClass(
34             "test.A",
35             "package test;\n"+
36             "/** @ojb.class */\n" +
37             "public class A {\n"+
38             " /** @ojb.field */\n"+
39             " private int attr;\n"+
40             "}");
41         addClass(
42             "test.B",
43             "package test;\n"+
44             "/** @ojb.class\n" +
45             " * @ojb.modify-inherited name=\"attr\"\n"+
46             " * column=\"battr\"\n"+
47             " */\n"+
48             "public class B extends A {}\n");
49
50         assertEqualsOjbDescriptorFile(
51             "<class-descriptor\n"+
52             " class=\"test.A\"\n"+
53             " table=\"A\"\n"+
54             ">\n"+
55             " <extent-class class-ref=\"test.B\"/>\n"+
56             " <field-descriptor\n"+
57             " name=\"attr\"\n"+
58             " column=\"attr\"\n"+
59             " jdbc-type=\"INTEGER\"\n"+
60             " >\n"+
61             " </field-descriptor>\n"+
62             "</class-descriptor>\n"+
63             "<class-descriptor\n"+
64             " class=\"test.B\"\n"+
65             " table=\"B\"\n"+
66             ">\n"+
67             " <field-descriptor\n"+
68             " name=\"attr\"\n"+
69             " column=\"battr\"\n"+
70             " jdbc-type=\"INTEGER\"\n"+
71             " >\n"+
72             " </field-descriptor>\n"+
73             "</class-descriptor>",
74             runOjbXDoclet(OJB_DEST_FILE));
75         assertEqualsTorqueSchemaFile(
76             "<database name=\"ojbtest\">\n"+
77             " <table name=\"A\">\n"+
78             " <column name=\"attr\"\n"+
79             " javaName=\"attr\"\n"+
80             " type=\"INTEGER\"\n"+
81             " />\n"+
82             " </table>\n"+
83             " <table name=\"B\">\n"+
84             " <column name=\"battr\"\n"+
85             " javaName=\"attr\"\n"+
86             " type=\"INTEGER\"\n"+
87             " />\n"+
88             " </table>\n"+
89             "</database>",
90             runTorqueXDoclet(TORQUE_DEST_FILE, "ojbtest"));
91     }
92
93     // Test: overriding a base class reference (indirect base class, no sub classes)
94
public void testSimple2()
95     {
96         addClass(
97             "test.A",
98             "package test;\n"+
99             "/** @ojb.class */\n" +
100             "public class A {\n"+
101             " /** @ojb.field */\n"+
102             " private int did;\n"+
103             " /** @ojb.reference foreignkey=\"did\" */\n"+
104             " private D dobj;\n"+
105             "}");
106         addClass(
107             "test.B",
108             "package test;\n"+
109             "public class B extends A {}");
110         addClass(
111             "test.C",
112             "package test;\n"+
113             "/** @ojb.class\n" +
114             " * @ojb.modify-inherited name=\"dobj\"\n"+
115             " * auto-update=\"true\"\n"+
116             " */\n"+
117             "public class C extends B {}\n");
118         addClass(
119             "test.D",
120             "package test;\n"+
121             "/** @ojb.class */\n" +
122             "public class D {\n"+
123             " /** @ojb.field primarykey=\"true\" */\n"+
124             " private int id;\n"+
125             "}");
126
127         assertEqualsOjbDescriptorFile(
128             "<class-descriptor\n"+
129             " class=\"test.A\"\n"+
130             " table=\"A\"\n"+
131             ">\n"+
132             " <extent-class class-ref=\"test.C\"/>\n"+
133             " <field-descriptor\n"+
134             " name=\"did\"\n"+
135             " column=\"did\"\n"+
136             " jdbc-type=\"INTEGER\"\n"+
137             " >\n"+
138             " </field-descriptor>\n"+
139             " <reference-descriptor\n"+
140             " name=\"dobj\"\n"+
141             " class-ref=\"test.D\"\n"+
142             " >\n"+
143             " <foreignkey field-ref=\"did\"/>\n"+
144             " </reference-descriptor>\n"+
145             "</class-descriptor>\n"+
146             "<class-descriptor\n"+
147             " class=\"test.C\"\n"+
148             " table=\"C\"\n"+
149             ">\n"+
150             " <field-descriptor\n"+
151             " name=\"did\"\n"+
152             " column=\"did\"\n"+
153             " jdbc-type=\"INTEGER\"\n"+
154             " >\n"+
155             " </field-descriptor>\n"+
156             " <reference-descriptor\n"+
157             " name=\"dobj\"\n"+
158             " class-ref=\"test.D\"\n"+
159             " auto-update=\"true\"\n"+
160             " >\n"+
161             " <foreignkey field-ref=\"did\"/>\n"+
162             " </reference-descriptor>\n"+
163             "</class-descriptor>\n"+
164             "<class-descriptor\n"+
165             " class=\"test.D\"\n"+
166             " table=\"D\"\n"+
167             ">\n"+
168             " <field-descriptor\n"+
169             " name=\"id\"\n"+
170             " column=\"id\"\n"+
171             " jdbc-type=\"INTEGER\"\n"+
172             " primarykey=\"true\"\n"+
173             " >\n"+
174             " </field-descriptor>\n"+
175             "</class-descriptor>",
176             runOjbXDoclet(OJB_DEST_FILE));
177         assertEqualsTorqueSchemaFile(
178             "<database name=\"ojbtest\">\n"+
179             " <table name=\"A\">\n"+
180             " <column name=\"did\"\n"+
181             " javaName=\"did\"\n"+
182             " type=\"INTEGER\"\n"+
183             " />\n"+
184             " <foreign-key foreignTable=\"D\">\n"+
185             " <reference local=\"did\" foreign=\"id\"/>\n"+
186             " </foreign-key>\n"+
187             " </table>\n"+
188             " <table name=\"C\">\n"+
189             " <column name=\"did\"\n"+
190             " javaName=\"did\"\n"+
191             " type=\"INTEGER\"\n"+
192             " />\n"+
193             " <foreign-key foreignTable=\"D\">\n"+
194             " <reference local=\"did\" foreign=\"id\"/>\n"+
195             " </foreign-key>\n"+
196             " </table>\n"+
197             " <table name=\"D\">\n"+
198             " <column name=\"id\"\n"+
199             " javaName=\"id\"\n"+
200             " type=\"INTEGER\"\n"+
201             " primaryKey=\"true\"\n"+
202             " required=\"true\"\n"+
203             " />\n"+
204             " </table>\n"+
205             "</database>",
206             runTorqueXDoclet(TORQUE_DEST_FILE, "ojbtest"));
207     }
208
209     // Test: overriding a base class collection (direct base class, one sub class)
210
public void testSimple3()
211     {
212         addClass(
213             "test.A",
214             "package test;\n"+
215             "/** @ojb.class */\n" +
216             "public class A {\n"+
217             " /** @ojb.field primarykey=\"true\" */\n"+
218             " private int id;\n"+
219             " /** @ojb.collection element-class-ref=\"test.D\"\n"+
220             " * foreignkey=\"aid\"\n"+
221             " * database-foreignkey=\"false\"\n"+
222             " */\n"+
223             " private java.util.List ds;\n"+
224             "}");
225         addClass(
226             "test.B",
227             "package test;\n"+
228             "/** @ojb.class\n" +
229             " * @ojb.modify-inherited name=\"ds\"\n"+
230             " * orderby=\"id=DESC\"\n"+
231             " */\n"+
232             "public class B extends A {}\n");
233         addClass(
234             "test.C",
235             "package test;\n"+
236             "/** @ojb.class */\n" +
237             "public class C extends B {}");
238         addClass(
239             "test.D",
240             "package test;\n"+
241             "/** @ojb.class */\n" +
242             "public class D {\n"+
243             " /** @ojb.field primarykey=\"true\" */\n"+
244             " private int id;\n"+
245             " /** @ojb.field */\n"+
246             " private int aid;\n"+
247             "}");
248
249         assertEqualsOjbDescriptorFile(
250             "<class-descriptor\n"+
251             " class=\"test.A\"\n"+
252             " table=\"A\"\n"+
253             ">\n"+
254             " <extent-class class-ref=\"test.B\"/>\n"+
255             " <field-descriptor\n"+
256             " name=\"id\"\n"+
257             " column=\"id\"\n"+
258             " jdbc-type=\"INTEGER\"\n"+
259             " primarykey=\"true\"\n"+
260             " >\n"+
261             " </field-descriptor>\n"+
262             " <collection-descriptor\n"+
263             " name=\"ds\"\n"+
264             " element-class-ref=\"test.D\"\n"+
265             " >\n"+
266             " <inverse-foreignkey field-ref=\"aid\"/>\n"+
267             " </collection-descriptor>\n"+
268             "</class-descriptor>\n"+
269             "<class-descriptor\n"+
270             " class=\"test.B\"\n"+
271             " table=\"B\"\n"+
272             ">\n"+
273             " <extent-class class-ref=\"test.C\"/>\n"+
274             " <field-descriptor\n"+
275             " name=\"id\"\n"+
276             " column=\"id\"\n"+
277             " jdbc-type=\"INTEGER\"\n"+
278             " primarykey=\"true\"\n"+
279             " >\n"+
280             " </field-descriptor>\n"+
281             " <collection-descriptor\n"+
282             " name=\"ds\"\n"+
283             " element-class-ref=\"test.D\"\n"+
284             " >\n"+
285             " <orderby name=\"id\" sort=\"DESC\"/>\n"+
286             " <inverse-foreignkey field-ref=\"aid\"/>\n"+
287             " </collection-descriptor>\n"+
288             "</class-descriptor>\n"+
289             "<class-descriptor\n"+
290             " class=\"test.C\"\n"+
291             " table=\"C\"\n"+
292             ">\n"+
293             " <field-descriptor\n"+
294             " name=\"id\"\n"+
295             " column=\"id\"\n"+
296             " jdbc-type=\"INTEGER\"\n"+
297             " primarykey=\"true\"\n"+
298             " >\n"+
299             " </field-descriptor>\n"+
300             " <collection-descriptor\n"+
301             " name=\"ds\"\n"+
302             " element-class-ref=\"test.D\"\n"+
303             " >\n"+
304             " <orderby name=\"id\" sort=\"DESC\"/>\n"+
305             " <inverse-foreignkey field-ref=\"aid\"/>\n"+
306             " </collection-descriptor>\n"+
307             "</class-descriptor>\n"+
308             "<class-descriptor\n"+
309             " class=\"test.D\"\n"+
310             " table=\"D\"\n"+
311             ">\n"+
312             " <field-descriptor\n"+
313             " name=\"id\"\n"+
314             " column=\"id\"\n"+
315             " jdbc-type=\"INTEGER\"\n"+
316             " primarykey=\"true\"\n"+
317             " >\n"+
318             " </field-descriptor>\n"+
319             " <field-descriptor\n"+
320             " name=\"aid\"\n"+
321             " column=\"aid\"\n"+
322             " jdbc-type=\"INTEGER\"\n"+
323             " >\n"+
324             " </field-descriptor>\n"+
325             "</class-descriptor>",
326             runOjbXDoclet(OJB_DEST_FILE));
327         assertEqualsTorqueSchemaFile(
328             "<database name=\"ojbtest\">\n"+
329             " <table name=\"A\">\n"+
330             " <column name=\"id\"\n"+
331             " javaName=\"id\"\n"+
332             " type=\"INTEGER\"\n"+
333             " primaryKey=\"true\"\n"+
334             " required=\"true\"\n"+
335             " />\n"+
336             " </table>\n"+
337             " <table name=\"B\">\n"+
338             " <column name=\"id\"\n"+
339             " javaName=\"id\"\n"+
340             " type=\"INTEGER\"\n"+
341             " primaryKey=\"true\"\n"+
342             " required=\"true\"\n"+
343             " />\n"+
344             " </table>\n"+
345             " <table name=\"C\">\n"+
346             " <column name=\"id\"\n"+
347             " javaName=\"id\"\n"+
348             " type=\"INTEGER\"\n"+
349             " primaryKey=\"true\"\n"+
350             " required=\"true\"\n"+
351             " />\n"+
352             " </table>\n"+
353             " <table name=\"D\">\n"+
354             " <column name=\"id\"\n"+
355             " javaName=\"id\"\n"+
356             " type=\"INTEGER\"\n"+
357             " primaryKey=\"true\"\n"+
358             " required=\"true\"\n"+
359             " />\n"+
360             " <column name=\"aid\"\n"+
361             " javaName=\"aid\"\n"+
362             " type=\"INTEGER\"\n"+
363             " />\n"+
364             " </table>\n"+
365             "</database>",
366             runTorqueXDoclet(TORQUE_DEST_FILE, "ojbtest"));
367     }
368
369     // Test: undefined entity
370
public void testSimple4()
371     {
372         addClass(
373             "test.A",
374             "package test;\n"+
375             "/** @ojb.class */\n" +
376             "public class A {\n"+
377             " /** @ojb.field */\n"+
378             " private int id;\n"+
379             "}");
380         addClass(
381             "test.B",
382             "package test;\n"+
383             "/** @ojb.class\n" +
384             " * @ojb.modify-inherited name=\"attr\"\n"+
385             " * column=\"battr\"\n"+
386             " */\n"+
387             "public class B extends A {}\n");
388
389         assertNull(runOjbXDoclet(OJB_DEST_FILE));
390         assertNull(runTorqueXDoclet(TORQUE_DEST_FILE, "ojbtest"));
391     }
392
393     // Test: multiple modifications in the same class
394
public void testSimple5()
395     {
396         addClass(
397             "test.A",
398             "package test;\n"+
399             "/** @ojb.class */\n" +
400             "public class A {\n"+
401             " /** @ojb.field */\n"+
402             " private int attr;\n"+
403             "}");
404         addClass(
405             "test.B",
406             "package test;\n"+
407             "/** @ojb.class\n" +
408             " * @ojb.modify-inherited name=\"attr\"\n"+
409             " * column=\"battr\"\n"+
410             " * @ojb.modify-inherited name=\"attr\"\n"+
411             " * column=\"cattr\"\n"+
412             " */\n"+
413             "public class B extends A {}\n");
414
415         assertEqualsOjbDescriptorFile(
416             "<class-descriptor\n"+
417             " class=\"test.A\"\n"+
418             " table=\"A\"\n"+
419             ">\n"+
420             " <extent-class class-ref=\"test.B\"/>\n"+
421             " <field-descriptor\n"+
422             " name=\"attr\"\n"+
423             " column=\"attr\"\n"+
424             " jdbc-type=\"INTEGER\"\n"+
425             " >\n"+
426             " </field-descriptor>\n"+
427             "</class-descriptor>\n"+
428             "<class-descriptor\n"+
429             " class=\"test.B\"\n"+
430             " table=\"B\"\n"+
431             ">\n"+
432             " <field-descriptor\n"+
433             " name=\"attr\"\n"+
434             " column=\"battr\"\n"+
435             " jdbc-type=\"INTEGER\"\n"+
436             " >\n"+
437             " </field-descriptor>\n"+
438             "</class-descriptor>",
439             runOjbXDoclet(OJB_DEST_FILE));
440         assertEqualsTorqueSchemaFile(
441             "<database name=\"ojbtest\">\n"+
442             " <table name=\"A\">\n"+
443             " <column name=\"attr\"\n"+
444             " javaName=\"attr\"\n"+
445             " type=\"INTEGER\"\n"+
446             " />\n"+
447             " </table>\n"+
448             " <table name=\"B\">\n"+
449             " <column name=\"battr\"\n"+
450             " javaName=\"attr\"\n"+
451             " type=\"INTEGER\"\n"+
452             " />\n"+
453             " </table>\n"+
454             "</database>",
455             runTorqueXDoclet(TORQUE_DEST_FILE, "ojbtest"));
456     }
457
458     // Test: multiple modifications across several classes
459
public void testSimple6()
460     {
461         addClass(
462             "test.A",
463             "package test;\n"+
464             "/** @ojb.class */\n" +
465             "public class A {\n"+
466             " /** @ojb.field */\n"+
467             " private int attr;\n"+
468             "}");
469         addClass(
470             "test.B",
471             "package test;\n"+
472             "/** @ojb.class\n" +
473             " * @ojb.modify-inherited name=\"attr\"\n"+
474             " * column=\"battr\"\n"+
475             " */\n"+
476             "public class B extends A {}\n");
477         addClass(
478             "test.C",
479             "package test;\n"+
480             "/** @ojb.class */\n"+
481             "public class C extends B {}\n");
482         addClass(
483             "test.D",
484             "package test;\n"+
485             "/** @ojb.class\n" +
486             " * @ojb.modify-inherited name=\"attr\"\n"+
487             " * column=\"dattr\"\n"+
488             " */\n"+
489             "public class D extends C {}\n");
490
491         assertEqualsOjbDescriptorFile(
492             "<class-descriptor\n"+
493             " class=\"test.A\"\n"+
494             " table=\"A\"\n"+
495             ">\n"+
496             " <extent-class class-ref=\"test.B\"/>\n"+
497             " <field-descriptor\n"+
498             " name=\"attr\"\n"+
499             " column=\"attr\"\n"+
500             " jdbc-type=\"INTEGER\"\n"+
501             " >\n"+
502             " </field-descriptor>\n"+
503             "</class-descriptor>\n"+
504             "<class-descriptor\n"+
505             " class=\"test.B\"\n"+
506             " table=\"B\"\n"+
507             ">\n"+
508             " <extent-class class-ref=\"test.C\"/>\n"+
509             " <field-descriptor\n"+
510             " name=\"attr\"\n"+
511             " column=\"battr\"\n"+
512             " jdbc-type=\"INTEGER\"\n"+
513             " >\n"+
514             " </field-descriptor>\n"+
515             "</class-descriptor>\n"+
516             "<class-descriptor\n"+
517             " class=\"test.C\"\n"+
518             " table=\"C\"\n"+
519             ">\n"+
520             " <extent-class class-ref=\"test.D\"/>\n"+
521             " <field-descriptor\n"+
522             " name=\"attr\"\n"+
523             " column=\"battr\"\n"+
524             " jdbc-type=\"INTEGER\"\n"+
525             " >\n"+
526             " </field-descriptor>\n"+
527             "</class-descriptor>\n"+
528             "<class-descriptor\n"+
529             " class=\"test.D\"\n"+
530             " table=\"D\"\n"+
531             ">\n"+
532             " <field-descriptor\n"+
533             " name=\"attr\"\n"+
534             " column=\"dattr\"\n"+
535             " jdbc-type=\"INTEGER\"\n"+
536             " >\n"+
537             " </field-descriptor>\n"+
538             "</class-descriptor>",
539             runOjbXDoclet(OJB_DEST_FILE));
540         assertEqualsTorqueSchemaFile(
541             "<database name=\"ojbtest\">\n"+
542             " <table name=\"A\">\n"+
543             " <column name=\"attr\"\n"+
544             " javaName=\"attr\"\n"+
545             " type=\"INTEGER\"\n"+
546             " />\n"+
547             " </table>\n"+
548             " <table name=\"B\">\n"+
549             " <column name=\"battr\"\n"+
550             " javaName=\"attr\"\n"+
551             " type=\"INTEGER\"\n"+
552             " />\n"+
553             " </table>\n"+
554             " <table name=\"C\">\n"+
555             " <column name=\"battr\"\n"+
556             " javaName=\"attr\"\n"+
557             " type=\"INTEGER\"\n"+
558             " />\n"+
559             " </table>\n"+
560             " <table name=\"D\">\n"+
561             " <column name=\"dattr\"\n"+
562             " javaName=\"attr\"\n"+
563             " type=\"INTEGER\"\n"+
564             " />\n"+
565             " </table>\n"+
566             "</database>",
567             runTorqueXDoclet(TORQUE_DEST_FILE, "ojbtest"));
568     }
569
570     // Test: modification in a non-persistent class with sub classes
571
public void testSimple7()
572     {
573         addClass(
574             "test.A",
575             "package test;\n"+
576             "/** @ojb.class */\n" +
577             "public class A {\n"+
578             " /** @ojb.field */\n"+
579             " private int attr;\n"+
580             "}");
581         addClass(
582             "test.B",
583             "package test;\n"+
584             "/** @ojb.modify-inherited name=\"attr\"\n"+
585             " * column=\"battr\"\n"+
586             " */\n"+
587             "public class B extends A {}\n");
588         addClass(
589             "test.C",
590             "package test;\n"+
591             "/** @ojb.class */\n"+
592             "public class C extends B {}\n");
593         addClass(
594             "test.D",
595             "package test;\n"+
596             "public class D extends B {}\n");
597         addClass(
598             "test.E",
599             "package test;\n"+
600             "/** @ojb.class */\n"+
601             "public class E extends D {}\n");
602
603         assertEqualsOjbDescriptorFile(
604             "<class-descriptor\n"+
605             " class=\"test.A\"\n"+
606             " table=\"A\"\n"+
607             ">\n"+
608             " <extent-class class-ref=\"test.C\"/>\n"+
609             " <extent-class class-ref=\"test.E\"/>\n"+
610             " <field-descriptor\n"+
611             " name=\"attr\"\n"+
612             " column=\"attr\"\n"+
613             " jdbc-type=\"INTEGER\"\n"+
614             " >\n"+
615             " </field-descriptor>\n"+
616             "</class-descriptor>\n"+
617             "<class-descriptor\n"+
618             " class=\"test.C\"\n"+
619             " table=\"C\"\n"+
620             ">\n"+
621             " <field-descriptor\n"+
622             " name=\"attr\"\n"+
623             " column=\"battr\"\n"+
624             " jdbc-type=\"INTEGER\"\n"+
625             " >\n"+
626             " </field-descriptor>\n"+
627             "</class-descriptor>\n"+
628             "<class-descriptor\n"+
629             " class=\"test.E\"\n"+
630             " table=\"E\"\n"+
631             ">\n"+
632             " <field-descriptor\n"+
633             " name=\"attr\"\n"+
634             " column=\"battr\"\n"+
635             " jdbc-type=\"INTEGER\"\n"+
636             " >\n"+
637             " </field-descriptor>\n"+
638             "</class-descriptor>",
639             runOjbXDoclet(OJB_DEST_FILE));
640         assertEqualsTorqueSchemaFile(
641             "<database name=\"ojbtest\">\n"+
642             " <table name=\"A\">\n"+
643             " <column name=\"attr\"\n"+
644             " javaName=\"attr\"\n"+
645             " type=\"INTEGER\"\n"+
646             " />\n"+
647             " </table>\n"+
648             " <table name=\"C\">\n"+
649             " <column name=\"battr\"\n"+
650             " javaName=\"attr\"\n"+
651             " type=\"INTEGER\"\n"+
652             " />\n"+
653             " </table>\n"+
654             " <table name=\"E\">\n"+
655             " <column name=\"battr\"\n"+
656             " javaName=\"attr\"\n"+
657             " type=\"INTEGER\"\n"+
658             " />\n"+
659             " </table>\n"+
660             "</database>",
661             runTorqueXDoclet(TORQUE_DEST_FILE, "ojbtest"));
662     }
663
664     // Test: modifying unknown attribute
665
public void testSimple8()
666     {
667         addClass(
668             "test.A",
669             "package test;\n"+
670             "/** @ojb.class */\n" +
671             "public class A {\n"+
672             " /** @ojb.field */\n"+
673             " private int did;\n"+
674             " /** @ojb.reference foreignkey=\"did\" */\n"+
675             " private D dobj;\n"+
676             "}");
677         addClass(
678             "test.B",
679             "package test;\n"+
680             "/** @ojb.class\n" +
681             " * @ojb.modify-inherited name=\"dobj\"\n"+
682             " * unknown=\"true\"\n"+
683             " */\n"+
684             "public class B extends A {}\n");
685
686         assertNull(runOjbXDoclet(OJB_DEST_FILE));
687         assertNull(runTorqueXDoclet(TORQUE_DEST_FILE, "ojbtest"));
688     }
689 }
690
Popular Tags