1

adapt tests

Co-authored-by: Christoph <tobi@urpost.de>
This commit is contained in:
Christoph
2020-03-18 21:45:33 +01:00
parent 79de4a8540
commit e1a630ae1a
4 changed files with 6 additions and 36 deletions

View File

@ -2,7 +2,6 @@ package mops.gruppen2.architecture;
import com.tngtech.archunit.core.importer.ImportOption;
import com.tngtech.archunit.junit.AnalyzeClasses;
import com.tngtech.archunit.junit.ArchIgnore;
import com.tngtech.archunit.junit.ArchTest;
import com.tngtech.archunit.lang.ArchRule;
@ -30,11 +29,11 @@ public class DomainTest {
@ArchTest
public static final ArchRule exceptionClassesShouldBeInExceptionPackage = classes()
.that().haveSimpleNameEndingWith("Exception")
.should().resideInAPackage("..domain.Exceptions..");
.should().resideInAPackage("..domain.exception..");
@ArchTest
public static final ArchRule classesInExceptionPackageShouldHaveExceptionInName = classes()
.that().resideInAPackage("..domain.Exceptions..")
.that().resideInAPackage("..domain.exception..")
.should().haveSimpleNameEndingWith("Exception");
@ArchTest