From 4dceba183b2ba915226c6c6ee00cd4a3dbed7001 Mon Sep 17 00:00:00 2001 From: Ralf Ueberfuhr Date: Tue, 19 Dec 2023 11:56:22 +0100 Subject: [PATCH] refactor - introduce onion architecture --- .../schulung/spring/blog/{ => boundary}/BlogPostController.java | 2 +- .../sample/schulung/spring/blog/{ => boundary}/BlogPostDto.java | 2 +- .../schulung/spring/blog/{ => boundary}/BlogPostApiTests.java | 2 +- .../blog/{ => boundary}/BlogPostControllerIntegrationTests.java | 2 +- .../spring/blog/{ => boundary}/BlogPostControllerTests.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename src/main/java/de/sample/schulung/spring/blog/{ => boundary}/BlogPostController.java (96%) rename src/main/java/de/sample/schulung/spring/blog/{ => boundary}/BlogPostDto.java (88%) rename src/test/java/de/sample/schulung/spring/blog/{ => boundary}/BlogPostApiTests.java (98%) rename src/test/java/de/sample/schulung/spring/blog/{ => boundary}/BlogPostControllerIntegrationTests.java (94%) rename src/test/java/de/sample/schulung/spring/blog/{ => boundary}/BlogPostControllerTests.java (93%) diff --git a/src/main/java/de/sample/schulung/spring/blog/BlogPostController.java b/src/main/java/de/sample/schulung/spring/blog/boundary/BlogPostController.java similarity index 96% rename from src/main/java/de/sample/schulung/spring/blog/BlogPostController.java rename to src/main/java/de/sample/schulung/spring/blog/boundary/BlogPostController.java index c07f3aa..a38ee76 100644 --- a/src/main/java/de/sample/schulung/spring/blog/BlogPostController.java +++ b/src/main/java/de/sample/schulung/spring/blog/boundary/BlogPostController.java @@ -1,4 +1,4 @@ -package de.sample.schulung.spring.blog; +package de.sample.schulung.spring.blog.boundary; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; diff --git a/src/main/java/de/sample/schulung/spring/blog/BlogPostDto.java b/src/main/java/de/sample/schulung/spring/blog/boundary/BlogPostDto.java similarity index 88% rename from src/main/java/de/sample/schulung/spring/blog/BlogPostDto.java rename to src/main/java/de/sample/schulung/spring/blog/boundary/BlogPostDto.java index 1ddb854..bd3f372 100644 --- a/src/main/java/de/sample/schulung/spring/blog/BlogPostDto.java +++ b/src/main/java/de/sample/schulung/spring/blog/boundary/BlogPostDto.java @@ -1,4 +1,4 @@ -package de.sample.schulung.spring.blog; +package de.sample.schulung.spring.blog.boundary; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; diff --git a/src/test/java/de/sample/schulung/spring/blog/BlogPostApiTests.java b/src/test/java/de/sample/schulung/spring/blog/boundary/BlogPostApiTests.java similarity index 98% rename from src/test/java/de/sample/schulung/spring/blog/BlogPostApiTests.java rename to src/test/java/de/sample/schulung/spring/blog/boundary/BlogPostApiTests.java index f1a4434..a6f2a1b 100644 --- a/src/test/java/de/sample/schulung/spring/blog/BlogPostApiTests.java +++ b/src/test/java/de/sample/schulung/spring/blog/boundary/BlogPostApiTests.java @@ -1,4 +1,4 @@ -package de.sample.schulung.spring.blog; +package de.sample.schulung.spring.blog.boundary; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/test/java/de/sample/schulung/spring/blog/BlogPostControllerIntegrationTests.java b/src/test/java/de/sample/schulung/spring/blog/boundary/BlogPostControllerIntegrationTests.java similarity index 94% rename from src/test/java/de/sample/schulung/spring/blog/BlogPostControllerIntegrationTests.java rename to src/test/java/de/sample/schulung/spring/blog/boundary/BlogPostControllerIntegrationTests.java index 8f4356a..eed06f4 100644 --- a/src/test/java/de/sample/schulung/spring/blog/BlogPostControllerIntegrationTests.java +++ b/src/test/java/de/sample/schulung/spring/blog/boundary/BlogPostControllerIntegrationTests.java @@ -1,4 +1,4 @@ -package de.sample.schulung.spring.blog; +package de.sample.schulung.spring.blog.boundary; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/test/java/de/sample/schulung/spring/blog/BlogPostControllerTests.java b/src/test/java/de/sample/schulung/spring/blog/boundary/BlogPostControllerTests.java similarity index 93% rename from src/test/java/de/sample/schulung/spring/blog/BlogPostControllerTests.java rename to src/test/java/de/sample/schulung/spring/blog/boundary/BlogPostControllerTests.java index 0c2a707..00ec72a 100644 --- a/src/test/java/de/sample/schulung/spring/blog/BlogPostControllerTests.java +++ b/src/test/java/de/sample/schulung/spring/blog/boundary/BlogPostControllerTests.java @@ -1,4 +1,4 @@ -package de.sample.schulung.spring.blog; +package de.sample.schulung.spring.blog.boundary; import org.junit.jupiter.api.Test; import org.springframework.http.HttpStatus;