fix ControllerTest
This commit is contained in:
@ -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")
|
||||
|
||||
Reference in New Issue
Block a user