diff --git a/spring-shell.log b/spring-shell.log index 5334f2471b4fd46160fbd05cfd85c98b10289e72..7ad6f2bb9d43c0ca5bf80e10a11d2f200fdf9124 100644 --- a/spring-shell.log +++ b/spring-shell.log @@ -7,3 +7,5 @@ 1583005822321:current 1583005843578:purchase 1583005850295:sell 50000 +1583006076290:help +1583006336388:exit diff --git a/src/main/java/nl/utwente/soa/inventoryApplication/commands/CalculateCommands.java b/src/main/java/nl/utwente/soa/inventoryApplication/commands/InventoryCommands.java similarity index 91% rename from src/main/java/nl/utwente/soa/inventoryApplication/commands/CalculateCommands.java rename to src/main/java/nl/utwente/soa/inventoryApplication/commands/InventoryCommands.java index e9361707f1378a0a97cf8044967a8b3c11822f98..2a32921b9a51bb954b7775ff0476a827a90bddff 100644 --- a/src/main/java/nl/utwente/soa/inventoryApplication/commands/CalculateCommands.java +++ b/src/main/java/nl/utwente/soa/inventoryApplication/commands/InventoryCommands.java @@ -7,7 +7,7 @@ import org.springframework.shell.standard.ShellComponent; import org.springframework.shell.standard.ShellMethod; @ShellComponent -public class CalculateCommands { +public class InventoryCommands { @Autowired private InventoryService inventoryService; @@ -22,6 +22,8 @@ public class CalculateCommands { @ShellMethod("Buy new inventory") public String purchase() { + // Do a request to the Purchase service + inventoryService.addInventory(50); return "Jeej new inventory";