Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue381 - Automated test case implementation - hover support for server.xml Liberty Server Feature #427

Open
wants to merge 27 commits into
base: main
Choose a base branch
from

Conversation

SuparnaSuresh
Copy link
Contributor

Fixes #381
Automated test case implemented for server.xml hover support - Liberty Server Feature

@SuparnaSuresh SuparnaSuresh self-assigned this Dec 9, 2024
editor = await new EditorView().openEditor('server.xml') as TextEditor;

const hverExpectdOutcome = `'wrong' is not a valid value of union type 'booleanType'.`;
const testHverTarget = '<logging appsWriteJson = \"wrong\" />';
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move all the hardcoded strings to a constants file.

await VSBrowser.instance.openResources(path.join(utils.getGradleProjectPath(), 'src', 'main', 'liberty', 'config2', 'server.xml'));

editor = await new EditorView().openEditor('server.xml') as TextEditor;
const stanzaSnipet = "<logging appsWriteJson = \"wrong\" />";
Copy link
Contributor

Choose a reason for hiding this comment

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

Move the duplicate code to testutils.

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.

Tests Liberty Lemminx Extension Hover support in server.xml for a Liberty Server Feature
2 participants