Emmett Young
Emmett Young
Oh, that's awesome! I thought I need to start with methods() since I was validating the methods; then I encounter the issue of counting the methods in a class (lost...
Let me share you my objective of the test. I have created IQueryHandler functional interface for all QueryHandler instances to implement. I want to make sure that all QueryHandlers will...
Thank you. I faced issues with your code on fetching allowedMethods. I tried revising and sharing what worked: ``` @RunWith(ArchUnitRunner.class) @AnalyzeClasses(packages = "com.mettyoung.application.query", importOptions = { ImportOption.Predefined.DoNotIncludeJars.class, ImportOption.Predefined.DoNotIncludeTests.class }) public...
I encountered this error ``` java.lang.IllegalArgumentException: JavaClasses do not contain JavaClass of type com.bytedance.cg.gcrm.salesplanning.common.cqrs.IQueryHandler at com.tngtech.archunit.thirdparty.com.google.common.base.Preconditions.checkArgument(Preconditions.java:453) ``` 
Hi, I've updated it but it is still throwing the same error. I don't understand why we have to get `Object.class` from `JavaClasses`
Hi @hankem , you were correct. I was importing the wrong package while I was copying pasting the code with censorship. After following your above comment, I'm afraid I still...