modif sur les datas csv

This commit is contained in:
yann 2021-01-31 19:51:26 +01:00
parent 4c5c9cf2b3
commit 2bd902551a
3 changed files with 7 additions and 3 deletions

View file

@ -12,6 +12,7 @@
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="org.apache.maven.plugins:maven-surefire-plugin:2.22.2" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.7.0" level="project" /> <orderEntry type="library" scope="TEST" name="Maven: org.junit.jupiter:junit-jupiter-engine:5.7.0" level="project" />
<orderEntry type="library" name="Maven: org.apiguardian:apiguardian-api:1.1.0" level="project" /> <orderEntry type="library" name="Maven: org.apiguardian:apiguardian-api:1.1.0" level="project" />
<orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.7.0" level="project" /> <orderEntry type="library" scope="TEST" name="Maven: org.junit.platform:junit-platform-engine:1.7.0" level="project" />

View file

@ -16,6 +16,12 @@ public class DataCsv {
*/ */
public DataCsv(){ public DataCsv(){
this.destination = "src/test/resources/CsvFile"; this.destination = "src/test/resources/CsvFile";
ImportData imp = new ImportData("https://www.fdj.fr/jeux-de-tirage/loto/statistiques");
}
public DataCsv(String s){
this.destination = s;
ImportData imp = new ImportData("https://www.fdj.fr/jeux-de-tirage/loto/statistiques");
} }
/** /**

View file

@ -50,9 +50,6 @@ public class ImportData {
/** /**
* Méthode permettant de télécharger un fichier à partir d'un URL * Méthode permettant de télécharger un fichier à partir d'un URL
* Séquence du code :
* - récupération du lien du fichier à télécharger à partir du code source de la page
* - enregistrement du fichier télécharger dans le répertoire définit dans le constructeur
*/ */
public void DownloadCsvZip() { public void DownloadCsvZip() {
if (UrlExist()) { if (UrlExist()) {