1

fix ControllerTest

This commit is contained in:
killerber4t
2020-03-12 16:54:42 +01:00
parent 430b52b417
commit d3ba609e6a

View File

@ -37,14 +37,6 @@ public class ControllerTest {
.that().resideInAPackage("..controller..")
.should().haveSimpleNameEndingWith("Controller");
@ArchTest
public static final ArchRule controllerClassesShouldHaveRequestMappingAnnotation = classes()
.that().resideInAPackage("..controller..")
.and().haveSimpleNameEndingWith("Controller")
.and().areAnnotatedWith(Controller.class)
.or().areAnnotatedWith(RestController.class)
.should().beAnnotatedWith(RequestMapping.class);
@ArchTest
public static final ArchRule controllerClassesShouldNotDependOnEachOther = noClasses()
.that().haveSimpleNameEndingWith("Controller")