Skip to content

Commit f9424d3

Browse files
committed
Test
1 parent e620804 commit f9424d3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

application/src/main/java/eu/happycoders/shop/application/service/cart/GetCartService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
import eu.happycoders.shop.application.port.out.persistence.CartRepository;
55
import eu.happycoders.shop.model.cart.Cart;
66
import eu.happycoders.shop.model.customer.CustomerId;
7+
8+
import java.util.List;
79
import java.util.Objects;
810

911
/**
@@ -23,6 +25,10 @@ public GetCartService(CartRepository cartRepository) {
2325
public Cart getCart(CustomerId customerIdVeryLong) {
2426
Objects.requireNonNull(customerIdVeryLong, "'customerId' must not be null");
2527

28+
List<String> foo = List.of("foo", "bar");
29+
List<String> strings = List.copyOf(foo);
30+
IO.println("strings = " + strings);
31+
2632
return cartRepository
2733
.findByCustomerId(customerIdVeryLong)
2834
.orElseGet(() -> new Cart(customerIdVeryLong));

0 commit comments

Comments
 (0)