Passer commande #4

Merged
Marvin AUBERT merged 23 commits from PasserCommande into main 2026-06-14 21:46:25 +02:00
Showing only changes of commit 2c14ee5e0b - Show all commits
@@ -1,6 +1,7 @@
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.ModePaiement;
import fr.iut_fbleau.but3.dev62.mylibrary.customer.entity.Customer;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
@@ -25,6 +26,7 @@ public class CommandeTest {
String ville = "LKa Rochette" ;
String codePostal = "7700" ;
String pays = "France" ;
String modePayement = ModePaiement.CB.name() ;
Commande commande = Commande.builder()
.clientId(clientId)
@@ -33,6 +35,7 @@ public class CommandeTest {
.ville(ville)
.codePostal(codePostal)
.pays(pays)
.modePaiement(modePayement)
.build();
assertEquals(clientId, commande.getClientId());
@@ -41,6 +44,7 @@ public class CommandeTest {
assertEquals(ville, commande.getVille());
assertEquals(codePostal, commande.getCodePostal());
assertEquals(pays, commande.getPays());
assertEquals(modePayement, commande.getModePaiement());
}