Skip to content

Commit

Permalink
allow empty should for one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAnzinger committed Oct 2, 2024
1 parent 8d8c730 commit 0291660
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void allPublicMethodsShouldReturnResponseEntity() {
@Test
void shouldCorrectlyUseRequestMappingAnnotations() {
// allow empty should since some modules do not have any REST controllers
classesOfThisModuleThat().areAnnotatedWith(RequestMapping.class).should(haveCorrectRequestMappingPathForClasses()).check(productionClasses);
classesOfThisModuleThat().areAnnotatedWith(RequestMapping.class).should(haveCorrectRequestMappingPathForClasses()).allowEmptyShould(true).check(productionClasses);
for (var annotation : annotationClasses) {
methods().that().areAnnotatedWith(annotation).should(haveCorrectRequestMappingPathForMethods(annotation)).allowEmptyShould(true).check(productionClasses);
}
Expand Down

0 comments on commit 0291660

Please sign in to comment.