Skip to content

Commit

Permalink
Ajout de fichier non complets pour tester plus tard
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelJ-S committed Jun 11, 2020
1 parent 64249f9 commit e452d59
Show file tree
Hide file tree
Showing 27 changed files with 121 additions and 10 deletions.
12 changes: 4 additions & 8 deletions entrees/entree01.json → entrees/acceptees/entree01.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"nom": "Jacques Berger",
{"nom": "Jacques Berger",
"genre": 1,
"date_de_naissance": "1956-12-03",
"fumeur": {
"tabac": false,
"cannabis": true
"cannabis": false
},
"alcool": true,
"alcool": false,
"antecedents": [
{
"diagnostic": "Colon irritable",
Expand All @@ -17,7 +16,4 @@
"depuis": "2020-01-03"
}
],
"sports": [
"Soccer", "Baseball"
]
}
"sports": ["Baseball","Soccer"]}
19 changes: 19 additions & 0 deletions entrees/acceptees/entree02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{"nom": "Jacques Berger",
"genre": 1,
"date_de_naissance": "1956-12-03",
"fumeur": {
"tabac": false,
"cannabis": false
},
"alcool": false,
"antecedents": [
{
"diagnostic": "Colon irritable",
"depuis": "2010-10-04"
},
{
"diagnostic": "COVID-19",
"depuis": "2020-01-03"
}
],
"sports": ["Baseball","Soccer"]}
19 changes: 19 additions & 0 deletions entrees/acceptees/entree03.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{"nom": "Jacques Berger",
"genre": 1,
"date_de_naissance": "1956-12-03",
"fumeur": {
"tabac": false,
"cannabis": false
},
"alcool": false,
"antecedents": [
{
"diagnostic": "Colon irritable",
"depuis": "2010-10-04"
},
{
"diagnostic": "COVID-19",
"depuis": "2020-01-03"
}
],
"sports": ["Baseball","Soccer"]}
19 changes: 19 additions & 0 deletions entrees/acceptees/entree04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{"nom": "Jacques Berger",
"genre": 1,
"date_de_naissance": "1956-12-03",
"fumeur": {
"tabac": false,
"cannabis": false
},
"alcool": false,
"antecedents": [
{
"diagnostic": "Colon irritable",
"depuis": "2010-10-04"
},
{
"diagnostic": "COVID-19",
"depuis": "2020-01-03"
}
],
"sports": ["Baseball","Soccer"]}
19 changes: 19 additions & 0 deletions entrees/acceptees/entree05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{"nom": "Jacques Berger",
"genre": 1,
"date_de_naissance": "1956-12-03",
"fumeur": {
"tabac": false,
"cannabis": false
},
"alcool": false,
"antecedents": [
{
"diagnostic": "Colon irritable",
"depuis": "2010-10-04"
},
{
"diagnostic": "COVID-19",
"depuis": "2020-01-03"
}
],
"sports": ["Baseball","Soccer"]}
19 changes: 19 additions & 0 deletions entrees/acceptees/entree07.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{"nom": "Jacques Berger",
"genre": 1,
"date_de_naissance": "1956-12-03",
"fumeur": {
"tabac": false,
"cannabis": false
},
"alcool": false,
"antecedents": [
{
"diagnostic": "Colon irritable",
"depuis": "2010-10-04"
},
{
"diagnostic": "COVID-19",
"depuis": "2020-01-03"
}
],
"sports": ["Baseball","Soccer"]}
Empty file added entrees/acceptees/entree08.json
Empty file.
Empty file added entrees/acceptees/entree09.json
Empty file.
Empty file added entrees/acceptees/entree10.json
Empty file.
Empty file added entrees/refusees/entree11.json
Empty file.
Empty file added entrees/refusees/entree12.json
Empty file.
Empty file added entrees/refusees/entree13.json
Empty file.
Empty file added entrees/refusees/entree14.json
Empty file.
Empty file added entrees/refusees/entree15.json
Empty file.
Empty file added entrees/refusees/entree16.json
Empty file.
Empty file added entrees/refusees/entree17.json
Empty file.
Empty file added entrees/refusees/entree18.json
Empty file.
Empty file added entrees/refusees/entree19.json
Empty file.
Empty file added entrees/refusees/entree20.json
Empty file.
19 changes: 19 additions & 0 deletions entreesError/entree21.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{"nom": "Jacques Berger",
"genre": 1,
"date_de_naissance": "1956-12-03",
"fumeur": {
"tabac": false,
"cannabis": false
},
"alcool": false,
"antecedents": [
{
"diagnostic": "Colon irritable",
"depuis": "2010-10-04"
},
{
"diagnostic": "COVID-19",
"depuis": "2020-01-03"
}
],
"sports": ["Baseball","Soccer"]}
Empty file added entreesError/entree22.json
Empty file.
Empty file added entreesError/entree23.json
Empty file.
Empty file added entreesError/entree24.json
Empty file.
Empty file added entreesError/entree25.json
Empty file.
Empty file added entreesError/entree26.json
Empty file.
2 changes: 1 addition & 1 deletion sorties/sortie01.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"eligible": true,
"montant_annuel": 467.5
"montant_annuel": 720
}
3 changes: 2 additions & 1 deletion src/EvaluationAssurance/Principale.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package EvaluationAssurance;

import net.sf.json.JSONException;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.time.DateTimeException;
Expand Down Expand Up @@ -43,6 +42,8 @@ public static void main(String[] args) {
String cheminSortie = args[1];
Soumission evaluation = new Soumission(cheminEntree);
CalculAssurance calculAssurance = new CalculAssurance(evaluation);

System.out.println(evaluation.getAge());
Soumission.reponseEligibilite(cheminSortie,
evaluation.evalEligibilite(), calculAssurance);
System.out.println(MSG_FIN_NORMALE);
Expand Down

0 comments on commit e452d59

Please sign in to comment.