KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > jtests > clients > entity > C_Relation


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: C_Relation.java,v 1.11 2004/12/08 13:25:40 joaninh Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.jtests.clients.entity;
27
28 import junit.framework.Test;
29 import junit.framework.TestSuite;
30 import org.objectweb.jonas.jtests.util.JTestCase;
31
32 /**
33  * This is a test suite about the different cases of the relationships bean's CMP2.
34  * Beans used: relation/*
35  * @author Jerome Camilleri
36  */

37
38 public class C_Relation extends JTestCase {
39
40     public C_Relation(String JavaDoc name) {
41         super(name);
42     }
43
44     public static Test suite() {
45         TestSuite suite = new TestSuite();
46         // relation oou
47
suite.addTest(F_Relation_oouEC2.suite());
48         // relation oob
49
suite.addTest(F_Relation_oobEC2.suite());
50         // relation omu
51
suite.addTest(F_Relation_omuEC2.suite());
52         // relation omb
53
suite.addTest(F_Relation_ombEC2.suite());
54         // relation mou
55
suite.addTest(F_Relation_mouEC2.suite());
56         // relation mnu
57
suite.addTest(F_Relation_mnuEC2.suite());
58         // relation mnb
59
suite.addTest(F_Relation_mnbEC2.suite());
60         // cascade delete
61
suite.addTest(F_Cascade.suite());
62         // bean with only remote interface
63
suite.addTest(F_Remon.suite());
64         // composite PK suites
65
suite.addTest(F_Relation_pkcompEC2.suite());
66         suite.addTest(F_Relation_s1pkcompEC2.suite());
67         suite.addTest(F_Relation_s2pkcompEC2.suite());
68         suite.addTest(F_Relation_s3pkcompEC2.suite());
69         // cycle in relations and CMP2 legacy
70
suite.addTest(F_RcycleEC2.suite());
71         suite.addTest(F_FamilyEC2.suite());
72         suite.addTest(F_TierEC2.suite());
73         // Reproduction of a JOnAS user problem
74
suite.addTest(F_Relation_lcpEC2.suite());
75         // Tables created with not null foreign-key
76
suite.addTest(F_Relation2_mouEC2.suite());
77
78         return suite;
79     }
80
81     public static void main (String JavaDoc args[]) {
82         junit.textui.TestRunner.run(suite());
83     }
84 }
85
Popular Tags