Author: chatellier Date: 2008-11-25 16:44:55 +0000 (Tue, 25 Nov 2008) New Revision: 1618 Removed: isis-fish/trunk/src/test/java/fr/ifremer/isisfish/ui/SwixATFileTest.java Log: Remove swixAT test code Deleted: isis-fish/trunk/src/test/java/fr/ifremer/isisfish/ui/SwixATFileTest.java =================================================================== --- isis-fish/trunk/src/test/java/fr/ifremer/isisfish/ui/SwixATFileTest.java 2008-11-21 15:55:19 UTC (rev 1617) +++ isis-fish/trunk/src/test/java/fr/ifremer/isisfish/ui/SwixATFileTest.java 2008-11-25 16:44:55 UTC (rev 1618) @@ -1,104 +0,0 @@ -/* *##% - * Copyright (C) 2006 - * 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. - *##%*/ - -/* * - * SwixATFileTest.java - * - * Created: 16 févr. 2006 02:23:32 - * - * @author poussin - * @version $Revision$ - * - * Last update: $Date$ - * by : $Author$ - */ - -package fr.ifremer.isisfish.ui; - -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.Statement; - -import junit.framework.TestCase; - -import org.apache.commons.lang.time.DurationFormatUtils; -import org.swixat.SwiXAT; -import org.swixat.tools.CheckTool; - - -/** - * @author poussin - * - */ - -public class SwixATFileTest extends TestCase { - - public void testXML() { - SwiXAT.initFactory("fr/ifremer/isisfish/ui/context.xml"); - // FIXME faire que les tests suivant passe - CheckTool.checkView("Welcome.xml"); - CheckTool.checkView("input/Input.xml"); - } - - -// public void testDeleteBase() throws Exception { -// Class.forName("org.h2.Driver"); -// Connection conn = DriverManager.getConnection("jdbc:h2:file:///usr/local/src/PROJET/lutin/isis-fish-data/regions/BBB/data/data", "sa", ""); -// Statement st = conn.createStatement(); -// st.execute("DROP ALL OBJECTS DELETE FILES"); -// st.close(); -// conn.close(); -// System.out.println("done"); -// } - -// public void testBoucle() { -// int STR_MAX = 20; -// int METIER_MAX = 20; -// int POP_MAX = 4; -// int GROUP_MAX = 15; -// int MAILLE_MAX = 6000; -// -// double s = 0; -// double ss = 0; -// -// long start = System.nanoTime(); -// for (int a=0; a<STR_MAX; a++) { -// for (int b=0; b<METIER_MAX; b++) { -// for (int c=0; c<POP_MAX; c++) { -// for (int d=0; d<GROUP_MAX; d++) { -// for (int e=0; e<MAILLE_MAX; e++) { -// s++; -// ss += sum(a, b, c + 1); -// } -// } -// } -// } -// } -// long end = System.nanoTime(); -// -// System.out.println(s + "(" + ss + ")" + " in " + DurationFormatUtils.formatDuration((end-start)/1000000, "s'.'S")); -// } -// -// public double sum(double a, double b, double c) { -// return a * b / c; -// } - -} - -