@@ -64,20 +64,20 @@ public void run(String... args) {
64
64
65
65
public void initializeData () {
66
66
67
- Customer customer =
Customer .
builder ().
id (
1 ).
name (
"sugan0tech" ).
email (
"[email protected] " ).
build ();
67
+ var customer =
Customer .
builder ().
id (
1 ).
name (
"sugan0tech" ).
email (
"[email protected] " ).
build ();
68
68
customerService .createCustomer (customer );
69
69
70
- Product oreo = Product .builder ().id (1 ).price (2.00 ).name ("Oreo" ).build ();
71
- Product cone = Product .builder ().id (3 ).price (1.15 ).name ("Ice Cream Cone" ).build ();
72
- Product apple = Product .builder ().id (4 ).price (2.00 ).name ("Apple" ).build ();
73
- Product sandwich = Product .builder ().id (2 ).price (6.00 ).name ("Sandwich" ).build ();
70
+ var oreo = Product .builder ().id (1 ).price (2.00 ).name ("Oreo" ).build ();
71
+ var cone = Product .builder ().id (3 ).price (1.15 ).name ("Ice Cream Cone" ).build ();
72
+ var apple = Product .builder ().id (4 ).price (2.00 ).name ("Apple" ).build ();
73
+ var sandwich = Product .builder ().id (2 ).price (6.00 ).name ("Sandwich" ).build ();
74
74
productService .createProduct (oreo );
75
75
productService .createProduct (cone );
76
76
productService .createProduct (apple );
77
77
productService .createProduct (sandwich );
78
78
79
79
orderService .createOrder (1 , customer , oreo );
80
- orderService .createOrder (2 , customer , sandwich );
81
80
orderService .createOrder (3 , customer , apple );
81
+ orderService .createOrder (2 , customer , sandwich );
82
82
}
83
83
}
0 commit comments