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

randomClassInstance : 'No suitable constructor found' for primitive classes #104

Closed
serpro69 opened this issue Nov 4, 2021 · 0 comments
Closed
Labels
bug 🐞 Something isn't working core 🧬 Issue related to :core module
Milestone

Comments

@serpro69
Copy link
Owner

serpro69 commented Nov 4, 2021

randomClassInstance function does not work correctly with primitives:

val s = Faker().randomProvider.randomClassInstance<String>()
val i = Faker().randomProvider.randomClassInstance<Boolean>()
println("String: $s")
println("String: $i")
@serpro69 serpro69 added bug 🐞 Something isn't working enhancement 🚀 New feature or request labels Nov 4, 2021
@serpro69 serpro69 added this to the 1.9.0 milestone Nov 4, 2021
@serpro69 serpro69 added core 🧬 Issue related to :core module and removed enhancement 🚀 New feature or request labels Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working core 🧬 Issue related to :core module
Projects
None yet
Development

No branches or pull requests

1 participant