Skip to content

Commit

Permalink
Add custom rule usage to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mnhock committed Jun 9, 2024
1 parent cb8b034 commit 3c7c4f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The `${taikai.version}` property should be defined as a property in your Maven p
JUnit 5 Example test
-------------------

```java
```
@Test
void shouldFulfilConstrains() {
Taikai.builder()
Expand Down Expand Up @@ -62,6 +62,7 @@ void shouldFulfilConstrains() {
.naming(naming -> naming
.classesShouldNotMatch(".*Impl")
.interfacesShouldNotHavePrefixI()))
.addRule(TaikaiRule.of(...)) //add custom ArchUnit here
.build()
.check();
}
Expand Down

0 comments on commit 3c7c4f2

Please sign in to comment.