KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > HsqlDBTests


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: HsqlDBTests.java,v 1.5 2007/01/07 06:14:21 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21  
22 package org.opensubsystems;
23
24 import junit.extensions.TestSetup;
25 import junit.framework.Test;
26 import junit.framework.TestSuite;
27
28 import org.opensubsystems.core.persist.db.DatabaseTestSetup;
29 import org.opensubsystems.core.persist.db.DatabaseTestSuite;
30 import org.opensubsystems.core.util.Config;
31
32 /**
33  * Tests to execute for HsqlDB.
34  *
35  * @version $Id: HsqlDBTests.java,v 1.5 2007/01/07 06:14:21 bastafidli Exp $
36  * @author Miro Halas
37  * @code.reviewer Miro Halas
38  * @code.reviewed 1.3 2005/07/28 06:21:21 bastafidli
39  */

40 public class HsqlDBTests extends GenericDatabaseTests
41 {
42    /**
43     * Create suite of all tests which should be run for this database.
44     *
45     * @return Test - suite of tests to run for this database
46     */

47    public static Test suite(
48    )
49    {
50       Config.getInstance().setPropertyFileName("osstesthsqldb.properties");
51
52       TestSuite suite = new DatabaseTestSuite("Test for HsqlDB");
53       addGenericTests(suite);
54       TestSetup wrapper = new DatabaseTestSetup(suite);
55
56       return wrapper;
57    }
58 }
59
Popular Tags