Skip to content

Commit

Permalink
enabled other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Nov 28, 2024
1 parent ba5287f commit ce34625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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<String, String> files = ImmutableMap.<String, String>builder()
.put("example/MyRecord.java",
"package example;\n"
Expand Down

0 comments on commit ce34625

Please sign in to comment.