From ce34625c82a628d4f60ca95f174f8b89623fd8c0 Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Wed, 27 Nov 2024 08:14:08 +0100 Subject: [PATCH] enabled other tests --- .../IncrementalStandaloneBuilderWithJava21Test.java | 5 +---- .../org/eclipse/xtext/java/tests/JavaSourceLanguageTest.java | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/org.eclipse.xtext.builder.standalone.tests/src/org/eclipse/xtext/builder/standalone/incremental/IncrementalStandaloneBuilderWithJava21Test.java b/org.eclipse.xtext.builder.standalone.tests/src/org/eclipse/xtext/builder/standalone/incremental/IncrementalStandaloneBuilderWithJava21Test.java index aa8ebf794a2..6f146c347d9 100644 --- a/org.eclipse.xtext.builder.standalone.tests/src/org/eclipse/xtext/builder/standalone/incremental/IncrementalStandaloneBuilderWithJava21Test.java +++ b/org.eclipse.xtext.builder.standalone.tests/src/org/eclipse/xtext/builder/standalone/incremental/IncrementalStandaloneBuilderWithJava21Test.java @@ -13,9 +13,7 @@ import java.io.File; -import org.eclipse.xtext.util.JavaRuntimeVersion; import org.eclipse.xtext.util.JavaVersion; -import org.junit.Assume; import org.junit.Before; import org.junit.Test; @@ -36,8 +34,7 @@ public void setUp() { } @Test - public void testCleanBuildAccessingJava21Record() { - Assume.assumeTrue("Active only on Java 21 and later", JavaRuntimeVersion.isJava21OrLater()); + public void testCleanBuildAccessingJavaRecord() { initBuilder(new ContentAssistFragmentTestLangConfiguration()); assertTrue(testBuilder.launch()); diff --git a/org.eclipse.xtext.java.tests/src/org/eclipse/xtext/java/tests/JavaSourceLanguageTest.java b/org.eclipse.xtext.java.tests/src/org/eclipse/xtext/java/tests/JavaSourceLanguageTest.java index 3df5bf1b39e..520f40345f9 100644 --- a/org.eclipse.xtext.java.tests/src/org/eclipse/xtext/java/tests/JavaSourceLanguageTest.java +++ b/org.eclipse.xtext.java.tests/src/org/eclipse/xtext/java/tests/JavaSourceLanguageTest.java @@ -37,12 +37,10 @@ import org.eclipse.xtext.testing.InjectWith; import org.eclipse.xtext.testing.XtextRunner; import org.eclipse.xtext.testing.util.InMemoryURIHandler; -import org.eclipse.xtext.util.JavaRuntimeVersion; import org.eclipse.xtext.util.JavaVersion; import org.eclipse.xtext.xbase.lib.Exceptions; import org.eclipse.xtext.xbase.lib.IterableExtensions; import org.junit.Assert; -import org.junit.Assume; import org.junit.Test; import org.junit.runner.RunWith; @@ -186,8 +184,7 @@ public void testClassShadowing() { } @Test - public void testJava21Record() { - Assume.assumeTrue("Active only on Java 21 and later", JavaRuntimeVersion.isJava21OrLater()); + public void testJavaRecord() { ImmutableMap files = ImmutableMap.builder() .put("example/MyRecord.java", "package example;\n"