From: <de...@us...> - 2004-03-10 09:26:26
|
Update of /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8592/src/org/fudaa/dodico/test Modified Files: TestIO.java Log Message: Un fichier geo (binaire) n'etait pas dans le bon format Correction de TestIO.getFile prob sous windows Ajout commentaires Index: TestIO.java =================================================================== RCS file: /cvsroot/fudaa/fudaa_devel/dodico/src/org/fudaa/dodico/test/TestIO.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** TestIO.java 12 Feb 2004 15:32:49 -0000 1.8 --- TestIO.java 10 Mar 2004 09:08:37 -0000 1.9 *************** *** 11,14 **** --- 11,17 ---- import java.io.IOException; import java.net.URL; + + import com.memoire.fu.FuLib; + import junit.framework.TestCase; import org.fudaa.dodico.fichiers.FileFormat; *************** *** 26,29 **** --- 29,33 ---- fic_= getFile(_fic); assertNotNull(fic_); + assertTrue(fic_.exists()); } public abstract void testLecture(); *************** *** 47,51 **** if (url == null) return null; ! return new File(url.getPath()); } public static final File getFile(Class _c, String _f) { --- 51,56 ---- if (url == null) return null; ! File f=new File(FuLib.decode(url.getPath().substring(1))); ! return f; } public static final File getFile(Class _c, String _f) { |