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

#1012 - Resolve Sonar report: missing assertions in several AppTest c… #1784

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

samuelpsouza
Copy link
Contributor

Resolve part of issue #1012
Some blocking issues found in the Sonar report are related to the lack of assertions in AppTest classes. The changes provide those assertions. Also, a few methods were renamed to a more precise name.

@sonarcloud
Copy link

sonarcloud bot commented Jun 7, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ohbus ohbus self-assigned this Jun 7, 2021
@Test
void shouldExecuteApplicationWithoutException() {
App.main(new String[]{});
LOGGER.info("Executed successfully without exception.");
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reasons for removing logging? Was it showing any issues on sonar?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The purpose of the logging was to assert that the code executed without errors. Since there is an aproprieted assertion for that, there is no need for this logging.

@ohbus ohbus mentioned this pull request Jun 7, 2021
@ohbus ohbus added this to the 1.25.0 milestone Jun 7, 2021
@ohbus ohbus merged commit 43e7ca5 into iluwatar:master Jun 7, 2021
@ohbus
Copy link
Contributor

ohbus commented Jun 7, 2021

@all-contributors please add @samuelpsouza for code

@allcontributors
Copy link
Contributor

@ohbus

I've put up a pull request to add @samuelpsouza! 🎉

RobbiNespu pushed a commit to RobbiNespu/java-design-patterns that referenced this pull request Mar 1, 2022
… several AppTest classes (iluwatar#1784)

Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants