We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bda780d commit 0ce394fCopy full SHA for 0ce394f
splitwise/src/main/java/com/example/splitwise/SplitWise.java
@@ -3,6 +3,7 @@
3
import com.example.splitwise.controller.BalanceSheetController;
4
import com.example.splitwise.controller.GroupController;
5
import com.example.splitwise.controller.UserController;
6
+import com.example.splitwise.entity.user.Group;
7
import lombok.AllArgsConstructor;
8
9
@AllArgsConstructor
@@ -23,6 +24,12 @@ public class SplitWise {
23
24
*/
25
public void demo() {
26
setupUserAndGroup();
27
+
28
+ //Step1: add members to the group
29
+ Group group = groupController.getGroup("G1001");
30
+ group.addMember(userController.getUser("U2001"));
31
+ group.addMember(userController.getUser("U3001"));
32
33
}
34
35
private void setupUserAndGroup() {
0 commit comments