CheckException dans ShoppingCartController
Publié : 15 janv. 2020 14:34
Bonjour,
J'utilise la methode
public Long createOrder(String customerId, Map<String,Integer> shoppingCart) throws CreateException, CheckException { ... } de OrderServiceImpl pour créer une commande dans ShoppingCartCheckoutController.
Je récupère CustomerId par Authentification et ShoppingCart par le bean.
En testant sur le site, j'obtiens CheckException.
J'ai testé avec des valeurs en dur:
Map<String, Integer> myCart = new HashMap<String, Integer>();
myCart.put("EST10", 2);
Long orderId = orderService.createOrder("bill000", myCart);
L'exception est toujours lévé.
J'ai aucune erreur dans les tests et je ne sais plus par où regarder...
Est ce que quelqu'un pourrait aider?
En vous remerciant,
Asya
J'utilise la methode
public Long createOrder(String customerId, Map<String,Integer> shoppingCart) throws CreateException, CheckException { ... } de OrderServiceImpl pour créer une commande dans ShoppingCartCheckoutController.
Je récupère CustomerId par Authentification et ShoppingCart par le bean.
En testant sur le site, j'obtiens CheckException.
J'ai testé avec des valeurs en dur:
Map<String, Integer> myCart = new HashMap<String, Integer>();
myCart.put("EST10", 2);
Long orderId = orderService.createOrder("bill000", myCart);
L'exception est toujours lévé.
J'ai aucune erreur dans les tests et je ne sais plus par où regarder...
Est ce que quelqu'un pourrait aider?
En vous remerciant,
Asya