-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Notifications mail a la confirmation de la commande #20 - correction …
…tests unitaires
- Loading branch information
1 parent
b3b89c2
commit 3ee3ed8
Showing
5 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,7 +74,7 @@ void should_send_a_mail_correctly() { | |
mailBodyCaptor.capture()); | ||
String mailBody = mailBodyCaptor.getValue(); | ||
String cleanMailBody = mailBody.replaceAll("( {4})*", ""); | ||
assertThat(cleanMailBody).isEqualTo(String.format("<meta charset=\"UTF-8\"><div>La commande n° 1 a été enregistrée sur <a href='%s'>ViandeEnDirect.eu</a>.</div><div><ul><li>Client :<ul><li>Nom : John Doe</li><li>Email : [email protected]</li><li>Téléphone : 0102030405</li></ul></li><li>Montant de la commande : 1000.0 €TTC</li><li>Quantité commandée : 30.0 kg</li></ul></div>",viandeEnDirectConfiguration.getProducerFrontendUrl())); | ||
assertThat(cleanMailBody).isEqualTo(String.format("<meta charset=\"UTF-8\"><div>La commande n° %s a été enregistrée sur <a href='%s'>ViandeEnDirect.eu</a>.</div><div><ul><li>Client :<ul><li>Nom : John Doe</li><li>Email : [email protected]</li><li>Téléphone : 0102030405</li></ul></li><li>Montant de la commande : 1000.0 €TTC</li><li>Quantité commandée : 30.0 kg</li></ul></div>",order.getId(), viandeEnDirectConfiguration.getProducerFrontendUrl())); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters