From 08d933464bd3b1e549176a06fd104b6d5beadda4 Mon Sep 17 00:00:00 2001 From: Nicolas van Bellen Date: Wed, 22 Mar 2023 20:24:13 +0100 Subject: [PATCH 1/3] C5-C7 violations --- ...fComponentADependsOnDataaccessLayerOfComponentTask.java | 7 +++++++ ...fComponentADependsOnDataaccessLayerOfComponentTask.java | 7 +++++++ ...atchLayerOfBatchDependsOnLogicLayerOfComponentTask.java | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 src/main/java/com/devonfw/sample/archunit/componentA/dataaccess/C6ViolationDataaccessLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java create mode 100644 src/main/java/com/devonfw/sample/archunit/componentA/logic/C5ViolationLogicLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java create mode 100644 src/main/java/com/devonfw/sample/batch/task/batchLayer/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java diff --git a/src/main/java/com/devonfw/sample/archunit/componentA/dataaccess/C6ViolationDataaccessLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java b/src/main/java/com/devonfw/sample/archunit/componentA/dataaccess/C6ViolationDataaccessLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java new file mode 100644 index 0000000..2839582 --- /dev/null +++ b/src/main/java/com/devonfw/sample/archunit/componentA/dataaccess/C6ViolationDataaccessLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java @@ -0,0 +1,7 @@ +package com.devonfw.sample.archunit.componentA.dataaccess; + +import com.devonfw.sample.archunit.task.dataaccess.TaskItemEntity; + +public class C6ViolationDataaccessLayerOfComponentADependsOnDataaccessLayerOfComponentTask { + TaskItemEntity taskItemEntity; +} diff --git a/src/main/java/com/devonfw/sample/archunit/componentA/logic/C5ViolationLogicLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java b/src/main/java/com/devonfw/sample/archunit/componentA/logic/C5ViolationLogicLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java new file mode 100644 index 0000000..46327fb --- /dev/null +++ b/src/main/java/com/devonfw/sample/archunit/componentA/logic/C5ViolationLogicLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java @@ -0,0 +1,7 @@ +package com.devonfw.sample.archunit.componentA.logic; + +import com.devonfw.sample.archunit.task.dataaccess.TaskItemEntity; + +public class C5ViolationLogicLayerOfComponentADependsOnDataaccessLayerOfComponentTask { + TaskItemEntity taskItemEntity; +} diff --git a/src/main/java/com/devonfw/sample/batch/task/batchLayer/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java b/src/main/java/com/devonfw/sample/batch/task/batchLayer/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java new file mode 100644 index 0000000..ce149e7 --- /dev/null +++ b/src/main/java/com/devonfw/sample/batch/task/batchLayer/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java @@ -0,0 +1,7 @@ +package com.devonfw.sample.batch.task.batchLayer; + +import com.devonfw.sample.archunit.task.logic.UcDeleteTaskItem; + +public class C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask { + UcDeleteTaskItem ucDeleteTaskItem; +} From 82e8cbaaa1a40868cdcf23c68a2a8742e8397a59 Mon Sep 17 00:00:00 2001 From: Nicolas van Bellen Date: Sun, 26 Mar 2023 10:43:31 +0200 Subject: [PATCH 2/3] fix - restructure of the batch component --- ...atchLayerOfBatchDependsOnLogicLayerOfComponentTask.java | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/main/java/com/devonfw/sample/archunit/componentA/batch/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java diff --git a/src/main/java/com/devonfw/sample/archunit/componentA/batch/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java b/src/main/java/com/devonfw/sample/archunit/componentA/batch/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java new file mode 100644 index 0000000..781921a --- /dev/null +++ b/src/main/java/com/devonfw/sample/archunit/componentA/batch/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java @@ -0,0 +1,7 @@ +package com.devonfw.sample.archunit.componenta.batch; + +import com.devonfw.sample.archunit.task.logic.UcDeleteTaskItem; + +public class C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask { + UcDeleteTaskItem ucDeleteTaskItem; +} From fa5a97fa5c08de389e0bd09e3f4c4e4240c93a8e Mon Sep 17 00:00:00 2001 From: Nicolas van Bellen Date: Sun, 26 Mar 2023 10:44:40 +0200 Subject: [PATCH 3/3] fix - restructure of the batch component --- ...fComponentADependsOnDataaccessLayerOfComponentTask.java | 2 +- ...fComponentADependsOnDataaccessLayerOfComponentTask.java | 2 +- ...atchLayerOfBatchDependsOnLogicLayerOfComponentTask.java | 7 ------- 3 files changed, 2 insertions(+), 9 deletions(-) delete mode 100644 src/main/java/com/devonfw/sample/batch/task/batchLayer/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java diff --git a/src/main/java/com/devonfw/sample/archunit/componentA/dataaccess/C6ViolationDataaccessLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java b/src/main/java/com/devonfw/sample/archunit/componentA/dataaccess/C6ViolationDataaccessLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java index 2839582..adb2e89 100644 --- a/src/main/java/com/devonfw/sample/archunit/componentA/dataaccess/C6ViolationDataaccessLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java +++ b/src/main/java/com/devonfw/sample/archunit/componentA/dataaccess/C6ViolationDataaccessLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java @@ -1,4 +1,4 @@ -package com.devonfw.sample.archunit.componentA.dataaccess; +package com.devonfw.sample.archunit.componenta.dataaccess; import com.devonfw.sample.archunit.task.dataaccess.TaskItemEntity; diff --git a/src/main/java/com/devonfw/sample/archunit/componentA/logic/C5ViolationLogicLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java b/src/main/java/com/devonfw/sample/archunit/componentA/logic/C5ViolationLogicLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java index 46327fb..83a3aaf 100644 --- a/src/main/java/com/devonfw/sample/archunit/componentA/logic/C5ViolationLogicLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java +++ b/src/main/java/com/devonfw/sample/archunit/componentA/logic/C5ViolationLogicLayerOfComponentADependsOnDataaccessLayerOfComponentTask.java @@ -1,4 +1,4 @@ -package com.devonfw.sample.archunit.componentA.logic; +package com.devonfw.sample.archunit.componenta.logic; import com.devonfw.sample.archunit.task.dataaccess.TaskItemEntity; diff --git a/src/main/java/com/devonfw/sample/batch/task/batchLayer/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java b/src/main/java/com/devonfw/sample/batch/task/batchLayer/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java deleted file mode 100644 index ce149e7..0000000 --- a/src/main/java/com/devonfw/sample/batch/task/batchLayer/C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.devonfw.sample.batch.task.batchLayer; - -import com.devonfw.sample.archunit.task.logic.UcDeleteTaskItem; - -public class C7ViolationBatchLayerOfBatchDependsOnLogicLayerOfComponentTask { - UcDeleteTaskItem ucDeleteTaskItem; -}