Index: topia/src/test/org/codelutin/topia/persistence/PersistenceStorageJDBCDerbyNetworkTest.java diff -u /dev/null topia/src/test/org/codelutin/topia/persistence/PersistenceStorageJDBCDerbyNetworkTest.java:1.1 --- /dev/null Tue Aug 9 12:23:44 2005 +++ topia/src/test/org/codelutin/topia/persistence/PersistenceStorageJDBCDerbyNetworkTest.java Tue Aug 9 12:23:39 2005 @@ -0,0 +1,77 @@ +/* *##% + * Copyright (C) 2005 + * Code Lutin, Cédric Pineau, Benjamin Poussin + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + *##%*/ + +/* * + * PersistenceStorageJDBCOracleTest.java + * + * Created: 25 juillet 2005 15:39:58 CEST + * + * @author Benjamin POUSSIN + * @version $Revision: 1.1 $ + * + * Last update: $Date: 2005/08/09 12:23:39 $ + * by : $Author: dessard $ + */ + +package org.codelutin.topia.persistence; + +import java.util.Properties; +import java.util.logging.Logger; + +import org.codelutin.topia.TopiaConst; + +/** + * + * test Apache Derby (Cloudscape) avec un accès par le réseau (il faut avoir + * démarré la base). Dans /framework/bin/startNetwork.ksh + * + */ +public class PersistenceStorageJDBCDerbyNetworkTest extends + AbstractPersistenceStorageTestCase { // PersistenceStorageJDBCOracleTest + + /** to use log facility, just put in your code: log.info(\"...\"); */ + static private Logger log = Logger + .getLogger("org.codelutin.topia.persistence.PersistenceStorageJDBCDerbyTest"); + + public Properties getConfig() throws Exception { + System.out + .println("----------------- Apache Derby (Cloudscape) ----------------------"); + Properties config = new Properties(); + + config.setProperty(TopiaConst.PERSISTENCE_STORAGE_JDBC_DRIVER, + "org.apache.derby.jdbc.ClientDriver"); + config.setProperty(TopiaConst.PERSISTENCE_STORAGE_JDBC_URL, + "jdbc:derby://localhost:1527/sample;create=true"); + + config.setProperty(TopiaConst.PERSISTENCE_STORAGE_JDBC_LOGIN, "APP"); + config.setProperty(TopiaConst.PERSISTENCE_STORAGE_JDBC_PASSWORD, "APP"); + + return config; + } + + public void testDummy() throws Exception { + } + + public void testPerf() throws Exception { + int n = (MAX < 5000 ? MAX : 10); + super.testPerf(n); + } + +} // PersistenceStorageJDBCOracleTest +