Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDE-381-cas-de-fichier-avec-header-incorrect-non-bloque : #95

Merged

Conversation

EryneKL
Copy link
Contributor

@EryneKL EryneKL commented Feb 29, 2024

 - ajout d'un contrôle et modification d'un contrôle dans la méthode detectHeaderPresence() (CheckFiles.java)
 - adaptation des TU

     - ajout d'un contrôle et modification d'un contrôle dans la méthode detectHeaderPresence() (CheckFiles.java)
     - adaptation des TU
if(isBypassOptionPresent && line.contains("best_ppn")) {
log.error("Message envoyé : {}", "L'en tete du fichier est incorrecte.");
throw new IllegalFileFormatException("L'en tete du fichier est incorrecte. L'option _BYPASS n'est pas compatible avec la présence d'une colonne best_pnn.");
} else if(!line.contains(header)) {
} else if(headerKbart.length == 25 && !line.contains(header)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

et Si je met un header de seulement 2 colonnes ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Corrigé 👍 Merci pour le commentaire !

@jvk88511334 jvk88511334 merged commit 4db8824 into develop Feb 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants