Skip to content

Commit

Permalink
Correction des TU
Browse files Browse the repository at this point in the history
  • Loading branch information
jvk88511334 committed Oct 21, 2024
1 parent 15e0d61 commit 523648b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ public Integer findTraitementByDemandeId(Integer id) {
public List<String> constructHeaderCsv() {
List<ZonesAutorisees> listZonesAutorisees = this.iZonesAutoriseesDao.findAll();
List<String> headerCsv = new ArrayList<>();
headerCsv.add("TYPE (008);PPN");
headerCsv.add("TYPE (008)");
headerCsv.add("PPN");
for (ZonesAutorisees zonesAutorisees: listZonesAutorisees) {
if(!zonesAutorisees.getLabelZone().startsWith("L")){
headerCsv.add(zonesAutorisees.getLabelZone()+zonesAutorisees.getSousZonesAutorisees().remove(0).getLibelle());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void constructHeaderCsv() {
Mockito.when(iZonesAutoriseesDao.findAll()).thenReturn(zonesAutoriseesList);

List<String> test = referenceService.constructHeaderCsv();
List<String> reference = List.of("PPN;917$a;930$c;$d;".split(";"));
List<String> reference = List.of("TYPE (008);PPN;917$a;930$c;$d;".split(";"));

assertEquals(reference,test);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,6 @@ void addZeros(){
assertThat(Utilitaires.addZeros(str, 9)).isEqualTo("000000012");
}

@Test
void stringToRemove(){
String string = "230727409;seau;bleu;;;";
String stringResult = Utilitaires.removeSemicolonFromEndOfLine(string);
System.out.println(stringResult);
}

/**
* Test de vérification de la méthode supprimant les données locales de la première ligne du fichier
*/
Expand Down

0 comments on commit 523648b

Please sign in to comment.