Skip to content

Commit a972755

Browse files
committed
Make Lombok tests skip on JDK 21
See projectlombok/lombok#3393
1 parent 03c155d commit a972755

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

acceptance-tests/acceptance-tests-lombok/src/test/groovy/io/github/ascopes/jct/acceptancetests/lombok/LombokIntegrationTest.groovy

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ package io.github.ascopes.jct.acceptancetests.lombok
1818
import io.github.ascopes.jct.compilers.JctCompiler
1919
import io.github.ascopes.jct.junit.JavacCompilerTest
2020
import io.github.ascopes.jct.workspaces.Workspaces
21+
import org.junit.jupiter.api.BeforeEach
2122
import org.junit.jupiter.api.DisplayName
23+
import org.junit.jupiter.api.condition.JRE
2224

2325
import static io.github.ascopes.jct.assertions.JctAssertions.assertThatCompilation
26+
import static org.assertj.core.api.Assumptions.assumeThat
2427
import static org.assertj.core.api.SoftAssertions.assertSoftly
2528

2629
/**
@@ -32,9 +35,16 @@ import static org.assertj.core.api.SoftAssertions.assertSoftly
3235
* @author Ashley Scopes
3336
*/
3437
@DisplayName("Lombok Integration test")
35-
@SuppressWarnings('GrUnresolvedAccess')
38+
@SuppressWarnings("GrUnresolvedAccess")
3639
class LombokIntegrationTest {
3740

41+
@BeforeEach
42+
void setUp() {
43+
assumeThat(JRE.currentVersion())
44+
.withFailMessage("Lombok fails under JDK-21: See Lombok GH-3393")
45+
.isLessThanOrEqualTo(JRE.JAVA_20)
46+
}
47+
3848
@DisplayName("Lombok @Data compiles the expected data class")
3949
@JavacCompilerTest
4050
void lombokDataCompilesTheExpectedDataClass(JctCompiler compiler) {

0 commit comments

Comments
 (0)