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

3.x Make OciMetricsDataTest.beforeEach non private #7328

Merged

Conversation

Captain1653
Copy link
Contributor

@Captain1653 Captain1653 commented Aug 7, 2023

There is a private method with an annotation BeforeEach in OciMetricsDataTest, but BeforeEach-method must not be private .

I made it public (or it can be without an access modificator). Also small refactoring.

P.S. It's interesting. The private BeforeEach-method also works. I didn't expect it. It's better to follow the docs.

  • Create backport 2.x

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 7, 2023
tjquinno
tjquinno previously approved these changes Aug 8, 2023
@tomas-langer
Copy link
Member

We have a common practice to declare all JUnit test classes as package local, and their methods as well.

@Captain1653
Copy link
Contributor Author

Done :)

@romain-grecourt romain-grecourt changed the title 3.x Make OciMetricsDataTest.beforeEach public 3.x Make OciMetricsDataTest.beforeEach non private Aug 14, 2023
@helidon-io helidon-io deleted a comment from tomas-langer Sep 12, 2023
@Captain1653
Copy link
Contributor Author

Can this PR be merged? Please :)

@tjquinno tjquinno merged commit aad1d2c into helidon-io:helidon-3.x Jan 2, 2024
12 checks passed
@Captain1653 Captain1653 deleted the 3-x-private-before-each branch January 2, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants