@@ -611,7 +611,7 @@ <h3 id="_junit_4"><a class="anchor" href="#_junit_4"></a>2.1. JUnit 4</h3>
611611< pre class ="highlightjs highlight nowrap "> < code class ="language-xml hljs " data-lang ="xml "> <dependency>
612612 <groupId>com.tngtech.archunit</groupId>
613613 <artifactId>archunit-junit4</artifactId>
614- <version>0.12 .0</version>
614+ <version>0.13 .0</version>
615615 <scope>test</scope>
616616</dependency></ code > </ pre >
617617</ div >
@@ -620,7 +620,7 @@ <h3 id="_junit_4"><a class="anchor" href="#_junit_4"></a>2.1. JUnit 4</h3>
620620< div class ="title "> build.gradle</ div >
621621< div class ="content ">
622622< pre class ="highlightjs highlight nowrap "> < code > dependencies {
623- testCompile 'com.tngtech.archunit:archunit-junit4:0.12 .0'
623+ testCompile 'com.tngtech.archunit:archunit-junit4:0.13 .0'
624624}</ code > </ pre >
625625</ div >
626626</ div >
@@ -651,14 +651,8 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
651651 ...
652652 <dependency>
653653 <groupId>com.tngtech.archunit</groupId>
654- <artifactId>archunit-junit5-api</artifactId>
655- <version>0.12.0</version>
656- <scope>test</scope>
657- </dependency>
658- <dependency>
659- <groupId>com.tngtech.archunit</groupId>
660- <artifactId>archunit-junit5-engine</artifactId>
661- <version>0.12.0</version>
654+ <artifactId>archunit-junit5</artifactId>
655+ <version>0.13.0</version>
662656 <scope>test</scope>
663657 </dependency>
664658</dependencies>
@@ -687,8 +681,7 @@ <h3 id="_junit_5"><a class="anchor" href="#_junit_5"></a>2.2. JUnit 5</h3>
687681< div class ="content ">
688682< pre class ="highlightjs highlight nowrap "> < code > dependencies {
689683 ...
690- testCompile 'com.tngtech.archunit:archunit-junit5-api:0.12.0'
691- testRuntime 'com.tngtech.archunit:archunit-junit5-engine:0.12.0'
684+ testCompile 'com.tngtech.archunit:archunit-junit5:0.13.0'
692685}</ code > </ pre >
693686</ div >
694687</ div >
@@ -705,7 +698,7 @@ <h3 id="_other_test_frameworks"><a class="anchor" href="#_other_test_frameworks"
705698< pre class ="highlightjs highlight nowrap "> < code class ="language-xml hljs " data-lang ="xml "> <dependency>
706699 <groupId>com.tngtech.archunit</groupId>
707700 <artifactId>archunit</artifactId>
708- <version>0.12 .0</version>
701+ <version>0.13 .0</version>
709702 <scope>test</scope>
710703</dependency></ code > </ pre >
711704</ div >
@@ -714,7 +707,7 @@ <h3 id="_other_test_frameworks"><a class="anchor" href="#_other_test_frameworks"
714707< div class ="title "> build.gradle</ div >
715708< div class ="content ">
716709< pre class ="highlightjs highlight nowrap "> < code > dependencies {
717- testCompile 'com.tngtech.archunit:archunit:0.12 .0'
710+ testCompile 'com.tngtech.archunit:archunit:0.13 .0'
718711}</ code > </ pre >
719712</ div >
720713</ div >
@@ -1322,7 +1315,7 @@ <h4 id="_domain_objects_reflection_and_the_classpath"><a class="anchor" href="#_
13221315</ div >
13231316< div class ="listingblock ">
13241317< div class ="content ">
1325- < pre class ="highlightjs highlight nowrap "> < code class ="language-java hljs " data-lang ="java "> JavaAnnotation< ? > annotation = javaClass.getAnnotationOfType("some.pkg.CustomAnnotation");
1318+ < pre class ="highlightjs highlight nowrap "> < code class ="language-java hljs " data-lang ="java "> JavaAnnotation<?> annotation = javaClass.getAnnotationOfType("some.pkg.CustomAnnotation");
13261319// result is untyped, since it might not be on the classpath (e.g. enums)
13271320Object value = annotation.get("value");</ code > </ pre >
13281321</ div >
@@ -2141,7 +2134,8 @@ <h5 id="_violation_store"><a class="anchor" href="#_violation_store"></a>Violati
21412134< h5 id ="_violation_line_matcher "> < a class ="anchor " href ="#_violation_line_matcher "> </ a > Violation Line Matcher</ h5 >
21422135< div class ="paragraph ">
21432136< p > The < code > ViolationLineMatcher</ code > compares lines from occurred violations with lines from the store.
2144- The default implementation ignores line numbers and counts lines as equivalent when all other details match.
2137+ The default implementation ignores line numbers and numbers of anonymous classes or lambda expressions,
2138+ and counts lines as equivalent when all other details match.
21452139A custom < code > ViolationLineMatcher</ code > can again either be defined programmatically:</ p >
21462140</ div >
21472141< div class ="listingblock ">
@@ -2511,4 +2505,4 @@ <h3 id="_md5_sums_of_classes"><a class="anchor" href="#_md5_sums_of_classes"></a
25112505< script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js "> </ script >
25122506< script > hljs . initHighlighting ( ) </ script >
25132507</ body >
2514- </ html >
2508+ </ html >
0 commit comments