Skip to content

Commit

Permalink
Update lombok initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsdebruin committed Dec 31, 2024
1 parent 8b7f3bf commit c963465
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/
package org.openrewrite.java.logging;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.openrewrite.DocumentExample;
import org.openrewrite.InMemoryExecutionContext;
Expand All @@ -34,10 +36,20 @@
})
class ParameterizedLoggingTest implements RewriteTest {

@BeforeAll
static void setUp() {
System.setProperty("rewrite.lombok", "true");
}

@AfterAll
static void tearDown() {
System.clearProperty("rewrite.lombok");
}

@Override
public void defaults(RecipeSpec spec) {
spec.parser(JavaParser.fromJavaVersion()
.classpathFromResources(new InMemoryExecutionContext(), "slf4j-api-2.1", "log4j-api-2.23", "log4j-core-2.23", "lombok-1.18"));
.classpathFromResources(new InMemoryExecutionContext(), "slf4j-api-2.1", "log4j-api-2.23", "log4j-core-2.23", "lombok"));
}

@DocumentExample
Expand Down

0 comments on commit c963465

Please sign in to comment.