From c8bfaabd7e57a7898b5ada9a3887a235b941175d Mon Sep 17 00:00:00 2001 From: Vincent Potucek Date: Thu, 2 Jan 2025 16:57:25 +0100 Subject: [PATCH] move --- {model => bootstrap/adapter/application/model}/pom.xml | 0 .../src/main/java/eu/happycoders/shop/model/cart/Cart.java | 0 .../java/eu/happycoders/shop/model/cart/CartLineItem.java | 0 .../shop/model/cart/NotEnoughItemsInStockException.java | 0 .../java/eu/happycoders/shop/model/customer/CustomerId.java | 0 .../main/java/eu/happycoders/shop/model/money/Money.java | 0 .../java/eu/happycoders/shop/model/product/Product.java | 0 .../java/eu/happycoders/shop/model/product/ProductId.java | 0 .../test/java/eu/happycoders/shop/model/cart/CartTest.java | 0 .../eu/happycoders/shop/model/cart/TestCartFactory.java | 0 .../eu/happycoders/shop/model/customer/CustomerIdTest.java | 0 .../java/eu/happycoders/shop/model/money/MoneyTest.java | 0 .../eu/happycoders/shop/model/money/TestMoneyFactory.java | 0 .../happycoders/shop/model/product/TestProductFactory.java | 0 {application => bootstrap/adapter/application}/pom.xml | 0 .../shop/application/port/in/cart/AddToCartUseCase.java | 0 .../shop/application/port/in/cart/EmptyCartUseCase.java | 0 .../shop/application/port/in/cart/GetCartUseCase.java | 0 .../application/port/in/cart/ProductNotFoundException.java | 0 .../application/port/in/product/FindProductsUseCase.java | 0 .../application/port/out/persistence/CartRepository.java | 0 .../application/port/out/persistence/ProductRepository.java | 0 .../shop/application/service/cart/AddToCartService.java | 0 .../shop/application/service/cart/EmptyCartService.java | 0 .../shop/application/service/cart/GetCartService.java | 0 .../application/service/product/FindProductsService.java | 0 .../shop/application/service/cart/AddToCartServiceTest.java | 0 .../shop/application/service/cart/EmptyCartServiceTest.java | 0 .../shop/application/service/cart/GetCartServiceTest.java | 0 .../service/product/FindProductsServiceTest.java | 0 {adapter => bootstrap/adapter}/pom.xml | 0 .../shop/adapter/in/rest/cart/AddToCartController.java | 0 .../shop/adapter/in/rest/cart/CartLineItemWebModel.java | 0 .../happycoders/shop/adapter/in/rest/cart/CartWebModel.java | 0 .../shop/adapter/in/rest/cart/EmptyCartController.java | 0 .../shop/adapter/in/rest/cart/GetCartController.java | 0 .../shop/adapter/in/rest/common/ControllerCommons.java | 0 .../shop/adapter/in/rest/common/CustomerIdParser.java | 0 .../shop/adapter/in/rest/common/ErrorEntity.java | 0 .../shop/adapter/in/rest/common/ProductIdParser.java | 0 .../adapter/in/rest/product/FindProductsController.java | 0 .../shop/adapter/in/rest/product/ProductInListWebModel.java | 0 .../shop/adapter/out/persistence/DemoProducts.java | 0 .../out/persistence/inmemory/InMemoryCartRepository.java | 0 .../out/persistence/inmemory/InMemoryProductRepository.java | 0 .../shop/adapter/out/persistence/jpa/CartJpaEntity.java | 0 .../adapter/out/persistence/jpa/CartLineItemJpaEntity.java | 0 .../shop/adapter/out/persistence/jpa/CartMapper.java | 0 .../out/persistence/jpa/EntityManagerFactoryFactory.java | 0 .../shop/adapter/out/persistence/jpa/JpaCartRepository.java | 0 .../adapter/out/persistence/jpa/JpaProductRepository.java | 0 .../shop/adapter/out/persistence/jpa/ProductJpaEntity.java | 0 .../shop/adapter/out/persistence/jpa/ProductMapper.java | 0 .../adapter}/src/main/resources/META-INF/persistence.xml | 0 .../happycoders/shop/adapter/in/rest/HttpTestCommons.java | 0 .../adapter/in/rest/cart/CartsControllerAssertions.java | 0 .../shop/adapter/in/rest/cart/CartsControllerTest.java | 0 .../in/rest/product/ProductsControllerAssertions.java | 0 .../adapter/in/rest/product/ProductsControllerTest.java | 0 .../adapter/out/persistence/AbstractCartRepositoryTest.java | 0 .../out/persistence/AbstractProductRepositoryTest.java | 0 .../persistence/inmemory/InMemoryCartRepositoryTest.java | 0 .../persistence/inmemory/InMemoryProductRepositoryTest.java | 0 .../adapter/out/persistence/jpa/JpaCartRepositoryTest.java | 0 .../out/persistence/jpa/JpaProductRepositoryTest.java | 0 pom.xml | 6 +++--- 66 files changed, 3 insertions(+), 3 deletions(-) rename {model => bootstrap/adapter/application/model}/pom.xml (100%) rename {model => bootstrap/adapter/application/model}/src/main/java/eu/happycoders/shop/model/cart/Cart.java (100%) rename {model => bootstrap/adapter/application/model}/src/main/java/eu/happycoders/shop/model/cart/CartLineItem.java (100%) rename {model => bootstrap/adapter/application/model}/src/main/java/eu/happycoders/shop/model/cart/NotEnoughItemsInStockException.java (100%) rename {model => bootstrap/adapter/application/model}/src/main/java/eu/happycoders/shop/model/customer/CustomerId.java (100%) rename {model => bootstrap/adapter/application/model}/src/main/java/eu/happycoders/shop/model/money/Money.java (100%) rename {model => bootstrap/adapter/application/model}/src/main/java/eu/happycoders/shop/model/product/Product.java (100%) rename {model => bootstrap/adapter/application/model}/src/main/java/eu/happycoders/shop/model/product/ProductId.java (100%) rename {model => bootstrap/adapter/application/model}/src/test/java/eu/happycoders/shop/model/cart/CartTest.java (100%) rename {model => bootstrap/adapter/application/model}/src/test/java/eu/happycoders/shop/model/cart/TestCartFactory.java (100%) rename {model => bootstrap/adapter/application/model}/src/test/java/eu/happycoders/shop/model/customer/CustomerIdTest.java (100%) rename {model => bootstrap/adapter/application/model}/src/test/java/eu/happycoders/shop/model/money/MoneyTest.java (100%) rename {model => bootstrap/adapter/application/model}/src/test/java/eu/happycoders/shop/model/money/TestMoneyFactory.java (100%) rename {model => bootstrap/adapter/application/model}/src/test/java/eu/happycoders/shop/model/product/TestProductFactory.java (100%) rename {application => bootstrap/adapter/application}/pom.xml (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/port/in/cart/AddToCartUseCase.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/port/in/cart/EmptyCartUseCase.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/port/in/cart/GetCartUseCase.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/port/in/cart/ProductNotFoundException.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/port/in/product/FindProductsUseCase.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/port/out/persistence/CartRepository.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/port/out/persistence/ProductRepository.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/service/cart/AddToCartService.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/service/cart/EmptyCartService.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/service/cart/GetCartService.java (100%) rename {application => bootstrap/adapter/application}/src/main/java/eu/happycoders/shop/application/service/product/FindProductsService.java (100%) rename {application => bootstrap/adapter/application}/src/test/java/eu/happycoders/shop/application/service/cart/AddToCartServiceTest.java (100%) rename {application => bootstrap/adapter/application}/src/test/java/eu/happycoders/shop/application/service/cart/EmptyCartServiceTest.java (100%) rename {application => bootstrap/adapter/application}/src/test/java/eu/happycoders/shop/application/service/cart/GetCartServiceTest.java (100%) rename {application => bootstrap/adapter/application}/src/test/java/eu/happycoders/shop/application/service/product/FindProductsServiceTest.java (100%) rename {adapter => bootstrap/adapter}/pom.xml (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/AddToCartController.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartLineItemWebModel.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartWebModel.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/EmptyCartController.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/GetCartController.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ControllerCommons.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/common/CustomerIdParser.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ErrorEntity.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ProductIdParser.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/product/FindProductsController.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/in/rest/product/ProductInListWebModel.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/DemoProducts.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepository.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepository.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartJpaEntity.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartLineItemJpaEntity.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartMapper.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/EntityManagerFactoryFactory.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepository.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepository.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductJpaEntity.java (100%) rename {adapter => bootstrap/adapter}/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductMapper.java (100%) rename {adapter => bootstrap/adapter}/src/main/resources/META-INF/persistence.xml (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/in/rest/HttpTestCommons.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerAssertions.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerTest.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerAssertions.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerTest.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractCartRepositoryTest.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractProductRepositoryTest.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepositoryTest.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepositoryTest.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepositoryTest.java (100%) rename {adapter => bootstrap/adapter}/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepositoryTest.java (100%) diff --git a/model/pom.xml b/bootstrap/adapter/application/model/pom.xml similarity index 100% rename from model/pom.xml rename to bootstrap/adapter/application/model/pom.xml diff --git a/model/src/main/java/eu/happycoders/shop/model/cart/Cart.java b/bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/cart/Cart.java similarity index 100% rename from model/src/main/java/eu/happycoders/shop/model/cart/Cart.java rename to bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/cart/Cart.java diff --git a/model/src/main/java/eu/happycoders/shop/model/cart/CartLineItem.java b/bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/cart/CartLineItem.java similarity index 100% rename from model/src/main/java/eu/happycoders/shop/model/cart/CartLineItem.java rename to bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/cart/CartLineItem.java diff --git a/model/src/main/java/eu/happycoders/shop/model/cart/NotEnoughItemsInStockException.java b/bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/cart/NotEnoughItemsInStockException.java similarity index 100% rename from model/src/main/java/eu/happycoders/shop/model/cart/NotEnoughItemsInStockException.java rename to bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/cart/NotEnoughItemsInStockException.java diff --git a/model/src/main/java/eu/happycoders/shop/model/customer/CustomerId.java b/bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/customer/CustomerId.java similarity index 100% rename from model/src/main/java/eu/happycoders/shop/model/customer/CustomerId.java rename to bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/customer/CustomerId.java diff --git a/model/src/main/java/eu/happycoders/shop/model/money/Money.java b/bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/money/Money.java similarity index 100% rename from model/src/main/java/eu/happycoders/shop/model/money/Money.java rename to bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/money/Money.java diff --git a/model/src/main/java/eu/happycoders/shop/model/product/Product.java b/bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/product/Product.java similarity index 100% rename from model/src/main/java/eu/happycoders/shop/model/product/Product.java rename to bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/product/Product.java diff --git a/model/src/main/java/eu/happycoders/shop/model/product/ProductId.java b/bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/product/ProductId.java similarity index 100% rename from model/src/main/java/eu/happycoders/shop/model/product/ProductId.java rename to bootstrap/adapter/application/model/src/main/java/eu/happycoders/shop/model/product/ProductId.java diff --git a/model/src/test/java/eu/happycoders/shop/model/cart/CartTest.java b/bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/cart/CartTest.java similarity index 100% rename from model/src/test/java/eu/happycoders/shop/model/cart/CartTest.java rename to bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/cart/CartTest.java diff --git a/model/src/test/java/eu/happycoders/shop/model/cart/TestCartFactory.java b/bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/cart/TestCartFactory.java similarity index 100% rename from model/src/test/java/eu/happycoders/shop/model/cart/TestCartFactory.java rename to bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/cart/TestCartFactory.java diff --git a/model/src/test/java/eu/happycoders/shop/model/customer/CustomerIdTest.java b/bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/customer/CustomerIdTest.java similarity index 100% rename from model/src/test/java/eu/happycoders/shop/model/customer/CustomerIdTest.java rename to bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/customer/CustomerIdTest.java diff --git a/model/src/test/java/eu/happycoders/shop/model/money/MoneyTest.java b/bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/money/MoneyTest.java similarity index 100% rename from model/src/test/java/eu/happycoders/shop/model/money/MoneyTest.java rename to bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/money/MoneyTest.java diff --git a/model/src/test/java/eu/happycoders/shop/model/money/TestMoneyFactory.java b/bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/money/TestMoneyFactory.java similarity index 100% rename from model/src/test/java/eu/happycoders/shop/model/money/TestMoneyFactory.java rename to bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/money/TestMoneyFactory.java diff --git a/model/src/test/java/eu/happycoders/shop/model/product/TestProductFactory.java b/bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/product/TestProductFactory.java similarity index 100% rename from model/src/test/java/eu/happycoders/shop/model/product/TestProductFactory.java rename to bootstrap/adapter/application/model/src/test/java/eu/happycoders/shop/model/product/TestProductFactory.java diff --git a/application/pom.xml b/bootstrap/adapter/application/pom.xml similarity index 100% rename from application/pom.xml rename to bootstrap/adapter/application/pom.xml diff --git a/application/src/main/java/eu/happycoders/shop/application/port/in/cart/AddToCartUseCase.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/cart/AddToCartUseCase.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/port/in/cart/AddToCartUseCase.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/cart/AddToCartUseCase.java diff --git a/application/src/main/java/eu/happycoders/shop/application/port/in/cart/EmptyCartUseCase.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/cart/EmptyCartUseCase.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/port/in/cart/EmptyCartUseCase.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/cart/EmptyCartUseCase.java diff --git a/application/src/main/java/eu/happycoders/shop/application/port/in/cart/GetCartUseCase.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/cart/GetCartUseCase.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/port/in/cart/GetCartUseCase.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/cart/GetCartUseCase.java diff --git a/application/src/main/java/eu/happycoders/shop/application/port/in/cart/ProductNotFoundException.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/cart/ProductNotFoundException.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/port/in/cart/ProductNotFoundException.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/cart/ProductNotFoundException.java diff --git a/application/src/main/java/eu/happycoders/shop/application/port/in/product/FindProductsUseCase.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/product/FindProductsUseCase.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/port/in/product/FindProductsUseCase.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/in/product/FindProductsUseCase.java diff --git a/application/src/main/java/eu/happycoders/shop/application/port/out/persistence/CartRepository.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/out/persistence/CartRepository.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/port/out/persistence/CartRepository.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/out/persistence/CartRepository.java diff --git a/application/src/main/java/eu/happycoders/shop/application/port/out/persistence/ProductRepository.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/out/persistence/ProductRepository.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/port/out/persistence/ProductRepository.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/port/out/persistence/ProductRepository.java diff --git a/application/src/main/java/eu/happycoders/shop/application/service/cart/AddToCartService.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/service/cart/AddToCartService.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/service/cart/AddToCartService.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/service/cart/AddToCartService.java diff --git a/application/src/main/java/eu/happycoders/shop/application/service/cart/EmptyCartService.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/service/cart/EmptyCartService.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/service/cart/EmptyCartService.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/service/cart/EmptyCartService.java diff --git a/application/src/main/java/eu/happycoders/shop/application/service/cart/GetCartService.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/service/cart/GetCartService.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/service/cart/GetCartService.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/service/cart/GetCartService.java diff --git a/application/src/main/java/eu/happycoders/shop/application/service/product/FindProductsService.java b/bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/service/product/FindProductsService.java similarity index 100% rename from application/src/main/java/eu/happycoders/shop/application/service/product/FindProductsService.java rename to bootstrap/adapter/application/src/main/java/eu/happycoders/shop/application/service/product/FindProductsService.java diff --git a/application/src/test/java/eu/happycoders/shop/application/service/cart/AddToCartServiceTest.java b/bootstrap/adapter/application/src/test/java/eu/happycoders/shop/application/service/cart/AddToCartServiceTest.java similarity index 100% rename from application/src/test/java/eu/happycoders/shop/application/service/cart/AddToCartServiceTest.java rename to bootstrap/adapter/application/src/test/java/eu/happycoders/shop/application/service/cart/AddToCartServiceTest.java diff --git a/application/src/test/java/eu/happycoders/shop/application/service/cart/EmptyCartServiceTest.java b/bootstrap/adapter/application/src/test/java/eu/happycoders/shop/application/service/cart/EmptyCartServiceTest.java similarity index 100% rename from application/src/test/java/eu/happycoders/shop/application/service/cart/EmptyCartServiceTest.java rename to bootstrap/adapter/application/src/test/java/eu/happycoders/shop/application/service/cart/EmptyCartServiceTest.java diff --git a/application/src/test/java/eu/happycoders/shop/application/service/cart/GetCartServiceTest.java b/bootstrap/adapter/application/src/test/java/eu/happycoders/shop/application/service/cart/GetCartServiceTest.java similarity index 100% rename from application/src/test/java/eu/happycoders/shop/application/service/cart/GetCartServiceTest.java rename to bootstrap/adapter/application/src/test/java/eu/happycoders/shop/application/service/cart/GetCartServiceTest.java diff --git a/application/src/test/java/eu/happycoders/shop/application/service/product/FindProductsServiceTest.java b/bootstrap/adapter/application/src/test/java/eu/happycoders/shop/application/service/product/FindProductsServiceTest.java similarity index 100% rename from application/src/test/java/eu/happycoders/shop/application/service/product/FindProductsServiceTest.java rename to bootstrap/adapter/application/src/test/java/eu/happycoders/shop/application/service/product/FindProductsServiceTest.java diff --git a/adapter/pom.xml b/bootstrap/adapter/pom.xml similarity index 100% rename from adapter/pom.xml rename to bootstrap/adapter/pom.xml diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/AddToCartController.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/AddToCartController.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/AddToCartController.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/AddToCartController.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartLineItemWebModel.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartLineItemWebModel.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartLineItemWebModel.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartLineItemWebModel.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartWebModel.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartWebModel.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartWebModel.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/CartWebModel.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/EmptyCartController.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/EmptyCartController.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/EmptyCartController.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/EmptyCartController.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/GetCartController.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/GetCartController.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/GetCartController.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/cart/GetCartController.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ControllerCommons.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ControllerCommons.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ControllerCommons.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ControllerCommons.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/CustomerIdParser.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/CustomerIdParser.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/CustomerIdParser.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/CustomerIdParser.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ErrorEntity.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ErrorEntity.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ErrorEntity.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ErrorEntity.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ProductIdParser.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ProductIdParser.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ProductIdParser.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/common/ProductIdParser.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/product/FindProductsController.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/product/FindProductsController.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/product/FindProductsController.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/product/FindProductsController.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/product/ProductInListWebModel.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/product/ProductInListWebModel.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/product/ProductInListWebModel.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/in/rest/product/ProductInListWebModel.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/DemoProducts.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/DemoProducts.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/DemoProducts.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/DemoProducts.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepository.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepository.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepository.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepository.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepository.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepository.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepository.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepository.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartJpaEntity.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartJpaEntity.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartJpaEntity.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartJpaEntity.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartLineItemJpaEntity.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartLineItemJpaEntity.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartLineItemJpaEntity.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartLineItemJpaEntity.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartMapper.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartMapper.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartMapper.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/CartMapper.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/EntityManagerFactoryFactory.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/EntityManagerFactoryFactory.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/EntityManagerFactoryFactory.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/EntityManagerFactoryFactory.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepository.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepository.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepository.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepository.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepository.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepository.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepository.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepository.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductJpaEntity.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductJpaEntity.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductJpaEntity.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductJpaEntity.java diff --git a/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductMapper.java b/bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductMapper.java similarity index 100% rename from adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductMapper.java rename to bootstrap/adapter/src/main/java/eu/happycoders/shop/adapter/out/persistence/jpa/ProductMapper.java diff --git a/adapter/src/main/resources/META-INF/persistence.xml b/bootstrap/adapter/src/main/resources/META-INF/persistence.xml similarity index 100% rename from adapter/src/main/resources/META-INF/persistence.xml rename to bootstrap/adapter/src/main/resources/META-INF/persistence.xml diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/HttpTestCommons.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/HttpTestCommons.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/HttpTestCommons.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/HttpTestCommons.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerAssertions.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerAssertions.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerAssertions.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerAssertions.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerTest.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerTest.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerTest.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/cart/CartsControllerTest.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerAssertions.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerAssertions.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerAssertions.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerAssertions.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerTest.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerTest.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerTest.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/in/rest/product/ProductsControllerTest.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractCartRepositoryTest.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractCartRepositoryTest.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractCartRepositoryTest.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractCartRepositoryTest.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractProductRepositoryTest.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractProductRepositoryTest.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractProductRepositoryTest.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/AbstractProductRepositoryTest.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepositoryTest.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepositoryTest.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepositoryTest.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryCartRepositoryTest.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepositoryTest.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepositoryTest.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepositoryTest.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/inmemory/InMemoryProductRepositoryTest.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepositoryTest.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepositoryTest.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepositoryTest.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaCartRepositoryTest.java diff --git a/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepositoryTest.java b/bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepositoryTest.java similarity index 100% rename from adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepositoryTest.java rename to bootstrap/adapter/src/test/java/eu/happycoders/shop/adapter/out/persistence/jpa/JpaProductRepositoryTest.java diff --git a/pom.xml b/pom.xml index d43685b..06ddd44 100644 --- a/pom.xml +++ b/pom.xml @@ -11,10 +11,10 @@ pom - model - application - adapter bootstrap + bootstrap/adapter + bootstrap/adapter/application + bootstrap/adapter/application/model