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

Allow generating an interface class for specific Java classes #1794

Open
stuartmorgan opened this issue Dec 9, 2024 · 0 comments
Open

Allow generating an interface class for specific Java classes #1794

stuartmorgan opened this issue Dec 9, 2024 · 0 comments

Comments

@stuartmorgan
Copy link

For unit testing code that's using FFI calls, we commonly want to mock/stub out at least some of the classes we are calling. In the Pigeon world we just mock the generated API, but a generated JObject subclass appears to have about 150 methods that aren't related to the specific object.

It would be nice in the configuration to be able to indicate that for specific classes I want simple interfaces of just the actual Java methods, for mocking purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants