This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch 261.x in repository https://gitbox.apache.org/repos/asf/struts-intellij-plugin.git
commit c8903f237c59f4fe5f3dc8768cb177f199fa1b77 Author: Lukasz Lenart <[email protected]> AuthorDate: Sat Mar 28 14:15:09 2026 +0100 fix: resolve test compilation for IntelliJ 2026.1 - Add TestFrameworkType.Plugin.Java for Java test framework classes - Add jetCheck dependency from JitPack for property-based tests - Replace deprecated CompletionType.CLASS_NAME in test Co-Authored-By: Claude Opus 4.6 <[email protected]> --- build.gradle.kts | 3 +++ .../lang/ognl/completion/OgnlFqnTypeExpressionCompletionTest.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 25cac3d..d447cd3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -35,6 +35,7 @@ tasks.withType<JavaCompile> { // Configure project's dependencies repositories { mavenCentral() + maven("https://jitpack.io") // IntelliJ Platform Gradle Plugin Repositories Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html intellijPlatform { @@ -66,11 +67,13 @@ dependencies { zipSigner() testFramework(TestFrameworkType.Platform) + testFramework(TestFrameworkType.Plugin.Java) testFramework(TestFrameworkType.JUnit5) testFramework(TestFrameworkType.Bundled) } testImplementation("junit:junit:4.13.2") testImplementation("org.opentest4j:opentest4j:1.3.0") + testImplementation("com.github.jetbrains:jetCheck:master-SNAPSHOT") } java.sourceSets["main"].java { diff --git a/src/test/java/com/intellij/lang/ognl/completion/OgnlFqnTypeExpressionCompletionTest.java b/src/test/java/com/intellij/lang/ognl/completion/OgnlFqnTypeExpressionCompletionTest.java index 6877b24..446a1c2 100644 --- a/src/test/java/com/intellij/lang/ognl/completion/OgnlFqnTypeExpressionCompletionTest.java +++ b/src/test/java/com/intellij/lang/ognl/completion/OgnlFqnTypeExpressionCompletionTest.java @@ -60,7 +60,7 @@ public class OgnlFqnTypeExpressionCompletionTest extends BasicLightHighlightingT myFixture.configureByText(OgnlFileType.INSTANCE, OgnlTestUtils.createExpression("new C<caret>o")); - myFixture.complete(CompletionType.CLASS_NAME); + myFixture.complete(CompletionType.BASIC); final List<String> lookupStrings = myFixture.getLookupElementStrings(); assertNotNull("Completion should return non-null results", lookupStrings); assertContainsElements(lookupStrings,
