Architecture tests for roster
This commit is contained in:
@@ -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.."));
|
||||
}
|
||||
}
|
@@ -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() {
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user