forked from pierront/mylibrary-template
Passer commande #4
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user