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

Issue #11446: Update EmptyLineSeparatorCheckTest to use verifyWithInlineConfigParser #11472

Closed
wants to merge 1 commit into from
Closed

Issue #11446: Update EmptyLineSeparatorCheckTest to use verifyWithInlineConfigParser #11472

wants to merge 1 commit into from

Conversation

Rahulkhinchi03
Copy link
Contributor

Resolves update for EmptyLineSeparatorCheckTest in #11446.

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

Items:

getPath("InputEmptyLineSeparatorJavadocCommentAfterPackage.java"),
expected);
execute(checkConfig,
getPath("InputEmptyLineSeparatorJavadocCommentAfterPackage.java"));
Copy link
Member

Choose a reason for hiding this comment

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

Remove "expected" variable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changes done

Copy link
Member

Choose a reason for hiding this comment

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

You need to convert to new method only places where we expect exception.

All other should be converted to method that use inlined config in Input files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe that we should not use execute here as I am getting PMD error and If I am using veriftWithInlineConfigParser and changing the config in input files then all tests are passing.

But after changing the input files, I am getting a code coverage issues.

Copy link
Member

Choose a reason for hiding this comment

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

update test to not use "verify" and use verifyWithInlineConfigParser

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.

None yet

2 participants