Skip to content

Commit 66625e6

Browse files
authored
Simplify fail in assertCheckstyleRules (#4003)
1 parent 4a75490 commit 66625e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

processor/src/test/java/org/mapstruct/ap/testutil/runner/CompilingExtension.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
import org.xml.sax.InputSource;
5656

5757
import static org.assertj.core.api.Assertions.assertThat;
58+
import static org.assertj.core.api.Assertions.fail;
5859
import static org.junit.platform.commons.support.AnnotationSupport.findAnnotation;
5960
import static org.junit.platform.commons.support.AnnotationSupport.findRepeatableAnnotations;
6061

@@ -237,8 +238,7 @@ private void assertCheckstyleRules() throws Exception {
237238
int errors = checker.process( findGeneratedFiles( new File( sourceOutputDir ) ) );
238239
if ( errors > 0 ) {
239240
String errorLog = errorStream.toString( "UTF-8" );
240-
assertThat( true ).describedAs( "Expected checkstyle compliant output, but got errors:\n" + errorLog )
241-
.isEqualTo( false );
241+
fail( "Expected checkstyle compliant output, but got errors:\n" + errorLog );
242242
}
243243
}
244244
}

0 commit comments

Comments
 (0)