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

Add DeployGateSdkConfiguration class and DeployGate#install to sdkMock #84

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

jmatsu
Copy link
Contributor

@jmatsu jmatsu commented Mar 25, 2024

Close #83

DeployGateSdkConfiguration class and DeployGate#install method appears only in com.deploygate.sdk artifact so those who use the entities would be faced with compilation errors on variants that use sdk-mock dependency.

This PR adds the classes above to sdkMock module as well.

BTW, to solve this issue completely, we must introduce automated code-generation tool to produce sdkMock classes instead of maintaining independently.

test: Add a new testcase that uses these entities
We can also exclude this annotation in Javadoc step though, this tag doesn't make sense for now
@jmatsu jmatsu marked this pull request as ready for review March 25, 2024 01:53
@jmatsu jmatsu requested a review from satsukies March 25, 2024 01:53
Copy link
Member

@satsukies satsukies left a comment

Choose a reason for hiding this comment

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

LGTM 👍

By the way, what tool we can use for automatic code-generation?

@jmatsu
Copy link
Contributor Author

jmatsu commented Mar 25, 2024

APT doesn't work in this case, so we may need to create our own tool that uses AST parser.

@jmatsu jmatsu merged commit eb65e86 into master Mar 25, 2024
5 checks passed
@jmatsu jmatsu deleted the jmatsu/fix/sdkMock_lack_interfaces branch March 25, 2024 04:10
@satsukies
Copy link
Member

we may need to create our own tool

I see. Sounds like difficult 😨

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.

4.7.0 breaks interface consistency between sdk and sdk-mock
2 participants