I want to write a JUnit Test Case using ArchUnit to check if there is usage of reflection in the source that is written by the developer and fail the test case if so. How can I achieve this using ArchUnit? I am using a Kotlin based Application in Spring Boot.
I checked ArchUnit's documentation and can't seem to find a way to do this unfortunately. I am doubting if this is even possible.
Maybe check if there is a usage of
java.lang.reflect