Skip to content

Add LSP4Jakarta diagnostic + quick fix tests for Maven and Gradle (#125)#599

Merged
sharma1208 merged 2 commits into
OpenLiberty:mainfrom
sharma1208:venya-issue-125
Jun 18, 2026
Merged

Add LSP4Jakarta diagnostic + quick fix tests for Maven and Gradle (#125)#599
sharma1208 merged 2 commits into
OpenLiberty:mainfrom
sharma1208:venya-issue-125

Conversation

@sharma1208

@sharma1208 sharma1208 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #125

  1. Added MavenTestLSPRestSnippetAndDiagnostic.ts and the Gradle equivalent to test the rest_class snippet, the "Only public methods can be exposed as resource methods" diagnostic, and the "Make method public" quick fix.

  2. Added empty TestRest.java fixtures for both projects (the tests fill and reset them each run).

  3. Added a JAX-RS dependency to the Maven pom so the rest_class snippet populates.

  4. Added the init-project setup to the existing test files so they can be run individually.

…enLiberty#125)

1. Added MavenTestLSPRestSnippetAndDiagnostic.ts and the Gradle equivalent to test the rest_class snippet, the "Only public methods can be exposed as resource methods" diagnostic, and the "Make method public" quick fix.

2. Added empty TestRest.java fixtures for both projects (the tests fill and reset them each run).

3. Added a JAX-RS dependency to the Maven pom so the rest_class snippet populates.

4. Added the init-project setup to the existing test files so they can be run individually.
@sharma1208 sharma1208 requested a review from mattbsox June 17, 2026 15:48

@mattbsox mattbsox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test cases look good. Just a few comments about the init steps and some issues in the test logs.

Comment thread src/test/GradleTestDevModeActions.ts Outdated
Comment thread src/test/GradleTestLSPRestSnippetAndDiagnostic.ts
Comment thread src/test/GradleTestLSPRestSnippetAndDiagnostic.ts Outdated
Comment thread src/test/GradleTestLSPRestSnippetAndDiagnostic.ts Outdated

@mattbsox mattbsox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@sharma1208 sharma1208 merged commit 57445a9 into OpenLiberty:main Jun 18, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automated integration testing for LSP4Jakarta client capabilities

3 participants