modif sur les datas csv
This commit is contained in:
parent
4c5c9cf2b3
commit
2bd902551a
3 changed files with 7 additions and 3 deletions
|
|
@ -12,6 +12,7 @@
|
|||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<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" 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" />
|
||||
|
|
|
|||
|
|
@ -16,6 +16,12 @@ public class DataCsv {
|
|||
*/
|
||||
public DataCsv(){
|
||||
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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -50,9 +50,6 @@ public class ImportData {
|
|||
|
||||
/**
|
||||
* 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() {
|
||||
if (UrlExist()) {
|
||||
|
|
|
|||
Reference in a new issue