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

Support inner classes in RandomClassProvider #212

Open
serpro69 opened this issue Feb 10, 2024 · 0 comments
Open

Support inner classes in RandomClassProvider #212

serpro69 opened this issue Feb 10, 2024 · 0 comments
Labels
core 🧬 Issue related to :core module enhancement 🚀 New feature or request

Comments

@serpro69
Copy link
Owner

serpro69 commented Feb 10, 2024

describe("an inner class") {
it("should throw exception when generated directly") {
assertThrows<UnsupportedOperationException> { randomProvider.randomClassInstance<Go.BuildNum>() }
}
it("should throw exception when included as constructor parameter") {
class Test(val goBuild: Go.BuildNum)
assertThrows<UnsupportedOperationException> { randomProvider.randomClassInstance<Test>() }
}
}

Using inner classes is disabled since it was causing stackoverflow.

@serpro69 serpro69 added enhancement 🚀 New feature or request core 🧬 Issue related to :core module labels Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core 🧬 Issue related to :core module enhancement 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant