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 ce27a686ef - Show all commits
@@ -61,6 +61,18 @@ public class CommandeTest {
assertNotEquals(originalId, commande.getClientId());
}
@Test
@DisplayName("setRandomUUID should change the ID to a new random UUID")
void testSetRandomUUIDForCommande() {
Commande commande = Commande.builder().build();
UUID originalId = commande.getCommandeId();
commande.setRandomUUIDCommand();
assertNotNull(commande.getCommandeId());
assertNotEquals(originalId, commande.getCommandeId());
}