Closed
Description
Looks like similar symptoms as spring-projects/spring-framework#21515 in that only the target/test-classes
path is found when specifying a package that gets translated to a resource path.
Test looks like:
@AnalyzeClasses(packages = "com.mycompany.myapp")
public class ArchitectureConstraintsTest {
@ArchTest
public static final ArchRule controllersAnnotatedProperly = classes().that().haveSimpleNameEndingWith("Controller")
.should().beAnnotatedWith(RestController.class);
@ArchTest
public static final ArchRule controllersAutowired = constructors().that().areDeclaredInClassesThat().haveSimpleNameEndingWith("Controller")
.should().beAnnotatedWith(Autowired.class);
}
Metadata
Metadata
Assignees
Labels
No labels