diff --git a/roster/pom.xml b/roster/pom.xml
index 8514b7b..1901982 100644
--- a/roster/pom.xml
+++ b/roster/pom.xml
@@ -83,6 +83,12 @@
org.springframework.boot
spring-boot-starter-data-mongodb
+
+ com.tngtech.archunit
+ archunit-junit4
+ 0.22.0
+ test
+
diff --git a/roster/src/test/java/ch/unisg/roster/DependencyRuleTests.java b/roster/src/test/java/ch/unisg/roster/DependencyRuleTests.java
new file mode 100644
index 0000000..fd64ed5
--- /dev/null
+++ b/roster/src/test/java/ch/unisg/roster/DependencyRuleTests.java
@@ -0,0 +1,20 @@
+package ch.unisg.roster;
+
+import com.tngtech.archunit.core.importer.ClassFileImporter;
+import org.junit.jupiter.api.Test;
+
+import static com.tngtech.archunit.lang.syntax.ArchRuleDefinition.noClasses;
+
+public class DependencyRuleTests {
+ @Test
+ void testPackageDependencies() {
+ noClasses()
+ .that()
+ .resideInAPackage("ch.unisg.roster.roster.domain..")
+ .should()
+ .dependOnClassesThat()
+ .resideInAnyPackage("ch.unisg.roster.roster.application..")
+ .check(new ClassFileImporter()
+ .importPackages("ch.unisg.roster.roster.."));
+ }
+}
diff --git a/roster/src/test/java/ch/unisg/roster/RosterApplicationTests.java b/roster/src/test/java/ch/unisg/roster/RosterApplicationTests.java
deleted file mode 100644
index 5ee712b..0000000
--- a/roster/src/test/java/ch/unisg/roster/RosterApplicationTests.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package ch.unisg.roster;
-
-import org.junit.jupiter.api.Test;
-import org.springframework.boot.test.context.SpringBootTest;
-
-@SpringBootTest
-class RosterApplicationTests {
-
- @Test
- void contextLoads() {
- }
-
-}
diff --git a/tapas-tasks/src/test/java/ch/unisg/tapastasks/TapasTasksApplicationTests.java b/tapas-tasks/src/test/java/ch/unisg/tapastasks/TapasTasksApplicationTests.java
deleted file mode 100644
index a343151..0000000
--- a/tapas-tasks/src/test/java/ch/unisg/tapastasks/TapasTasksApplicationTests.java
+++ /dev/null
@@ -1,18 +0,0 @@
-package ch.unisg.tapastasks;
-
-import ch.unisg.tapastasks.tasks.application.port.out.AddTaskPort;
-import ch.unisg.tapastasks.tasks.application.port.out.NewTaskAddedEventPort;
-import ch.unisg.tapastasks.tasks.application.port.out.TaskListLock;
-import ch.unisg.tapastasks.tasks.application.service.AddNewTaskToTaskListService;
-import org.junit.jupiter.api.Test;
-import org.springframework.boot.test.context.SpringBootTest;
-
-@SpringBootTest
-class TapasTasksApplicationTests {
-
- @Test
- void contextLoads() {
-
- }
-
-}