Skip to content

Automated testcase LTE features - #638

Open
SuparnaSuresh wants to merge 12 commits into
OpenLiberty:dev-oldfrom
SuparnaSuresh:automatedTestcaseJakarta
Open

Automated testcase LTE features#638
SuparnaSuresh wants to merge 12 commits into
OpenLiberty:dev-oldfrom
SuparnaSuresh:automatedTestcaseJakarta

Conversation

@SuparnaSuresh

@SuparnaSuresh SuparnaSuresh commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Fixes #653 - Test cases added for the Jakarta Microprofile features.

@awisniew90 awisniew90 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test coverage looks good. Had a couple of changes.

@@ -0,0 +1,188 @@
package io.openliberty.tools.eclipse.test.it.utils;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should remove this class and instead have each of the constants just be a part of the respective test classes. e.g. all MP constants should be part of the LibertyPluginSWTBotMicroProfileTest class.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed review comment- kept constants as part of the respective test classes. Thanks

* Method to open file for the test cases
*
*/
public static SWTBotEclipseEditor openFileForTest(SWTWorkbenchBot bot) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would be good to make this method generic with 3 properties: appName, packageName, fileName.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed. Thanks

//Open Project Explorer
bot.viewByTitle("Project Explorer").show();

SWTBotTreeItem javaFile = bot.tree().expandNode("liberty.maven.test.app (in liberty-maven-test-app)").expandNode("src").expandNode("main").expandNode("java").expandNode("test").expandNode("maven").expandNode("liberty").expandNode("web").expandNode("app").getNode("FieldConstraintValidation.java");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should use the SWTBotPluginOperations.openFileForTest method

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed. Thanks

// Open Project Explorer
bot.viewByTitle("Project Explorer").show();

SWTBotTreeItem javaFile = bot.tree().expandNode("liberty.maven.test.app (in liberty-maven-test-app)").expandNode("src").expandNode("main").expandNode("java").expandNode("test").expandNode("maven").expandNode("liberty").expandNode("web").expandNode("app").getNode("FieldConstraintValidation.java");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same as other call - we can use the new method you added to SWTBotPluginOperations

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I didnt flag each place in the other files, but where you are opening files, you should call your new helper method instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed. Thanks

* Verify the class level snippets are available for Microprofile
*
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few places had an extra line here between the method comment header and the code.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed. Thanks

@SuparnaSuresh
SuparnaSuresh changed the base branch from main to dev July 14, 2026 05:34
@SuparnaSuresh SuparnaSuresh changed the title Automated testcase Jakarta Automated testcase LTE features Jul 14, 2026
@mezarin
mezarin force-pushed the dev branch 3 times, most recently from 6786b40 to 86bed55 Compare July 24, 2026 02:49
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.

Write automated test cases for LSP4Jakarta, LSP4mp

2 participants