Skip to content

Updated update-method module to JUnit 5 #1542

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

Merged
merged 11 commits into from
Mar 4, 2021
Merged

Updated update-method module to JUnit 5 #1542

merged 11 commits into from
Mar 4, 2021

Conversation

charlesfinley
Copy link
Contributor

Updated update-method module to JUnit 5

For detailed contributing instructions see https://github.com/iluwatar/java-design-patterns/wiki/01.-How-to-contribute

@ohbus
Copy link
Contributor

ohbus commented Oct 2, 2020

@charlesfinley This looks like a duplicate of #1541
Please clarify this and submit a single Pull Request.

@charlesfinley
Copy link
Contributor Author

@charlesfinley This looks like a duplicate of #1541
Please clarify this and submit a single Pull Request.

This PR includes the changes from 1541 and adds more. #1541 can be closed in favor of this PR if necessary.

Copy link
Contributor

@ohbus ohbus left a comment

Choose a reason for hiding this comment

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

Please try to provide a detailed documentation in the comment section of this Pull Request of all the changes you have made to that It becomes easier for other reviewers.

Overall a Good Pull Request.
Thanks.

Wait for @iluwatar to make the final commit.

@iluwatar
Copy link
Owner

iluwatar commented Nov 7, 2020

@charlesfinley thanks for the pull request! The JUnit 5 related changes look ok, but see my comment about the change to Trampoline pattern.

@ohbus ohbus added the status: stale issues and pull requests that have not had recent interaction label Dec 4, 2020
@ohbus ohbus removed the status: stale issues and pull requests that have not had recent interaction label Mar 3, 2021
Copy link
Contributor

@ohbus ohbus left a comment

Choose a reason for hiding this comment

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

LGTM

Thank you so much @charlesfinley for this contribution.

Can please you look at the static issues reported by sonarbot and kindly make the updates to fix it.

@charlesfinley
Copy link
Contributor Author

LGTM

Thank you so much @charlesfinley for this contribution.

Can please you look at the static issues reported by sonarbot and kindly make the updates to fix it.

I can't seem to find the sonarbot issues - can you link me? I'm seeing all 3 checks passing.

@ohbus
Copy link
Contributor

ohbus commented Mar 3, 2021

The 28 code smells that seems to be reported by the sonarbot comment.

Here they are https://sonarcloud.io/project/issues?id=iluwatar_java-design-patterns&pullRequest=1542&resolved=false&types=CODE_SMELL

@charlesfinley
Copy link
Contributor Author

charlesfinley commented Mar 3, 2021

The 28 code smells that seems to be reported by the sonarbot comment.

Here they are https://sonarcloud.io/project/issues?id=iluwatar_java-design-patterns&pullRequest=1542&resolved=false&types=CODE_SMELL

Looks like all of these pre-date my changes. I'll clean them up and push up a commit shortly.

Edit - looks like the Tests updated to use JUnit 5 no longer require access modifiers. :)

@charlesfinley
Copy link
Contributor Author

@ohbus Code smells resolved.

Copy link
Contributor

@ohbus ohbus left a comment

Choose a reason for hiding this comment

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

These are the final set of changes that would make this PR great!

Please look into this and we can merge this after!

Thank you so much for your changes @charlesfinley

@Test
public void shouldExecuteWithoutException() {
void shouldExecuteWithoutException() {
assertDoesNotThrow(() -> SagaApplication.main(new String[]{}));
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add an extra line here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You want an empty line after the method declaration and before the assertion?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes an empty line at the end of the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, duh. I need coffee. Updated!


@Test
public void mainTest() {
void mainTest() {
SagaApplication.main(new String[]{});
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

add an empty line here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 4, 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

Copy link
Contributor

@ohbus ohbus left a comment

Choose a reason for hiding this comment

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

LGTM

Thank you @charlesfinley

@ohbus ohbus dismissed iluwatar’s stale review March 4, 2021 05:18

The changes requested has been resolved.

@ohbus ohbus merged commit 9034532 into iluwatar:master Mar 4, 2021
@ohbus ohbus added this to the 1.24.0 milestone Mar 4, 2021
@ohbus ohbus mentioned this pull request Mar 7, 2021
2 tasks
@ohbus ohbus linked an issue Mar 7, 2021 that may be closed by this pull request
2 tasks
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.

Use the same JUnit version everywhere
3 participants