001: /*
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: C_EtypeEC2.java 5398 2004-09-09 13:59:14Z joaninh $
023: * --------------------------------------------------------------------------
024: */
025:
026: package org.objectweb.jonas.jtests.clients.entity;
027:
028: import junit.framework.Test;
029: import junit.framework.TestSuite;
030: import org.objectweb.jonas.jtests.util.JTestCase;
031:
032: /**
033: * This is a test suite about the different cases of the types of the entity bean's fields.
034: * It run suites for CMP version 2.
035: * Beans used: etype/*
036: * @author Helene Joanin
037: */
038:
039: public class C_EtypeEC2 extends JTestCase {
040:
041: public C_EtypeEC2(String name) {
042: super (name);
043: }
044:
045: public static Test suite() {
046:
047: TestSuite suite = new TestSuite();
048:
049: // primitive double
050: suite.addTest(F_EtypePdoubleEC2.suite());
051: // java.lang.Double
052: suite.addTest(F_EtypeOdoubleEC2.suite());
053:
054: // primitive float
055: suite.addTest(F_EtypePfloatEC2.suite());
056: // java.lang.Float
057: suite.addTest(F_EtypeOfloatEC2.suite());
058: // java.lang.Float for the pk field
059: suite.addTest(F_EtypeOfloat4pkEC2.suite());
060:
061: // primitive long
062: suite.addTest(F_EtypePlongEC2.suite());
063: // java.lang.Long
064: suite.addTest(F_EtypeOlongEC2.suite());
065:
066: // primitive short
067: suite.addTest(F_EtypePshortEC2.suite());
068: // java.lang.Short
069: suite.addTest(F_EtypeOshortEC2.suite());
070:
071: // java.lang.Byte
072: suite.addTest(F_EtypeObyteEC2.suite());
073:
074: // java.lang.Integer
075: suite.addTest(F_EtypeOintegerEC2.suite());
076:
077: // java.util.Date (CMP version 2 only)
078: suite.addTest(F_EtypeOutildateEC2.suite());
079:
080: // java.sql.Date
081: suite.addTest(F_EtypeOsqldateEC2.suite());
082: // java.sql.Time
083: suite.addTest(F_EtypeOsqltimeEC2.suite());
084: // java.sql.Timestamp
085: suite.addTest(F_EtypeOsqltsEC2.suite());
086: // java.sql.Timestamp for pk
087: suite.addTest(F_EtypeOsqlts4pkEC2.suite());
088:
089: // primitive boolean
090: suite.addTest(F_EtypePbooleanEC2.suite());
091: // java.lang.Boolean
092: suite.addTest(F_EtypeObooleanEC2.suite());
093:
094: // serializable type
095: suite.addTest(F_EtypeOserEC2.suite());
096:
097: // java.math.BigDecimal
098: suite.addTest(F_EtypeObigdecimalEC2.suite());
099:
100: // byte[]
101: suite.addTest(F_EtypeByteArrayEC2.suite());
102:
103: return suite;
104:
105: }
106:
107: public static void main(String args[]) {
108: junit.textui.TestRunner.run(suite());
109: }
110: }
|