Skip to content

Commit

Permalink
Disable virtual thread tests until next release train
Browse files Browse the repository at this point in the history
timtebeek committed Dec 8, 2023
1 parent a165c80 commit 8f21587
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -15,18 +15,22 @@
*/
package org.openrewrite.java.spring.boot3;

import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.openrewrite.DocumentExample;
import org.openrewrite.test.RecipeSpec;
import org.openrewrite.test.RewriteTest;

import static org.openrewrite.java.Assertions.javaVersion;
import static org.openrewrite.properties.Assertions.properties;
import static org.openrewrite.yaml.Assertions.yaml;

@Disabled
class EnableVirtualThreadsTest implements RewriteTest {
@Override
public void defaults(RecipeSpec spec) {
spec.recipeFromResources("org.openrewrite.java.spring.boot3.EnableVirtualThreads");
spec.recipeFromResources("org.openrewrite.java.spring.boot3.EnableVirtualThreads")
.allSources(source -> source.markers(javaVersion(21)));
}

@Test
@@ -53,7 +57,9 @@ void enableVirtualThreadsYaml() {
"",
"""
spring:
threads.virtual.enabled: true
threads:
virtual:
enabled: true
""",
s -> s.path("src/main/resources/application.yml")
)
@@ -74,7 +80,9 @@ void dontEnableVirtualThreadsIfDisabled() {
yaml(
"""
spring:
threads.virtual.enabled: false
threads:
virtual:
enabled: true
""",
s -> s.path("src/main/resources/application.yml")
)

0 comments on commit 8f21587

Please sign in to comment.