Skip to content

Commit

Permalink
Make Lombok tests skip on JDK 21
Browse files Browse the repository at this point in the history
  • Loading branch information
ascopes committed May 6, 2023
1 parent 03c155d commit a972755
Showing 1 changed file with 11 additions and 1 deletion.
Expand Up @@ -18,9 +18,12 @@ package io.github.ascopes.jct.acceptancetests.lombok
import io.github.ascopes.jct.compilers.JctCompiler
import io.github.ascopes.jct.junit.JavacCompilerTest
import io.github.ascopes.jct.workspaces.Workspaces
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.condition.JRE

import static io.github.ascopes.jct.assertions.JctAssertions.assertThatCompilation
import static org.assertj.core.api.Assumptions.assumeThat
import static org.assertj.core.api.SoftAssertions.assertSoftly

/**
Expand All @@ -32,9 +35,16 @@ import static org.assertj.core.api.SoftAssertions.assertSoftly
* @author Ashley Scopes
*/
@DisplayName("Lombok Integration test")
@SuppressWarnings('GrUnresolvedAccess')
@SuppressWarnings("GrUnresolvedAccess")
class LombokIntegrationTest {

@BeforeEach
void setUp() {
assumeThat(JRE.currentVersion())
.withFailMessage("Lombok fails under JDK-21: See Lombok GH-3393")
.isLessThanOrEqualTo(JRE.JAVA_20)
}

@DisplayName("Lombok @Data compiles the expected data class")
@JavacCompilerTest
void lombokDataCompilesTheExpectedDataClass(JctCompiler compiler) {
Expand Down

0 comments on commit a972755

Please sign in to comment.