rajoute du Mode de payement a tester oublie

This commit is contained in:
2026-06-11 21:25:29 +02:00
committed by Marvin AUBERT
parent 42b0073297
commit 01e92154e7
@@ -1,6 +1,7 @@
package fr.iut_fbleau.but3.dev62.mylibrary.commande.entity; package fr.iut_fbleau.but3.dev62.mylibrary.commande.entity;
import fr.iut_fbleau.but3.dev62.mylibrary.commande.LigneCommandeInfo; import fr.iut_fbleau.but3.dev62.mylibrary.commande.LigneCommandeInfo;
import fr.iut_fbleau.but3.dev62.mylibrary.commande.ModePaiement;
import fr.iut_fbleau.but3.dev62.mylibrary.customer.entity.Customer; import fr.iut_fbleau.but3.dev62.mylibrary.customer.entity.Customer;
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@@ -25,6 +26,7 @@ public class CommandeTest {
String ville = "LKa Rochette" ; String ville = "LKa Rochette" ;
String codePostal = "7700" ; String codePostal = "7700" ;
String pays = "France" ; String pays = "France" ;
String modePayement = ModePaiement.CB.name() ;
Commande commande = Commande.builder() Commande commande = Commande.builder()
.clientId(clientId) .clientId(clientId)
@@ -33,6 +35,7 @@ public class CommandeTest {
.ville(ville) .ville(ville)
.codePostal(codePostal) .codePostal(codePostal)
.pays(pays) .pays(pays)
.modePaiement(modePayement)
.build(); .build();
assertEquals(clientId, commande.getClientId()); assertEquals(clientId, commande.getClientId());
@@ -41,6 +44,7 @@ public class CommandeTest {
assertEquals(ville, commande.getVille()); assertEquals(ville, commande.getVille());
assertEquals(codePostal, commande.getCodePostal()); assertEquals(codePostal, commande.getCodePostal());
assertEquals(pays, commande.getPays()); assertEquals(pays, commande.getPays());
assertEquals(modePayement, commande.getModePaiement());
} }