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_EtypeEC.java 4040 2004-01-14 07:31:10Z 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 1, and for CMP version 2.
035: * Beans used: etype/*
036: * @author Helene Joanin
037: */
038:
039: public class C_EtypeEC extends JTestCase {
040:
041: public C_EtypeEC(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_EtypePdoubleEC.suite());
051: // java.lang.Double
052: suite.addTest(F_EtypeOdoubleEC.suite());
053:
054: // primitive float
055: suite.addTest(F_EtypePfloatEC.suite());
056: // java.lang.Float
057: suite.addTest(F_EtypeOfloatEC.suite());
058:
059: // primitive long
060: suite.addTest(F_EtypePlongEC.suite());
061: // java.lang.Long
062: suite.addTest(F_EtypeOlongEC.suite());
063:
064: // primitive short
065: suite.addTest(F_EtypePshortEC.suite());
066: // java.lang.Short
067: suite.addTest(F_EtypeOshortEC.suite());
068:
069: // java.lang.Byte
070: suite.addTest(F_EtypeObyteEC.suite());
071:
072: // java.lang.Integer
073: suite.addTest(F_EtypeOintegerEC.suite());
074:
075: // java.sql.Date
076: suite.addTest(F_EtypeOsqldateEC.suite());
077: // java.sql.Time
078: suite.addTest(F_EtypeOsqltimeEC.suite());
079: // java.sql.Timestamp
080: suite.addTest(F_EtypeOsqltsEC.suite());
081:
082: // primitive boolean
083: suite.addTest(F_EtypePbooleanEC.suite());
084: // java.lang.Boolean
085: suite.addTest(F_EtypeObooleanEC.suite());
086:
087: // serializable type
088: suite.addTest(F_EtypeOserEC.suite());
089:
090: // java.math.BigDecimal
091: suite.addTest(F_EtypeObigdecimalEC.suite());
092:
093: // byte[]
094: suite.addTest(F_EtypeByteArrayEC.suite());
095:
096: return suite;
097:
098: }
099:
100: public static void main(String args[]) {
101: junit.textui.TestRunner.run(suite());
102: }
103: }
|