01: /*
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 7526 2005-10-19 12:05:47Z durieuxp $
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 name) {
41: super (name);
42: }
43:
44: public static Test suite() {
45: TestSuite suite = new TestSuite();
46: // relation oou
47: suite.addTest(F_oou_CS_EC2.suite());
48: suite.addTest(F_oou_CRW_EC2.suite());
49: // relation oob
50: suite.addTest(F_oob_CS_EC2.suite());
51: suite.addTest(F_oob_CRW_EC2.suite());
52: // relation omu
53: suite.addTest(F_omu_CS_EC2.suite());
54: suite.addTest(F_omu_CRW_EC2.suite());
55: // relation omb
56: suite.addTest(F_omb_CS_EC2.suite());
57: suite.addTest(F_omb_CRW_EC2.suite());
58: // relation mou
59: suite.addTest(F_mou_CS_EC2.suite());
60: suite.addTest(F_mou_CRW_EC2.suite());
61: // relation mnu
62: suite.addTest(F_mnu_CS_EC2.suite());
63: suite.addTest(F_mnu_CRW_EC2.suite());
64: // relation mnb
65: suite.addTest(F_mnb_CS_EC2.suite());
66: suite.addTest(F_mnb_CRW_EC2.suite());
67: // composite PK suites
68: suite.addTest(F_Relation_pkcompEC2.suite());
69: suite.addTest(F_Relation_s1pkcompEC2.suite());
70: suite.addTest(F_Relation_s2pkcompEC2.suite());
71: suite.addTest(F_Relation_s3pkcompEC2.suite());
72: // Reproduction of a JOnAS user problem
73: suite.addTest(F_Relation_lcpEC2.suite());
74: // Tables created with not null foreign-key
75: suite.addTest(F_Relation2_mouEC2.suite());
76:
77: return suite;
78: }
79:
80: public static void main(String args[]) {
81: junit.textui.TestRunner.run(suite());
82: }
83: }
|