Created
October 12, 2020 15:57
-
-
Save BenjaminKlatt/a6abbc575e9f8413e6285d3dc06bb31b to your computer and use it in GitHub Desktop.
ArchUnit Naming Conventions Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ArchTest | |
private static ArchRule controllers_should_be_suffixed = | |
classes() | |
.that().areAnnotatedWith(RestController.class) | |
.should().haveSimpleNameEndingWith("Controller") | |
.and().resideInAPackage("..controller..") | |
.because("Erkennbarkeit Controller Hauptklasse"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment