ArchUnit
ArchUnit copied to clipboard
A Java architecture test library, to specify and assert architecture rules in plain Java
Java 15 will bring us [JEP 360](https://openjdk.java.net/jeps/360) (preview feature) which introduces sealed classes and permitted subclasses. Currently, we are using ASM 8.0.1 which already contains _experimental_ support for permitted subtypes....
As I can see, parameter annotations are accessible now (273ba744abfa57e8a42fe37c6fd37fc540c398c2). Can we retrieve parameter name in case if it's stored in bytecode?
Hi, Say we have a Kotlin class with a property ``` var someProp: String = "" private set var otherProp: String = "" private set ``` Unless I missed something,...
I'd like to cut slices in the following package structure: - application - a - http - grpc - b - kafka - sns - domain - api - a...
Hi I need to write test checking if all fields in the class have getter and setters for them + only default constructors. Is it possible with predefined checks or...
I would like to import the classes using a http url which references a jar file: ``` final JavaClasses javaClasses = new ClassFileImporter().importUrl( new URL("jar:https://repo1.maven.org/maven2/org/jmolecules/integrations/jmolecules-spring-data-jpa/0.3.0/jmolecules-spring-data-jpa-0.3.0.jar!/") ); ``` Unfortunately the `com.tngtech.archunit.core.importer.NormalizedUri`...
Hello there, I just came across `FreezingArchRule`, it's AWESOME! One thing that's been tough with ArchUnit is that either a codebase is perfect or it's in complete violation. Codebases with...
LayerDependencySpecification should have a 'mayNotAccessLayers' to prohibit specific access to other layers
I would like to ensure that methods of certain classes are annotated with a certain annotation. The annotation has not to be placed at the implementation class' metho ditself, but...
Sample issues: https://github.com/google/guava/issues/1977 , https://github.com/apache/calcite/pull/2255 It would be nice if there was a documented sample that configures ArchUnit to detect cycles among class initializers.