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

feat(test): upgrade mockito and optimize tests coverage #6117

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

CarlChaoCarl
Copy link
Contributor

What does this PR do?

1.upgrade mockito
2.upgrade jacoco
3.optimize tests coverage

Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@CarlChaoCarl CarlChaoCarl changed the title Feature/upgrade mockito and optimize tests coverage feat(test): upgrade mockito and optimize tests coverage Dec 9, 2024
@lxcmyf
Copy link
Contributor

lxcmyf commented Dec 26, 2024

Did the modification run successfully in the ARM environment of JDK17 during unit testing?

@CarlChaoCarl
Copy link
Contributor Author

Did the modification run successfully in the ARM environment of JDK17 during unit testing?

Yes, after the modifications, all the unit tests run normally under JDK 17.

privateMethod.setAccessible(true);
privateMethod.invoke(wallet, message, contractType, timeout);

assertTrue(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the point 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.

This means that the unit test code runs here and there is no problem

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It can be removed. It's also fine to leave it here.

Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest deletion.

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.

5 participants