Skip to content
Snippets Groups Projects
Commit c832aba8 authored by michael.ramusi's avatar michael.ramusi
Browse files

productQuantityAdded

parent ed209367
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,12 @@ public class StockService { ...@@ -93,6 +93,12 @@ public class StockService {
send(new EventProductQuantityAdded(e.id(), "Quantity added to the stock")); send(new EventProductQuantityAdded(e.id(), "Quantity added to the stock"));
System.out.println(e.toString()); System.out.println(e.toString());
} }
if(obj instanceof EventProductQuantityAdded){
EventProductQuantityAdded e = (EventProductQuantityAdded) obj;
System.out.println(e.toString());
}
// ------------------------------------------ // ------------------------------------------
if (obj instanceof EventOrderCreated) { if (obj instanceof EventOrderCreated) {
EventOrderCreated e = (EventOrderCreated) obj; EventOrderCreated e = (EventOrderCreated) obj;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment