Recently, I chanced upon this
Java Ecommerce code here at
https://codereview.stackexchange.com/questions/224425/java-shopping-cart-design
However, when I tried to run the
JUnit test, it gives error at this line :
Basically, Junit testing is quite alien to me and I need some help to understand about what the error message is trying to tell me.
It says Java.NullPointerException
at CartItem barCodedItem_1 = new CartItem(bean_can);
As this is a review from stackExchange, I thought the code would be running perfectly but it is not....
Hope someone can tell me if there is something wrong with the code at CartItem class.
Thanks.