fix ControllerTest
This commit is contained in:
@ -37,14 +37,6 @@ public class ControllerTest {
|
|||||||
.that().resideInAPackage("..controller..")
|
.that().resideInAPackage("..controller..")
|
||||||
.should().haveSimpleNameEndingWith("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
|
@ArchTest
|
||||||
public static final ArchRule controllerClassesShouldNotDependOnEachOther = noClasses()
|
public static final ArchRule controllerClassesShouldNotDependOnEachOther = noClasses()
|
||||||
.that().haveSimpleNameEndingWith("Controller")
|
.that().haveSimpleNameEndingWith("Controller")
|
||||||
|
|||||||
Reference in New Issue
Block a user