Skip to content

hascode/archunit-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

ArchUnit Tutorial

Examples using ArchUnit for validating architectural constraints.

src ├── main │ ├── java │ │ └── com │ │ └── hascode │ │ └── tutorial │ │ ├── comp1 │ │ │ └── SomeComponent.java │ │ └── comp2 │ │ └── OtherComponent.java │ └── resources └── test └── java ├── architecture │ ├── CyclicDependenciesExampleTest.java │ ├── IgnoringATest.java │ ├── NoDeprecatedClassesExampleTest.java │ ├── NoFooMethodConditionExampleTest.java │ ├── PackageAccessExampleTest.java │ └── PredefinedRulesExampleTest.java └── com └── hascode └── tutorial ├── condition │ └── NoFooMethodCondition.java └── predicate └── Component1PackagePredicate.java

Running the Tests

Simply run the tests using Maven, they should all be failing to prove that the given architecture does not match the defined rules:

mvn test

2017 Micha Kops / hasCode.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages