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

[FSSDK-10505] chore: update mockito and java version #502

Merged
merged 20 commits into from
Jan 3, 2025

Conversation

muzahidul-opti
Copy link
Contributor

  • java version update to 17

Test plan

Issues

- java version update to 17
@muzahidul-opti muzahidul-opti changed the title [FSSDK-10505] chore: update mockito and java version (wip: don't review) [FSSDK-10505] chore: update mockito and java version Dec 12, 2024
@muzahidul-opti muzahidul-opti marked this pull request as ready for review December 12, 2024 17:04
@muzahidul-opti muzahidul-opti requested a review from a team as a code owner December 12, 2024 17:04
Copy link
Contributor

@raju-opti raju-opti left a comment

Choose a reason for hiding this comment

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

LGTM with few small comments

@@ -76,7 +76,8 @@ ext {
jacksonversion= "2.11.2"
annotations_ver = "1.2.0"
junit_ver = "4.12"
mockito_ver = "1.10.19"
mockito_ver = "4.11.0"
mockito_ver_sdk_module = "3.6.28"
Copy link
Contributor

Choose a reason for hiding this comment

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

curious, why are we using different version for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Android sdk module uses PowerMock which is built based on Mockito Core. The last supported version of PowerMock is Mockito 3.6.28.

return null;
}
}).when(manager.getDatafileHandler()).downloadDatafile(any(Context.class), any(DatafileConfig.class), any(DatafileLoadedListener.class));
ArgumentCaptor<Context> contextCaptor = ArgumentCaptor.forClass(Context.class);
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like the same setup is done in many places. Would it be good to move that out to a separate private method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My focus was to update the gradle and java version. We can make the improvement in another PR.

assertEquals(data.getString("url"), host);
assertEquals(data.getString("body"), smallBody);
assertNull(data.getByteArray("bodyCompressed"));
Data data = EventWorker.compressEvent(host, smallBody);
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: should be indented two spaces less

@muzahidul-opti muzahidul-opti merged commit 780fca2 into master Jan 3, 2025
9 of 12 checks passed
@muzahidul-opti muzahidul-opti deleted the muzahid/updateto-jvm-17 branch January 3, 2025 12:25
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.

2 participants